Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Parabolic TrailingStop

The Stop Loss value of an open position changes when the following conditions are met:

  1. The value of Parabolic SAR at index 1 is greater/less than the open price (for buy and sell trades respectively);
  2. The value of Parabolic SAR at index 1 is less/greater than the Low/High of bar with index 1 (for buy and sell trades respectively);
  3. Parabolic SAR on index 1 is formed after the position open time.

The inputs of the utility are:

  • base_tf - the timeframe for the Parabolic SAR indicator to be used for trailing Stop Loss;
  • SAR_step - price change step (the parameter of "Parabolic SAR", default is 0.1);
  • maximum_step - maximum price change (the parameter of "Parabolic SAR", default is 0.11);

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

20201

Best MetaTrader Indicators + Profitable Expert Advisors