Help for writing an expression

 

How to make EA  add a new position when the first postition in profit: for example, the present long position is in profit of 25 pips, and I want the EA to add a new long position ( market order) based on this porfitable trade, how to code?

Any help will be greatly appreciated.

Thanks.