副图公式源码 支持: 手机/电脑
GUP2:=REF(LOW,1);
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100;
GUP4:=EMA(GUP3*10,3);
GUP5:=LLV(LOW,13);
GUP6:=HHV(GUP4,13);
GUP7:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618;
GUP8:=IF(GUP7>500,500,GUP7);
STICKLINE(GUP8>-120,0,GUP8,3,1),COLORGRAY;
STICKLINE(GUP8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,GUP8,3,0),COLORRED;
STICKLINE(GUP8>0.1 AND GUP8<1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,GUP8,3,0),COLOR00FFFF;
GUP6H:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP7H:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP8H:=GUP6H<REF(GUP7H,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,8,0),COLORAA00BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT(GUP8H AND COUNT(GUP8H,18)=1,12,'●↙不涨都难'),COLOR0033FF;
AR1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1)*100;
出手买:CROSS(AR1,REF(AR1+0.01,1)) AND LLV(AR1,2)=LLV(AR1,8) AND AR1<20;
DRAWTEXT (出手买,0.8,'!出手买'),COLORRED;
MA5:=EMA(CLOSE,5);
趋势:=MA5-EMA(MA5,2);
JCSJ1:=BARSLAST(CROSS(趋势,0))+1;
JCSJ2:=JCSJ1+REF(JCSJ1,JCSJ1);
双底:IF(JCSJ1=1 AND MA5>REF(MA5,JCSJ2) AND COUNT(趋势<0,4)>=2,1,0),COLORRED;
DRAWTEXT (双底,0.8,'双底'),COLORRED;
选股公式源码:
{选股公式一:不涨都难}
GUP6H:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP7H:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP8H:=GUP6H<REF(GUP7H,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
不涨都难:GUP8H AND COUNT(GUP8H,18)=1;
{选股公式二:出手买}
AR1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1)*100;
出手买:CROSS(AR1,REF(AR1+0.01,1)) AND LLV(AR1,2)=LLV(AR1,8) AND AR1<20;
{选股公式三:双底}
MA5:=EMA(CLOSE,5);
趋势:=MA5-EMA(MA5,2);
JCSJ1:=BARSLAST(CROSS(趋势,0))+1;
JCSJ2:=JCSJ1+REF(JCSJ1,JCSJ1);
双底:IF(JCSJ1=1 AND MA5>REF(MA5,JCSJ2) AND COUNT(趋势<0,4)>=2,1,0),COLORRED; |