{ 通达信隐形多空主图公式源码附图 }
多头排列的时候。均线就会显示出来,空头的时候经线就隐形了。
FX:=MA(C,3);
FX5:=MA(FX,5);
FX6:=MA(FX,60);
K:3*FX6-2*FX5;
D:(((13 *FX6 ) - (8 * FX5))) / 5;
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
CG:=IF(MA(CLOSE,17)<fs,fs,ma(close,17)); <br="">年线:=EMA(C,250);
A:=CG-(EMA(C,3)-CG);
QQ:=年线-(EMA(C,3)-年线);
MM:MA(C,20),LINETHICK0;
JT:=C>REF(C,1) AND A<ref(a,1); <br="">T1:=A<=FL;T2:=FL=FS AND FS=CG;T3:=QQ<fl; <br="">IF(T1 ,MM*0.99,DRAWNULL),COLORYELLOW LINETHICK2;
IF(T2 ,MM*0.98,DRAWNULL),COLORMAGENTA LINETHICK2;
IF(T3 ,MM*0.97,DRAWNULL),COLORRED LINETHICK2;
DI := EMA(CLOSE,5) - EMA(CLOSE,13);
Z:=MA(C,55);
T:=MA(C,21);
Q:=MA(C,34);
E:=(C-(Z+T+Q)/3)/MA(C,3)*500;
CC:=IF(E>0,E,0);
IF(T1 && CC>20,MM*1.23,DRAWNULL),COLORGREEN LINETHICK2;
IF(T2 && SUM(CC,2)>78,MM*1.24,DRAWNULL),COLORBROWN LINETHICK2;
IF(T3 && SUM(CC,4)>275,MM*1.25,DRAWNULL),COLORBLUE LINETHICK5;
标签:EMA,MA,17,MM,DRAWNULL,多空主图,通达信,源码,CLOSE From: https://www.cnblogs.com/zhibiao/p/18062855