以下是通达信飞龙彩带主图指标源码

VAR1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
 A:(20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4)
 +15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8)+11*REF(VAR1,9)
 +10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12)+7*REF(VAR1,13)+6*REF(VAR1,14)
 +5*REF(VAR1,15)+4*REF(VAR1,16)+3*REF(VAR1,17)
 +2*REF(VAR1,18)+REF(VAR1,20))/210,COLORRED,LINETHICK2;
 B:MA(A,6),COLORGREEN,LINETHICK2;
 DRAWBAND(A,RGB(240,140,240),B,RGB(255,255,0));
 A1:=C-REF(C,1);
 A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
 B2:=IF( CROSS(A2,MA(A2,2)),1,0);
 DRAWICON(FILTER(B2=1,5),L-0.08,1),COLORFFDE00;
 B3:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
 DRAWICON(CROSS(75,B3),H+0.1,2),COLORGREEN;
趋势:EMA(C,55),LINETHICK2;
 IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORRED,POINTDOT,LINETHICK8;
 IF(趋势<REF (趋势,1),趋势,DRAWNULL),COLORFFD700,POINTDOT,LINETHICK8;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。