通达信隐形多空主图公式源码附图


多头排列的时候。均线就会显示出来,空头的时候经线就隐形了。

FX5:=MA(FX,5);
K:3*FX6-2*FX5;
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
CG:=IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17));
A:=CG-(EMA(C,3)-CG);
MM:MA(C,20),LINETHICK0;
T1:=A<=FL;T2:=FL=FS AND FS=CG;T3:=QQ<FL;
IF(T2 ,MM*0.98,DRAWNULL),COLORMAGENTA LINETHICK2;
DI := EMA(CLOSE,5) - EMA(CLOSE,13);
T:=MA(C,21);
E:=(C-(Z+T+Q)/3)/MA(C,3)*500;
IF(T1 && CC>20,MM*1.23,DRAWNULL),COLORGREEN LINETHICK2;
IF(T3 && SUM(CC,4)>275,MM*1.25,DRAWNULL),COLORBLUE LINETHICK5;