副图公式 源码支持手机/电脑
个股走势:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
大盘走势:EMA(100*(INDEXC- LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORE67010,LINETHICK2;
STICKLINE(个股走势>=大盘走势,个股走势,大盘走势,1,0),COLORRED;
STICKLINE(个股走势<大盘走势,个股走势,大盘走势,1,0),COLORBLUE;
STICKLINE(个股走势>=大盘走势,0,大盘走势,6,0),COLORYELLOW;
STICKLINE(个股走势<大盘走势,0,个股走势,6,0),COLORYELLOW;
反弹:IF(CROSS(个股走势,9),50,0),STICK,LINETHICK3,COLOR00FF00;
DRAWTEXT(CROSS(个股走势,9),40,'反弹!'),COLOR00FF00;
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,21);
VAR3:=BARSLAST(CROSS(VAR2,VAR1))>15;
VAR4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;
VAR5:=CROSS(VAR1,VAR2) AND VAR4 AND VAR3;
买入:IF(VAR5,80,0),STICK,LINETHICK4,COLORF00FF0;
DRAWTEXT(VAR5,70,'买入!'),COLORF00FF0;
选股公式源码
{选股公式一:反弹}
个股走势:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
大盘走势:=EMA(100*(INDEXC- LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORE67010,LINETHICK2;
{反弹:IF(CROSS(个股走势,9),50,0),STICK,LINETHICK3,COLOR00FF00;
DRAWTEXT(CROSS(个股走势,9),40,'反弹!'),COLOR00FF00;}
反弹:CROSS(个股走势,9),LINETHICK3,COLOR00FF00;
{选股公式二:买入}
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,21);
VAR3:=BARSLAST(CROSS(VAR2,VAR1))>15;
VAR4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;
VAR5:=CROSS(VAR1,VAR2) AND VAR4 AND VAR3;
{STICKLINE(个股走势<大盘走势,0,个股走势,6,0),COLORYELLOW;
买入:IF(VAR5,80,0),STICK,LINETHICK4,COLORF00FF0;
DRAWTEXT(VAR5,70,'买入!'),COLORF00FF0;}
买入:VAR5; |