HELP! How do I set my SL to Breakeven on first partial closing?

 
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem. 
 
Kangaroomarket:
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem. 

Handle onTradeTransaction event to catch the event. Use PositionModify from <Trade.mqh> to move SL to open price.

 
Kangaroomarket:
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem. 
Please avoid double posting to not clutter up the forum. You have this other but same topic.
Reason: