Download MetaTrader 5

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

2010.06.21 11:19
mslmsh - Market structure low/high

mslmsh - Market structure low/high - indicator for MetaTrader 4

| English Español Português 日本語 Deutsch

mslmsh.mq4 (5.91 KB)view


The indicator seeks for local highs and local lows. A local high/low is defined by three candles, if the high of the middle candle is higher than its neigbours it is forming a local high, if the low is lower than the neigbours it forms a local low.

We can do a break out trade if the price exceeds a local high or low and we can see a trend if the lows are rising or the highs are falling.

Each local high/low is also a resistance or support, the more the point has been hit in the past, the stronger it works as resistance or support. The indicator counts how many times a price has been hit and displays the count in a color code from white to red.


The parameters are used to reduce the number of horizontal lines displayed.

  • PipRange: Use the same counter if the price is within a range of x Pips. For example if PipRange is 10, the prices EURUSD 1.2000 and 1.2010 use the same counter. If the PipRange is one there may be 10 lines between.
  • Porcent: Display the upper x% of the range. For example if the maximum hit count of a point is 10, a value of 70 displays the upper 30 por cent of hits, only points which have been hit at least 7 times will be displayed with a horizontal line.

The horizontal lines have the colors White,Yellow,DodgerBlue,Orange,Red where White is the wakest and red the strongest. The commont for a line displays how many relative highs or lows are hitting them.


Depending on the time frame of a trade and depending on the chart data we must find good parameters to display resistance zones, it varies from no line at all and lines at each price level.

Horizontal lines are built from all candles from the chart, not only from the visible ones.

We can use the resistance zones to set limit orders.

Risk warning

Use at your own risk or with demo money.
This indicator does not work as firmware for any cristal ball.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Modify All TP SL Modify All TP SL

The script modifies all orders (market and pending) on the symbol with specified Take Profit and Stop Loss.

iFractals 4all TF iFractals 4all TF

Buy or sell just by looking at the "arrow" as a signal. Very easy and simple.