EasyLanguage Question

dpleydell

Junior member
Messages
11
Likes
0
Hi,

Is is possible in Easy Language to place a Short Sell at the low of the signal bar and have it triggered IF the price trades below but cancel this order if not filled within 2 days?

Thanks
David
 
Something like this may do it.

Variables: SellFlag(0);

If {Sell Condition} then begin
SellFlag = Barnumber;
end;

If Barnumber < SellFlag + 2 then begin
Sell Short ("Sell") next bar at Low[Barnumber - SellFlag] stop;
end;
 
twalker said:
Something like this may do it.

Variables: SellFlag(0);

If {Sell Condition} then begin
SellFlag = Barnumber;
end;

If Barnumber < SellFlag + 2 then begin
Sell Short ("Sell") next bar at Low[Barnumber - SellFlag] stop;
end;

Thanks. That worked. I didn't realise you can back date your sell orders like that.

David
 
Top