VAR1:=IF(DATE<1160601, 1, 20);
JJ:=DMA((H+L+REF(H,1)+REF(L,1)+REF(h,2)+REF(l,2)+REF(C,1)+C)/8,VOL*240/OPENINT);
JJ1:=EMA(JJ,7);
MJ:=2*(H+L+REF(H,1)+REF(L,1)+REF(h,2)+REF(l,2)+REF(C,1)+C)/8-JJ1;
MJ2:=FORCAST(2*EMA(MJ,45)-EMA(EMA(EMA(MJ,45),45),45),43);
MJ3:=FORCAST(MJ2,145);
MJ31:=EMA(EMA(ema(MJ3,105),105),105)*BETWEEN(DATE, 1000101, 1060601);
Var11:=JJ1-MJ31;
Var21:=EMA(Var11, 30);
Var31:=2*(Var11-Var21);
多头持仓区: STICKLINE(Var11>Var21 AND Var21>0,h,l,8,1) ,COLORRED;
多头警戒区: STICKLINE(Var11<Var21 AND Var21>0,h,l,8,1), , COLORYELLOW;
空头警戒区: STICKLINE(Var11>Var21 AND Var21<0,h,l,8,1), , COLORGREEN;
空头持仓区: STICKLINE(Var11<Var21 AND Var21<0,h,l,8,1), , COLORBLUE;
DRAWICON(CROSS(JJ1,MJ31),L*0.999,4);
DRAWICON(CROSS(MJ31,JJ1),H*1.001,5);
DRAWTEXT(CROSS(JJ1,MJ31),L*0.998,'买开卖平');
DRAWTEXT(CROSS(MJ31,JJ1),H*1.002,'卖开买平')
20098418413384275.gif
|