通达信买卖彩带-指标主图源码 原创
- 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;
FC82018565.png
|