Can you help me with some code for NT8 as I am not understanding how to call all open positions.
I have been reviewing the following:
I have a max # of positions that I would like to limit my strategy to having open. This strategy is a multi instrument strategy.
How can I call all open positions between all instruments in the account?
If the account has 5 long trades I would like to be able to return that 5 trades are open.
Is there a method to call this? I have read that you need to loop through all account.positions... is that right? How do you loop through these and return the logic I desire.
Thanks.
Comment