trilling stop code

 

Hi,

I have an EA which opens trade, but I am not able to figure out how to do trilling on it

can someone give me code to do trilling as fallowing condition

1. once i am xx pips in profit I want to close half position

and put stoploss on 1 pip profit

ex:

if I buy 1lot at 1.4400 once market is at 1.4410 i want to close .50 lots

and put stoploss at 1.4401 for remaining .50 lots

 
rfbudhwani:
can someone give me code to do ...
No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
Reason: