VAR0:=IF((CURRBARSCOUNT=1)AND(PERIOD=5),(VOL*240)/FROMOPEN,DRAWNULL);
VOLUME:VOL,VOLSTICK;
STICKLINE((CURRBARSCOUNT=1)AND(PERIOD=5),VAR0,0,-1,-1),COLOR00C0C0;
VOLUME3:VOL,VOLSTICK;
VAR1:=(VOL>=(REF(VOL,1)*1.9))AND(C>REF(C,1));
VAR2:=VOL<REF(LLV(VOL,60),1);
VAR3:=(((ABS(VOL-HHV(REF(VOL,1),5)))/HHV(REF(VOL,1),5))<=0.03)OR(((ABS(VOL-REF(VOL,1)))/REF(VOL,1))<=0.03);
VAR4:=VOL<=(REF(VOL,1)*0.5);
STICKLINE(VAR1,0,VOL,0.5,0),COLORYELLOW;
STICKLINE(VAR2,0,VOL,1,0),COLORMAGENTA;
VAR5:=(SUM(VOL,7)/SUM(VOL,14))>0.65;
STICKLINE(VAR5,0,VOL,2,0),COLORRED;
DRAWICON((COUNT(VAR5,5)>=1)AND((C/REF(C,1))>=1.095),-10000,5);
涨停板:MA(VOL,5);
MV1:MA(VOL,10),COLORMAGENTA;
MTM:=C-REF(C,1);主力做多:100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12),COLORWHITE;多空趋势线:MA(主力做多,6),
COLORYELLOW;能量:=主力做多-多空趋势线,COLORBLACK;持仓:能量,COLORRED;STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2.9,0)COLORRED;STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2,0)COLORLIRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量,0,0.5,0)COLORWHITE;STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量 ,0,2.9,0),COLORGRAY;STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量,0,1,0),COLORLIGRAY;STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量 ,0,0.5,0)COLORWHITE;STICKLINE( DOWNNDAY(能量,1),能量 ,0,2.9,0),
COLORGRAY;STICKLINE( DOWNNDAY(能量,1),能量,0,1,0),COLORLIGRAY;STICKLINE( DOWNNDAY(能量,1),能量 ,0,0.5,0)COLORWHITE;{DRAWICON(CROSS(主力做多,多空趋势线),多空趋势线,1);DRAWICON(CROSS(多空趋势线,主力做多),多空趋势线,2);}DRAWICON(UPNDAY(能量,1)AND UPNDAY(主力做多,1) AND UPNDAY(多空趋势线,1),多空趋势线,1);DRAWICON(CROSS(多空趋势线,主力做多),多空趋势线,2);
引用:
通达信公式量能主升主图指标公式源码-知乎
评论(0)