• Overview
  • Reviews
  • Comments (7)
  • What's new

Hysteresis for MT4

This indicator identifies market modes based on a moving average channel of the highs and lows. When the system is in the bull mode, it only allows the channel to increase, and vice versa in bear. The purpose of choosing a channel over just a moving average is to get the benefits of hysteresis and reduce whipsaws by using a range of values before switching from bull to bear regime.

Hysteresis is a natural phenomenon that appears in magnetism, elastics, cell mitosis and control theory (e.g. thermostats). These systems exhibit path dependence in which the current state depends on the path taken to achieve it. The system has memory and the effects of the current input are only felt after a delay or range threshold is exceeded. Many people believe that markets also need time to respond to new information and that response does take into consideration recent market history. This market mode filter requires price to close below the low of the channel before switching into a bear mode.

How to interpret

  • When price is above the indicator value, the market is bullish and you should look for opportunities to go long.
  • When price is below the indicator value, the market is bearish and you should look for opportunities to sell short.
Hysteresis is primarily meant to be used as a trend filter in combination with another strategy or indicator. You can for example use the Value Chart indicator in conjunction with the Hysteresis indicator. When Hysteresis indicates that the market is bullish, look only for long entries and use the Value Chart to identify temporary pullbacks to rejoin the trend, and vice versa for a bearish market.
No reviews
Version 2.1 - 2016.01.14
- Fixed a visual bug where both bull and bear lines were drawn at the same candle.
Version 2.0 - 2015.11.23
- This version contains a breaking change if you're using this indicator programmatically! There is only one buffer now containing the moving average channel value. Compare the price against this value. If price is above the moving average channel value the market is bullish. If price is below the moving average channel value the market is bearish.