副图公式源码支持: 手机/电脑
MA13:MA(C,13),COLORWHITE;
MA34:MA(C,34),COLORFF00FF;
MA55:MA(C,55),COLORFFCC66;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
低吸买入:=CROSS(RSI,11);
DRAWTEXT(低吸买入,L-0.05,'低买'),COLORWHITE;
GUP7:=EMA(AMOUNT/VOL/100,3);
GUP8:=EMA(GUP7,88);
GUP9:=EMA(GUP7,88)*0.85;
GUPA:=GUP9*0.87;
GUPB:=LOW<GUPA AND CLOSE>REF(CLOSE,1)*1.02;
DRAWTEXT(FILTER(GUPB,6),L-0.05,'坚决进'),COLORFF00FF;
GUPF:=(2*CLOSE+HIGH+LOW)/4;
GUA4:=LLV(LOW,34);
GUA5:=HHV(HIGH,34);
GUA6:=EMA((GUPF-GUA4)/(GUA5-GUA4)*100,6);
GUA7:=EMA(0.667*REF(GUA6,1)+0.333*GUA6,4);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(GUA6>GUA7,3) AND REF(LOW,1)=LLV(LOW,120) AND
CLOSE>OPEN,1,0),L-0.05,'出击'),COLORYELLOW;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
DRAWTEXT(CROSS(D1,K1),L-0.05,'波段买'),COLOR0099FF;
多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
天线:=78.89;
STICKLINE(CROSS(天线,多方),H*1.02,H*1.00,6,0),COLOR00FF00;
DRAWTEXT(CROSS(天线,多方),H*1.04,'逃顶'),COLORBLUE;
选股公式源码
{选股公式一:坚决进}
GUP7:=EMA(AMOUNT/VOL/100,3);
GUP8:=EMA(GUP7,88);
GUP9:=EMA(GUP7,88)*0.85;
GUPA:=GUP9*0.87;
GUPB:=LOW<GUPA AND CLOSE>REF(CLOSE,1)*1.02;
坚决进:FILTER(GUPB,6);
{选股公式二:波段买}
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
波段买:CROSS(D1,K1);
{选股公式三:低买}
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
低吸买入:=CROSS(RSI,11);
低买:低吸买入;
{选股公式四:出击}
GUPF:=(2*CLOSE+HIGH+LOW)/4;
GUA4:=LLV(LOW,34);
GUA5:=HHV(HIGH,34);
GUA6:=EMA((GUPF-GUA4)/(GUA5-GUA4)*100,6);
GUA7:=EMA(0.667*REF(GUA6,1)+0.333*GUA6,4);
出击:COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(GUA6>GUA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN; |