This code block works if you use either a Stop Loss or Not. Requirements You need to include "Trade.mqh " to get access to the CTrade class which allows you to work with positions and orders. #include <Trade\Trade.mqh> // <<----------------------------------------...
from https://tradingrobots.net/code-block-for-trailing-stop-based-on-current-market-price-ask-bid-expert-advisor-for-metatrader-5/
Home
/
Trading Robots
/
Code Block for "Trailing Stop" based on current market price. (Ask / Bid) - EA MetaTrader 5