1 trade per condition but with pending order
-
Hi all,
I have worked out how to set a variable 'switch' to control only 1 trade per ema cross (for example). But my orders are pending and some will expire and when they do I still want to be 'open' for as trade.
So what I want to check is number of Closed positions since the ema's crossed. I have set up a variable to be modified when the cross happens but I'm stuck on the next bit, how to search for closed positions since that time... and if >0 then no trade.
Thx for help.
-
Can you please share the link of your project to take a look at?