Hello everyone,

I would like to import Buy and short on the same bar.Is right the code?

Buy = O<Ref(C,-1) OR O>Ref(C,-1) AND H-O>=41;
Short=O>Ref(C,-1) OR O<Ref(C,-1) AND O-L>=41;
Cover = IIf(Short==1,1,0);
Sell = IIf(Buy==1,1,0);

Any help would as always be appreciated.

Best regards,

wjm3333


Reply via email to