forward testing Lilith goes to Hollywood. ( free available on codebase btw)
The EA closes all the positions including on different pairs when a target has been reached.
How do I change this so only positions and pending orders on that particular pair are closed?
Thanks for helping out!
it's easier to help if you post a link to the original code or a code snippet of the EA.
To explain it in general you have to check if OrderSymbol() == Symbol()
This can be added to the CloseAll() function.
I will keep messing around with it till I get it working. Cheers!