首页 > 编程语言 >通达信特快列车主图 源码主图指标公式

通达信特快列车主图 源码主图指标公式

时间:2024-03-09 15:57:03浏览次数:31  
标签:75 25 A30 MA5 主图 50 通达信 源码

{ 通达信特快列车主图 源码主图指标公式 }

A5:MA(C,5),COLOR00FFFF;
 
A20:MA(C,20),COLORFF00FF;
A30:MA(C,30),COLOR00FF00;
M5:=ATAN((A5/REF(A5,1)-1)*100)*180/3.14159;
M20:=ATAN((A20/REF(A20,1)-1)*100)*180/3.14159;
M30:=ATAN((A30/REF(A30,1)-1)*100)*180/3.14159;
QSXS:=M30>0;
A50:=IF(M5<0,-25,0);
A51:=IF(BETWEEN(M5,0,45),25,A50);
A52:=IF(BETWEEN(M5,45,75),50,A51);
MA5:=IF(M5>75,75,A52)*QSXS;
A200:=IF(M20<0,-25,0);
A201:=IF(BETWEEN(M20,0,45),25,A200);
A202:=IF(BETWEEN(M20,45,75),50,A201);
MA20:=IF(M20>75,75,A202)*QSXS;
A300:=IF(M30<0,-25,0);
A301:=IF(BETWEEN(M30,0,45),25,A300);
A302:=IF(BETWEEN(M30,45,75),50,A301);
MA30:=IF(M30>75,75,A302)*QSXS;
SGSJ:=BARSLAST(CROSS(MA5,REF(MA5+1,1)));
XGSJ:=BARSLAST(CROSS(REF(MA5-1,1),MA5));
列车:=IF(MA5>=50 AND MA20>=25 AND MA30>=25 AND SGSJ<xgsj,50,25); <br="">启动:=IF(CROSS(列车,45),50,25);
站台:=IF(MA5<=0 AND COUNT(MA20>=25,10)>=9 AND MA30>=25,-25,25);
买票:=IF(站台=-25 AND COUNT(站台=-25,3)>=2 AND C>=REF(C,4),25,-10);
上车:=IF(CROSS(MA5,0) AND COUNT(MA20>=25,10)>=9 AND MA30>=25,50,25);
{以下设置主图显示方式}
STICKLINE(MA20>0,A20,(A20+A30)/2,4,1),COLORFF00FF;
STICKLINE(MA30>0,A30,(A20+A30)/2,4,1),COLOR00FF00;
STICKLINE(MA5>0,A30,(A30*0.75+A20*0.25),4,1),COLOR00FFFF;
{DRAWTEXT(列车=50,A30-0.20, '列车'),COLOR88FFFF;
DRAWTEXT(启动=50,A30, '启动'),COLORFF00FF;}
STICKLINE(站台=-25,A30,A30*0.98,4,0),COLORFFFF00;
STICKLINE(买票=25,A30,A30*0.98,2,0),COLORFFFFFF;
DRAWTEXT(买票=25,A30*0.97, '票'),COLORFF8800;
DRAWTEXT(上车=50,A30, '上车'),COLORFFFFFF;

 

标签:75,25,A30,MA5,主图,50,通达信,源码
From: https://www.cnblogs.com/zhibiao/p/18062824

相关文章

  • 通达信主力进场副图指标公式信号简单清楚,毫不含糊
    {通达信主力进场副图指标公式信号简单清楚,毫不含糊}主力进场,信号简单清楚,毫不含糊,红柱表示准备拦住表示出手。源码{主力进场}VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);VAR5:=LLV(L......
  • 通达信金股分时分时副图判断机构买盘掌握精准介入时机
    {通达信金股分时分时副图判断机构买盘掌握精准介入时机} 成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20)AND(CLOSE>(REF(CLOSE,1)))),成交额,0)),0); A3:=SUM((IF(((成交额/8>20)AND(CLOSE<(REF(CLOSE,1)))),成交额,0)),0); A4:=SUM((IF(((成交额/8......
  • spdlog 源码解析
    spdlog是开源、高性能、跨平台,支持header-only/compiled的C++日志库。本文主要目的是对spdlogv1.13.0的源码进行分析(编译运行环境为6.5.0-18-generic#18~22.04.1-Ubuntu),以探讨spdlog如何构建高性能、可扩展的日志框架的。github链接gabime/spdlog:FastC++loggingli......
  • 通达信牛熊趋势共振主图指标公式源码
    {通达信牛熊趋势共振主图指标公式源码}HH:=HHV(H,9);LL:=LLV(L,9);FG:=(HH-LL)/100;RSV:=(C-LL)/(HH-LL)*100;K1:=SMA(RSV,3,1);DA:=SMA(K1,3,1);J1:=3*K1-2*DA;K:K1*FG+LL,NODRAW;D:DA*FG+LL,NODRAW;J:=J1*FG+LL;DRAWBAND(K,RGB(250,0,0),D,RGB(0,180,0));ZIF:=EM......
  • 通达信六道轮回主图指标公式源码附图
    {通达信六道轮回主图指标公式源码附图}VAR1:=1;VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;风险线:EMA(VAR4,45)*1.15;必卖线:EMA(VAR4,55)*1.3;底线:EMA(VAR4,40)*0.85;铁底线:EMA(VAR4,88)*0.7,C......
  • 通达信K线解盘预测指标公式源码
    {通达信K线解盘预测指标公式源码}STICKLINE(CURRBARSCOUNT=118,100,0,200,0),COLORWHITE;{均线}MA1:=MA(C,5),NODRAW;均价:=(OPEN+HIGH+LOW+CLOSE*2)/5,NODRAW;突破:=均价+HIGH-LOW,NODRAW;阻力:=均价*2-LOW,NODRAW;支撑:=均价*2-HIGH,NODRAW;下降:=均价-HIGH+LOW,NODR......
  • 通达信波段低位主图指标公式源码
    {通达信波段低位主图指标公式源码}MA3:MA(C,3),COLORRED,LINETHICK3;MA5:MA(C,5),COLORWHITE;MA10:MA(C,10),COLORGREEN;MA20:MA(C,20),COLORYELLOW,LINETHICK3;NOTEXT1:IF(SAR.sar>=H,SAR.SAR,DRAWNULL),CIRCLEDOT,COLORGREEN;NOTEXT2:IF(SAR.SAR<=L,SAR.SAR,DRAWNULL)......
  • 通达信山谷淘金指标公式源码副图
    {通达信山谷淘金指标公式源码副图}DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,'',0),LINETHICK2;DRAWTEXT_FIX(1,0,0.1,0,'山谷淘金'),COLOR00FFFF;VAR1:=REF(LOW,1);VAR2:=SMA(Abs(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;VAR3:=EMA(IF(CLOSE*1.3,VAR2*......
  • 通达信买入翻倍选股指标公式源码副图
    {通达信买入翻倍选股指标公式源码副图}通达信买入翻倍选股指标公式VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(Abs(CLOSE-VAR1),6,1)*100;VAR3:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR4:=(BArslAst(VAR3<20)<=3ANDcrOSS(VAR2,V......
  • 通达信资金进出捉妖指标公式源码附图
    {通达信资金进出捉妖指标公式源码附图}{指标介绍:红线上穿紫线和绿线,后面通常会有一波行情,如果结合后面的红柱那就上升的可能性更大。}VAR1:=C-REF(C,1);VAR2:=O-REF(O,2);VAR3:=H-REF(H,1);VAR4:=L-REF(L,1);VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;资金:=(MA(VAR5*vol,10)+EMA(......