Forum

Code won't update a StopLoss

Hi all, I am working on a simple Stop->Breakeven function. Works fine if no SL is manually set, however, if I DO manually set an SL, like in the GUI by dragging the line off the entry to where I want the SL, the code does not modify the SL and I am struggling to figure out why. Here's my code: if

Stop to Break Even Question

Hi all you smart people! I am working on an EA in MT5 for some basic trade management. My trigger for moving the stop to break even is the current PNL of the position. For example, if my PNL on the trade is $500, move SL to BE. Now, I would like to implement a true break even that takes fees into