Hi,
I have some SellAtLimit[bar+1] and SellAtMarket[bar+1] closing orders.
How do i Short at the same bar I Sell? Using the "IsLastPositionActive" condition to submit new Short opening orders causes me to enter a bar too late and makes the trade unprofitable, because my opening orders are ShortAtLimit[bar+1] or ShortAtMarket[bar+1], as recommended.
Pl advise sample code for detecting Sell and using this to Short in the same bar.
CODE:
Please log in to see this code.