• Join us

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

votes: 8
2018.07.13 15:20
LeManStop.mq5 (14.46 KB)view

Trend-following indicator LeManStop is a representative of system LeMan and displays Stop Loss levels for the existing positions in the chart. It draws two Stop Loss lines for Long and Short positions, displayed in different colors.

It has six configurable parameters:

  • Period - calculation period;
  • Coefficient - coefficient of stop line deviation from the price;
  • Fast MA period - fast moving average calculation period;
  • Fast MA method - fast moving average calculation method;
  • Slow MA period - slow moving average calculation period;
  • Slow MA method - slow moving average calculation method.


If dMA > 0:

LeMan Stop = PrevOpen - Coeff * SMA(HO, Period)

If dMA < 0:

LeMan Stop = PrevOpen + Coeff * SMA(OL, Period)


HO = High - Open
OL = Open - Low
dMA = FastMA - SlowMA
FastMA - MA(Close, Fast MA period, Fast MA method)
SlowMA - MA(Close, Slow MA period, Slow MA method)

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/21163


Indicator GB (Gaussian Bands) works in the same manner as standard indicator Bollinger Bands. However, unlike the former, it performs filtering centerline and deviation lines by Gaussian method. It also has two deviation lines on each side of the centerline.


Indicator DMX (Bipolar DMI) is calculated using the standard indicator ADX. However, as compared to that, it displays data as an oscillator with a signal line, and has shorter delay.


Indicator MPO (Midpoint Oscillator) displays price movement without its trend component around its centerpoint. It is displayed as two lines: Price movement line and signal line. Centerline (MidPoint) is zero level of the oscillator.


Indicator PVO (Percentage Volume Oscillator) represents a momentum for the volume. It calculates the difference in the percents of large MA between two moving averages based on volumes.