W2: IF(DATE Var1,MA(LOW-REF(LOW,MV*2),MV),1.5)*5*MV;
W3: IF(DATE Var1,MA(HIGH-REF(HIGH,MV*2),MV),0.5)*4*MV;
W4: IF(DATE Var1,MA(OPEN-REF(OPEN,MV*2),MV),-1.5)*3*MV;
买: IF(CLOSE 90,-500,-3)*SM;
卖: IF(CLOSE 90,500,3)*SM;
Var2:=IF(W4 0,W4-W1,W1-W4);
Var3:=IF(W4 0,W4-0,0-W4);
Var4:=IF(Var2/Var3 1,1,0);
IF(Var4=IF(W4 0,0,1),W1,0);
0;
DRAWTEXT(DATE Var1,100,'');
DRAWTEXT(DATE Var1,50,'');
DRAWTEXT(DATE Var1,0,'');
DRAWTEXT(DATE Var1,-50,'');
DRAWTEXT(DATE Var1,-100,'');
DRAWTEXT(DATE Var1,-150,'');