首页 > 编程语言 >通达信风云彩带副图指标公式源码

通达信风云彩带副图指标公式源码

时间:2024-03-09 09:23:43浏览次数:33  
标签:STICKLINE 通达信 源码 2.5 DEA DIFF REF MACD 彩带

{ 通达信风云彩带副图指标公式源码 }


DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),LINETHICK0;
DRAWBAND(DIFF,RGB(255,128,192),DEA,RGB(128,255,128));
STICKLINE(MACD>=0,MACD,0,2.5,1),COLORF00FF0;
STICKLINE(MACD< 0,MACD,0,2.5,1),COLORWHITE;
STICKLINE(MACD< REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR00AAFF;
STICKLINE(MACD< REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR00BBFF;
STICKLINE(MACD< REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00CCFF;
STICKLINE(MACD< REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR00DDFF;
STICKLINE(MACD< REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00EEFF;
STICKLINE(MACD< REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR00FFFF;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR0000AA;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR0011BB;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0022CC;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR0033DD;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR0044EE;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR0055FF;
STICKLINE(MACD>REF(MACD,1)AND MACD< 0,0,MACD,2.5,0 ),COLORAA00BB;
STICKLINE(MACD>REF(MACD,1)AND MACD< 0,0,MACD,2.5,0 ),COLORBB11BB;
STICKLINE(MACD>REF(MACD,1)AND MACD< 0,0,MACD,2,0 ),COLORCC22BB;
STICKLINE(MACD>REF(MACD,1)AND MACD< 0,0,MACD,1.5,0 ),COLORDD33BB;
STICKLINE(MACD>REF(MACD,1)AND MACD< 0,0,MACD,1.0,0 ),COLOREE44BB;
STICKLINE(MACD>REF(MACD,1)AND MACD< 0,0,MACD,0.5,0 ),COLORFF55BB;
STICKLINE(MACD<=REF(MACD,1)AND MACD< 0,0,MACD,2.5,0 ),COLORFFAA00;
STICKLINE(MACD<=REF(MACD,1)AND MACD< 0,0,MACD,2.5,0 ),COLORFFBB11;
STICKLINE(MACD<=REF(MACD,1)AND MACD< 0,0,MACD,2,0 ),COLORFFCC22;
STICKLINE(MACD<=REF(MACD,1)AND MACD< 0,0,MACD,1.5,0 ),COLORFFDD33;
STICKLINE(MACD<=REF(MACD,1)AND MACD< 0,0,MACD,1,0 ),COLORFFEE44;
STICKLINE(MACD<=REF(MACD,1)AND MACD< 0,0,MACD,0.5,0 ),COLORFFFF55;
IF(DIFF< 0,DIFF,0),COLORRED,LINETHICK2;
IF(DIFF< 0,0,DIFF),COLORYELLOW,LINETHICK2;
IF(DIFF< DEA,DIFF,DEA),COLOR00FF00,LINETHICK2;
IF(DIFF>DEA,DEA,DEA),COLORBLUE,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF< -0.1;
STICKLINE(低位金叉,0,-0.10,6,0),COLORYELLOW;
DRAWTEXT(低位金叉,-0.05,' 低位金叉'),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA< 0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.10,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*1.04,13) ;
DRAWTEXT(二次金叉,-0.08,' 二次金叉'),COLORFF00FF;
A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.13,6,0),COLORRED;
DRAWTEXT(底背离,DEA,' 底背离'),COLORRED;
A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A22+1)< CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(顶背离,DEA,' 顶背离'),COLORGREEN;
A1:=DIFF< 0 AND DEA< 0;
A2:=A1>REF(A1,1);
A3:=BARSLAST(A2);
A4:=COUNT(DEA>0 AND DIFF>0,A3)=0;
A5:=CROSS(DIFF,DEA);
A6:=BARSLAST(A5);
A7:=REF(A6,A6+1)+A6;
A8:=(DIFF+DEA)/2;
A9:=(HIGH+LOW)/2;
A10:=A5 AND A7< A3 AND A4 AND A8>REF(A8,A7) AND A9< REF(A9,A7) AND MACD>0;
DRAWTEXT(A10,DIFF*0.95,'★金叉介入'),COLORYELLOW;
连续走强:BARSLASTCOUNT(MACD>REF(MACD,1) AND MACD>0)NODRAW;
强势回调:BARSLASTCOUNT(MACD< REF(MACD,1) AND MACD>0)NODRAW;
连续走弱:BARSLASTCOUNT(MACD< REF(MACD,1) AND MACD< 0)NODRAW;
连续反弹:BARSLASTCOUNT(MACD>REF(MACD,1) AND MACD< 0)NODRAW;

标签:STICKLINE,通达信,源码,2.5,DEA,DIFF,REF,MACD,彩带
From: https://www.cnblogs.com/zhibiao/p/18062265

相关文章

  • 通达信好恶财神副图指标公式源码
    {通达信好恶财神副图指标公式源码}LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;买:EMA(RSI1,M1),COLORRED,LINETHICK2;卖:EMA(RSI2,M2),LINETHICK2,COLORFFFF00;VAR1......
  • 通达信蓄势盘龙主图指标公式有使用方法源码
    {通达信蓄势盘龙主图指标公式有使用方法源码}指标使用方法:本指标是主图指标,黄线是天,股价到达这个位置容易受阻,下跌到绿色低线是抄底,在支撑线有支撑也是买点DRAWGBK(CLOSE>0,RGB(20,0,28),RGB(20,0,28),0,0,1);X_1:=120;X_2:=BARSLAST(CURRBARSCOUNT=X_1);X_3:=CO......
  • 通达信超跌加仓补仓信号源码
    {通达信超跌加仓补仓信号源码}超跌加仓股价出现超跌的情况下发出的接仓或者补仓信号RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:SMA(RSV,3,1),COLORFFFFFF;D:SMA(K,3,1),COLOR00FFFF;J:3*K-2*D,COLORFF00FF;超跌:IF(J<0,10,0),COLORFFFF00;BDDD:=LLV(J,2)=LLV(J,8)......
  • 通达信组合短线指标源码
    {通达信组合短线指标源码}Q1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;Q3:=SMA(Q2,9,1);Q4:=SMA(Q3,3,1);AA:3*Q3-2*Q4,,COLOR7FFF00;Q5:=AA>1*REF(AA,1);Q6:=LLVBARS(LOW,50);Q7:=SUM(VOL,Q6);......
  • 通达信超级分时资金指标公式源码
    {通达信超级分时资金指标公式源码}X_1:=IF(AMOUNT>=FINANCE(40)*0.05/100ANDDCLOSE>=DOPEN,AMOUNT/10000,0);X_2:=IF(AMOUNT>=FINANCE(40)*0.05/100ANDDCLOSE<=DOPEN,AMOUNT/10000,0);X_3:=IF(AMOUNT>=FINANCE(40)*0.025/100ANDAMOUNT<finance(40)*0.05100=&q......
  • 通达信涨停狙击主图指标公式源码
    {通达信涨停狙击主图指标公式源码}MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,60);N:=10;M:=9;VAB0:=531;VAB1:=1510000;VAB2:=VAB0+VAB1;A:=SMA(L,4,3);VAB3:=IF(DATE>VAB2,1,1);T:=DATE>901224ANDDATE<1130630;涨停:=IF(REF(C,1)......
  • 通达信简单EXPMA主图指标公式源码副图
    {通达信简单EXPMA主图指标公式源码副图}涨停:=IF(REF(C,1)*1.1-C<0.01,1,0);stICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;K1:EMA(C,8),COLORBLUE;K2:EMA(C,13),COLORBLUE;中线:(......
  • 通达信牛股潜伏选股指标公式源码副图
    {通达信牛股潜伏选股指标公式源码副图}X_1:=CLOSE>REF(CLOSE,1)*1.097;X_2:=COUNT(X_1,12);X_3:=REF(X_2,1)>=1;X_4:=(3*CLOSE+LOW+OPEN+HIGH)/6;X_5:=(20*X_4+19*REF(X_4,1)+18*REF(X_4,2)+17*REF(X_4,3)+16*REF(X_4,4)+15*REF(X_4,5)+14*REF(X_4,6)+13*REF(X_4,7)+12*RE......
  • 通达信抵扣均线主图指标公式源码副图
    {通达信抵扣均线主图指标公式源码副图}MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA60:MA(C,60);MA120:MA(C,120);MA250:MA(C,250);DRAWICON(CURRBARSCOUNT=5+1,L/1.015,13);DRAWICON(CURRBARSCOUNT=10+1,L/1.015,26);DRAWICON(CURRBARSCOUNT=20+1,L/1.015,25);DRAWI......
  • 通达信三源主图指标公式源码
    {通达信三源主图指标公式源码}DRAWGBK(O>C,RGB(0,30,0),RGB(0,0,60),0,'01',0);DRAWKLINE(H,O,L,C);MV10:=MA(V,10);AVG_V:=(V-MV10)/MV10*100;量差:=AVG_V-REF(AVG_V,1);假阴:=C>REF(C,1)ANDC<o;高开:=(O-REF(C,1))/REF(C,1)*100;倍量:=V>REF(V,1)*1.69ANDV......