副图公式源码支持 手机/电脑
GUP1:=LLV(LOW,10*5);
GUP2:=HHV(HIGH,25*5);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4*5);
趋势线:EMA(GUP3,3*5);
GUP4:=趋势线>=REF(趋势线,1);
GUP5:=CLOSE>MA(CLOSE,20*5)AND CLOSE>MA(CLOSE,5*5);
GUP6:=CLOSE<MA(CLOSE,10*5)AND CLOSE<MA(CLOSE,5*5);
GUP7:=VOL>MA(VOL,5*5);
STICKLINE(趋势线>=REF(趋势线,1),GUP3,REF(GUP3,1),5,0),colorred;
STICKLINE(趋势线<REF(趋势线,1),GUP3 ,REF(GUP3,1),5,0),colorgreen;
GUP8:=GUP4=1 AND REF(GUP4,1)=0 AND (REF(GUP4,2)+REF(GUP4,3)=0) AND 趋势线<0.5;
GUP9:=GUP4=1 AND REF(GUP4,1)=0 AND (REF(GUP4,2)+REF(GUP4,3)=0) AND GUP5=1 AND REF(GUP5,1)=0 AND GUP7=1;
GUP10:=趋势线>2 AND (GUP4=0 AND REF(GUP4,1)=1) AND (REF(GUP4,2)+REF(GUP4,3)=2);
GUP11:=(GUP4=0 AND REF(GUP4,1)=1) AND (REF(GUP4,2)+REF(GUP4,3)=2) AND GUP6=1 AND 趋势线>1;
DRAWTEXT(GUP8=1,趋势线,'抄');
DRAWTEXT(GUP9=1,趋势线,'涨');
DRAWTEXT(GUP10=1,趋势线*1.3,'逃');
DRAWTEXT(GUP11=1,趋势线,'减');
选股公式源码
{选股公式一:抄}
GUP1:=LLV(LOW,10*5);
GUP2:=HHV(HIGH,25*5);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4*5);
趋势线:=EMA(GUP3,3*5);
GUP4:=趋势线>=REF(趋势线,1);
GUP5:=CLOSE>MA(CLOSE,20*5)AND CLOSE>MA(CLOSE,5*5);
GUP6:=CLOSE<MA(CLOSE,10*5)AND CLOSE<MA(CLOSE,5*5);
GUP8:=GUP4=1 AND REF(GUP4,1)=0 AND (REF(GUP4,2)+REF(GUP4,3)=0) AND 趋势线<0.5;
抄:GUP8=1;
{选股公式二:涨}
GUP1:=LLV(LOW,10*5);
GUP2:=HHV(HIGH,25*5);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4*5);
趋势线:=EMA(GUP3,3*5);
GUP4:=趋势线>=REF(趋势线,1);
GUP5:=CLOSE>MA(CLOSE,20*5)AND CLOSE>MA(CLOSE,5*5);
GUP6:=CLOSE<MA(CLOSE,10*5)AND CLOSE<MA(CLOSE,5*5);
GUP7:=VOL>MA(VOL,5*5);
GUP9:=GUP4=1 AND REF(GUP4,1)=0 AND (REF(GUP4,2)+REF(GUP4,3)=0) AND GUP5=1 AND REF(GUP5,1)=0 AND GUP7=1;
涨:GUP9=1;
|