副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(G2+G4+G1*2)/4;
GUP2:= MA(GUP1,4);
GUP3:=HHV(GUP2,10);
GUP4:=MA(GUP3,3);
GUP5:=1.25*GUP4-0.25*GUP3;
GUP6:=IF(GUP5>GUP3,GUP3,GUP5);
GUP7:=LLV(GUP2,10);
GUP8:=MA(GUP7,3);
GUP9:=1.25*GUP8-0.25*GUP7;
GUP10:=IF(GUP9<GUP7,GUP7,GUP9);
GUP11:=MA(C,13);
GUP12:=CROSS(C,GUP10) AND CROSS(C,GUP11) AND CROSS(C,GUP6);
GUP13:=CROSS(C,GUP11) AND CROSS(C,GUP6);
牛:=IF(GUP12 OR GUP13,80,0);
GUA1:=(3*G1+G2+G3+G4)/6;
GUD1:=(20*GUA1+19*REF(GUA1,1)+18*REF(GUA1,2)+17*REF(GUA1,3)+16*REF(GUA1,4)+15*REF(GUA1,5)+14*REF(GUA1,6)
+13*REF(GUA1,7)+12*REF(GUA1,8)+11*REF(GUA1,9)+10*REF(GUA1,10)+9*REF(GUA1,11)+8*REF(GUA1,12)
+7*REF(GUA1,13)+6*REF(GUA1,14)+5*REF(GUA1,15)+4*REF(GUA1,16)+3*REF(GUA1,17)+2*REF(GUA1,18)+
REF(GUA1,20))/211;
GUD2:=EMA(GUD1,2);
GUD3:=EMA(GUD2,2);
GUK1:=EMA(GUD3,2);
马:=IF(CROSS(GUD1,GUK1),60,0);
STICKLINE(牛>0,0,牛*1.1,1,0),COLORWHITE;
STICKLINE(牛>0 AND 牛<52,30,牛,1,0),COLORRED;
STICKLINE(牛>0,0,牛*0.8,4,0),COLORRED;
STICKLINE(牛>0,0,牛*0.4,8,0),COLORRED;
STICKLINE(牛>0,0,牛*0.2,10,0),COLORYELLOW;
STICKLINE(牛>0,0,牛*0.1,10,0),COLORYELLOW;
STICKLINE(马>0,0,马*1.1,1,0),COLORWHITE;
STICKLINE(马>0 AND 马<52,30,马,1,0),COLORRED;
STICKLINE(马>0,0,马*0.8,4,0),COLORRED;
STICKLINE(马>0,0,马*0.4,8,0),COLORRED;
STICKLINE(马>0,0,马*0.2,10,0),COLORFF00FF;
DRAWTEXT(CROSS(GUD1,GUK1),55,'小马'),COLORRED;
DRAWTEXT(GUP12 OR GUP13,75,'小牛'),COLORYELLOW;
选股公式源码
{选股公式一:小牛}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(G2+G4+G1*2)/4;
GUP2:= MA(GUP1,4);
GUP3:=HHV(GUP2,10);
GUP4:=MA(GUP3,3);
GUP5:=1.25*GUP4-0.25*GUP3;
GUP6:=IF(GUP5>GUP3,GUP3,GUP5);
GUP7:=LLV(GUP2,10);
GUP8:=MA(GUP7,3);
GUP9:=1.25*GUP8-0.25*GUP7;
GUP10:=IF(GUP9<GUP7,GUP7,GUP9);
GUP11:=MA(C,13);
GUP12:=CROSS(C,GUP10) AND CROSS(C,GUP11) AND CROSS(C,GUP6);
GUP13:=CROSS(C,GUP11) AND CROSS(C,GUP6);
小牛:GUP12 OR GUP13;
{选股公式二:小马}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUA1:=(3*G1+G2+G3+G4)/6;
GUD1:=(20*GUA1+19*REF(GUA1,1)+18*REF(GUA1,2)+17*REF(GUA1,3)+16*REF(GUA1,4)+15*REF(GUA1,5)+14*REF(GUA1,6)
+13*REF(GUA1,7)+12*REF(GUA1,8)+11*REF(GUA1,9)+10*REF(GUA1,10)+9*REF(GUA1,11)+8*REF(GUA1,12)
+7*REF(GUA1,13)+6*REF(GUA1,14)+5*REF(GUA1,15)+4*REF(GUA1,16)+3*REF(GUA1,17)+2*REF(GUA1,18)+
REF(GUA1,20))/211;
GUD2:=EMA(GUD1,2);
GUD3:=EMA(GUD2,2);
GUK1:=EMA(GUD3,2);
小马:CROSS(GUD1,GUK1);
|