A specific risk rule to move the stop-loss to the entry price once the trade has reached a specified profit (thus guaranteeing no loss). For example, “after 30 pips in profit, set stop-loss to entry.” This can be implemented by checking profit and, if reached, modifying the order.
-
Example (MQL4):