Let's say I have 6 pending orders, tagged with a comment. At a certain point I want to check which ones have been triggered by reading the comment on the positions. The ones which are triggered I want to flag off.
I wrote a small function which runs through all open positions, reads the comment and flags the boolean variables to false... or that's the purpose.
Below script, only flags the first variable to False (while three are actually open positions) :
Hi,
Let's say I have 6 pending orders, tagged with a comment. At a certain point I want to check which ones have been triggered by reading the comment on the positions. The ones which are triggered I want to flag off.
I wrote a small function which runs through all open positions, reads the comment and flags the boolean variables to false... or that's the purpose.
Below script, only flags the first variable to False (while three are actually open positions) :
what do i do wrong?
Thanks for any tips or help