副图公式 源码支持:手机/电脑
CAI1:=33;CAI2:=33;
0,COLORWHITE;
CHA1:=(2*CLOSE+HIGH+LOW)/4*(CAI1+0.001);
CHA2:=EMA(CHA1,4)*(CAI2);
CHA3:=EMA(CHA2,4);
CHA4:=EMA(CHA3,4);
CHB0:=(CHA4-REF(CHA4,1))/REF(CHA4,1)*100*(CAI2);
短线趋势0:CHB0;
CHB1:=MA(CHB0,2);
短线趋势1:CHB1;
CHB2:=MA(CHB0,1);
短线趋势2:CHB2;
红实柱:CHB0>=0 AND CHB0>REF(CHB0,1),COLORRED,NODRAW;
红空柱:CHB0>=0 AND CHB0<=REF(CHB0,1),COLORLIRED,NODRAW;
绿柱:CHB0<0 AND CHB1>=CHB2,COLORGREEN,NODRAW;
蓝柱:CHB0<0 AND CHB1<=CHB2,COLORBLUE,NODRAW;
STICKLINE(红实柱,CHB0,0,2,0),COLORRED;
STICKLINE(红空柱,CHB0,0,2,1),COLORRED;
STICKLINE(绿柱,CHB0,0,2,0),COLORGREEN;
STICKLINE(蓝柱,CHB0,0,2,0),COLORBLUE;
量:=VOL/EMA(VOL,21);
STICKLINE(量>1.5 AND C/REF(C,1)>1.03 AND CHB0>0,CHB0 ,CHB0+0.5*CAI2,2,0),COLORMAGENTA;
DRAWTEXT(量>1.5 AND C/REF(C,1)>1.03 AND CHB0>0,CHB0+0.7,'加码1'),COLORYELLOW;
STICKLINE(量>1.5 AND C/REF(C,1)>1.03 AND CHB0<0,0 ,0.5,2,0),COLORMAGENTA;
DRAWTEXT(量>1.5 AND C/REF(C,1)>1.03 AND CHB0<0,0.7,'加码2'),COLORMAGENTA;
STICKLINE(量>1.5 AND C/REF(C,1)<0.98 AND CHB0>0,0 ,MIN(-0.3,-CHB0),2,0),COLORCYAN;
STICKLINE(量>1.5 AND C/REF(C,1)<0.98 AND CHB0<0,CHB0,-0.3*CAI2+CHB0,2,0),COLORCYAN;
DRAWTEXT(量>1.5 AND C/REF(C,1)<0.98 AND CHB0>0,CHB0+0.1,'清仓'),COLORGREEN;
选股公式源码
{选股公式一:加码1}
CAI1:=33;CAI2:=33;
CHA1:=(2*CLOSE+HIGH+LOW)/4*(CAI1+0.001);
CHA2:=EMA(CHA1,4)*(CAI2);
CHA3:=EMA(CHA2,4);
CHA4:=EMA(CHA3,4);
CHB0:=(CHA4-REF(CHA4,1))/REF(CHA4,1)*100*(CAI2);
量:=VOL/EMA(VOL,21);
{DRAWTEXT(量>1.5 AND C/REF(C,1)>1.03 AND CHB0>0,CHB0+0.7,'加码1'),COLORYELLOW;}
加码1:量>1.5 AND C/REF(C,1)>1.03 AND CHB0>0;
{选股公式二:加码2}
CAI1:=33;CAI2:=33;
CHA1:=(2*CLOSE+HIGH+LOW)/4*(CAI1+0.001);
CHA2:=EMA(CHA1,4)*(CAI2);
CHA3:=EMA(CHA2,4);
CHA4:=EMA(CHA3,4);
CHB0:=(CHA4-REF(CHA4,1))/REF(CHA4,1)*100*(CAI2);
量:=VOL/EMA(VOL,21);
{DRAWTEXT(量>1.5 AND C/REF(C,1)>1.03 AND CHB0<0,0.7,'加码2'),COLORMAGENTA;}
加码2:量>1.5 AND C/REF(C,1)>1.03 AND CHB0<0; |