macd00:=stkindi('','macd.macd1',0,21,120);
LB:=240*vol/OPENMINUTES(currenttime)/ref(ma(vol,5),1);
A:=CURRENTTIME>094500 and LB>2;
b:=o<1.05*ref(c,1);
d:=c<1.04*ref(c,1);
e:=c>o;
// C>O
f:=c/llv(c,10)<1.20;
ddjlr:=(DYNAINFO(136)+DYNAINFO(112)-DYNAINFO(113)-DYNAINFO(137))/(DYNAINFO(111)+DYNAINFO(135))>0.5;
J:=ref(all(vol/ref(ma(vol,5),1)<2,4),1);
if A and
B and D
and E and
F and macd00>ref(macd00,1) and J
and tbuyholding(1)=0 then begin
tbuy(1,10000/close,MKT);
end
if hhv(h,tenterbars)*0.97>c and
tbuyholding(0)>0 then begin
tsell(1,0,mkt);
end
if tenterbars>=1
and tbuyholding(0)>0 then
begin
tsell(1,0,mkt);
end