Lilith goes to Hollywood!

 

Hi all!


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.

if(Profit>=Amount){CloseAll();}


How do I change this so only positions and pending orders on that particular pair are closed?


Thanks for helping out!

 

Hi Wouter,

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.

 

Best regards
Daniel 

 

Thanks Daniel,



I will keep messing around with it till I get it working. Cheers!

Reason: