副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(3*G1+G4+G2+G3)/6;
GUP2:=EMA(GUP1,35);
GUP3:=(HHV(GUP2,10)+HHV(GUP2,30)+HHV(GUP2,90))/3;
GUP4:=(LLV(GUP2,10)+LLV(GUP2,30)+LLV(GUP2,90))/3;
GUP5:=(HHV(GUP3,5)+HHV(GUP3,15)+HHV(GUP3,30))/3;
GUP6:=(LLV(GUP4,5)+LLV(GUP4,15)+LLV(GUP4,30))/3;
STICKLINE(EMA(EMA(GUP1,2),2)>GUP6,(-2),2,12,0),COLORRED;
STICKLINE(EMA(EMA(GUP1,2),2)<=GUP6,(-2),2,12,0),COLORGREEN;
GUP7:=EXPMA(G1,6);
GUP8:=EXPMA(G1,18);
GUA1:500*(GUP7-GUP8)/GUP8+2,COLORYELLOW,LINETHICK2;
GUA2:EMA(GUA1,3),COLORBLUE,LINETHICK2;
STICKLINE(GUA1>2,2,GUA1,2,1),COLORMAGENTA;
STICKLINE(GUA1>2 AND EMA(EMA(GUP1,2),2)>GUP6,2,GUA1,2,0),COLORMAGENTA;
趋势转向:IF(GUA1>=0 AND REF(GUA1,1)<0 AND REF(GUA1,2)<0 AND GUA2>REF(GUA2,1) OR (GUA1>REF(GUA1,1) AND REF(GUA1,1)<REF(GUA1,2) AND REF(GUA1,2)>0) OR (GUA1>REF(GUA1,1) AND REF(GUA1,1)>REF(GUA1,2) AND REF(GUA1,2)<REF(GUA1,3) AND GUA2>REF(GUA2,1) AND REF(GUA2,1)<=REF(GUA2,2)) OR (GUA1>REF(GUA1,1) AND GUA2>REF(GUA2,1) AND REF(GUA2,1)<=REF(GUA2,2) AND GUA1>0 AND GUA2>0),666,0),NODRAW,COLORYELLOW;
GUP9:=IF(GUA1>REF(GUA1,1) AND REF(GUA1,1)<REF(GUA1,2) AND GUA1>=GUA2 AND REF(GUA1,1)<REF(GUA2,1),1,0),COLORYELLOW;
DRAWTEXT(GUP9=1,GUA1*1.5,'跟庄'),COLORRED;
选股公式源码
{选股公式:跟庄}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(3*G1+G4+G2+G3)/6;
GUP2:=EMA(GUP1,35);
GUP3:=(HHV(GUP2,10)+HHV(GUP2,30)+HHV(GUP2,90))/3;
GUP4:=(LLV(GUP2,10)+LLV(GUP2,30)+LLV(GUP2,90))/3;
GUP5:=(HHV(GUP3,5)+HHV(GUP3,15)+HHV(GUP3,30))/3;
GUP6:=(LLV(GUP4,5)+LLV(GUP4,15)+LLV(GUP4,30))/3;
GUP7:=EXPMA(G1,6);
GUP8:=EXPMA(G1,18);
GUA1:=500*(GUP7-GUP8)/GUP8+2,COLORYELLOW,LINETHICK2;
GUA2:=EMA(GUA1,3),COLORBLUE,LINETHICK2;
GUP9:=IF(GUA1>REF(GUA1,1) AND REF(GUA1,1)<REF(GUA1,2) AND GUA1>=GUA2 AND REF(GUA1,1)<REF(GUA2,1),1,0),COLORYELLOW;
跟庄:GUP9=1;
|