1) Use one account.
2) Load several swing trading strategies on both MES/MNQ using that same one account.
3) When one gets into a position, others are not entering into their positions, despite of the signal.
My idea of achieving it was to check whether unrealized profit/loss is not equal to 0, before EnterLong/EnterShort:
if (State == State.Realtime && Account.Get(AccountItem.UnrealizedProfitLoss, Currency.UsDollar) != 0)
1) Is it correct formula, meaning that current strategy may not have a position, but I run multiple strategies on the ACCOUNT, and ACCOUNT may have a position from different strategy? (I suppose so, but testing real time is a bit more complicated than on historical data)
2) What happens, if Ninja crashes/disconnects/updates and I need to restart it and re-enable strategy. Would it synchronize correctly, since there would be UnrealizedProfitLoss, which, theoretically, could prevent from submitting position?
Comment