Is an EA like this possible?

 

I don't mind taking the time to learn the programming language but I just would like to know if this is possible.

1. Open a long position when the price reaches a certain point and set to close if profit reaches 100 pips.

2. If the position is losing by more than 100 pips open another long position and change the profit for the first position to -50 pips and set the profit for the second position to 50 pips (to break even).

3. If the price drops another 100 pips, open a third position and set it's profit to 100 pips, change the second positions profit to 0 pips and change the first positions profit to -100 pips (to break even).

and so on.


Is this possible?


Thanks.

 
Yes. learn to code
 
WHRoeder:
Yes. learn to code


Thanks, just wanted to know if possible.
Reason: