Hey all and happy new year!
I have been constructing an EA via fxDreema and I am almost finished with my project.
The last bit I need some assistance with is with exposure control. I would like my system to:
1. Sort open trades into long and short currencies , not trades (ie if i had a EURUSD Long, I would be long EUR and Short USD and if I had a SGDJPY short, I would be short SGD and long JPY. )
2. Assess whether there is a conflicting trade open on another pair
3. count the number of open trades on the conflicting pair(needs to be <=1 trade on the conflicting pair),
4. the final check is such that if there exists one trade or less, that the Stop Loss is at or beyond breakeven
I attached a diagram of the desired logic, but if there is any confusion please let me know
I appreciate any sort of help the coders here can offer, especially as this is not the easiest request.