EA / script to close half trade

SanMiguel

Experienced member
Messages
1,136
Likes
25
I am trying to write an EA that:
- closes out half a trade on reaching an inputted TP
- sets the SL to +10 pips of the entry
- alerts me with a message on screen or an alarm
- resets TP to 0.0000, i.e. no TP for remainder of trade (I would close manually).

How can I right click on an existing order and set these variables for each individual order?
 
Top