Need Help withTrailing Stop EA that closes half order at certian conditions met Take a look

 

I was wondering if this can be made. for a trailing stop EA. What I want this EA to do is for example I have a open order and I set my trailing stop at 20 here is the interesting part. Lets say the order hit’s the trailing stop above 20 and the starts heading the opposite direction, I want the EA to close half the order say at 10 pips below the trailing stop. just an example. This way once you hit your trailing stop if the the market reverses you still get half the order at the amount of pips you input on the EA.

Thanks in advance, I think this would make a great trailing stop EA


Conditions for EA:.

Dollars Profit input
Hard stop input
Close half order input in pips this is once the trailing stop is hit.
Reason: