在主图中加入自动最高处画线的公式
MA1:MA(CLOSE,M1);Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,' ');
DRAWTEXT_FIX(ISLASTBAR,0.03,0.99,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;
MA2:MA(CLOSE,M2);主题投资:DRAWTEXT_FIX(1,0.05,0.93,0,EXTERNSTR(0,1))COLORGREEN;
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
MA7:MA(CLOSE,M7);
MA8:MA(CLOSE,M8);
MA9:MA(CLOSE,M9);
MA10:MA(CLOSE,M10);STICKLINE((C-REF(C,1))/REF(C,1)>0.0992,C,O,0.8,0),COLOR0099FF;X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠37上升'),COLORWHITE;
REF(H,BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(H=HHV(H,0)))+1));
658444461.png
|