I’m Running Two instruments at the same time during testing and plan on combining them into one soon. My problem is : I have set DEFPARAM CumulateOrders = False but when I run both instruments on the same pair AUD/USD it creates a buy and sell during the same period so its’ like Hedging .. but if I add the below, will this stop the existing trade as both instruments are opposed one is BUY and one is SELL ? or will it cause issues , or are all instruments treated as unique trades
If NOT LONGONMARKET or NOT SHORTONMARKET AND c1 and C11 then
Buy BuyPrice Contract at Market
Set Target Profit 0.0015
Set Stop Price Startprice
Endif
Thank you
Hedging is not allowed within the same strategy, so if you place two opposite orders at the same time, the latter will always override the other.
You have two separate systems hedging (like it seems in your pic), as they ignore each other, provided you have set the option FORCE OPEN (with IG).