VarTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VarDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
DRAWTEXT(VarDTIME,115,''),COLOR008000;
DRAWTEXT(VarDTIME,100,''),COLOR008000;
DRAWTEXT(VarDTIME,85,''),COLOR008000;
DRAWTEXT(VarDTIME,70,''),COLOR008000;
DRAWTEXT(VarDTIME,45,''),COLOR008000;
qw1:=(HIGH+LOW+CLOSE*2)/4*VarTIME;
qw3:=EMA(qw1,10)*VarTIME;
qw4:=STD(qw1,10)*VarTIME;
qw5:=(qw1-qw3)*100/qw4*VarTIME;
qw6:=EMA(qw5,5)*VarTIME;
rk7:=EMA(qw6,10)*VarTIME;
涨:EMA(qw6,10)+100/2-5,linethick1,colorred;
跌:EMA(涨,4),linethick1,colorFFFF34;
多线:IF(cross(涨,跌) and 跌<-10,30,0),linethick1,COLORFF00FF;
空线:IF(cross(跌,80),70,100),color0099ff,linethick1;
买1:ema(跌,4)*VarTIME,colorwhite;
买2:ema(买1,4)*VarTIME,colorgreen;
买m3:=ema(买2,4)*VarTIME,coloryellow;
买m4:=ema(买m3,4)*VarTIME,colorcc9900;
-10,pointdot,color888888,linethick2;
80,pointdot,color888888,linethick2;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),0,0 ),colorwhite;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),8,0 ),COLOR008800;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),7,0 ),COLOR009900;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),6,0 ),COLOR00AA00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),5,0 ),COLOR00BB00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),4,0 ),COLOR00CC00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),3,0 ),COLOR00DD00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),2,0 ),COLOR00EE00;
STICKLINE(涨<REF(涨,1)*VarTIME,涨,MA(涨,3),1,0 ),COLOR00FF00;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF;
DRAWICON(多线,30,1),COLORFF00FF;
DRAWICON(cross(跌,80),70,2),colorgreen;
DRAWTEXT(cross(涨,跌) and 跌<20 and 跌>-10,40,'买入'),colorccff99;
DRAWTEXT(多线>0,-20,'看涨'),color0000ff;
Var811:=SUMBARS(VOL,FINANCE(7)*100)*VarTIME;
Var822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL)*VarTIME;
Var883:=(CLOSE-Var822)/Var822*100*VarTIME;
Var884:=HHV(Var883,Var811)*VarTIME;
Var885:=LLV(Var883,Var811)*VarTIME;
Var886:=(Var883-Var885)/(Var884-Var885)*100*VarTIME;
K:=SMA(Var886,3,1)*VarTIME;
D:=SMA(K,3,1)*VarTIME;
J:=3*K-2*D; |