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 4 Indicators | Discipline | Source Code Included

New free code from MQL5: indicators, EAs, and scripts for traders.

Of course it has some inaccuracies, but they are 10% of 100%.

Input Parameters:

extern int period=10;
extern int price=0; // 0 or other = (H+L)/2
                    // 1 = Open
                    // 2 = Close
                    // 3 = High
                    // 4 = Low
                    // 5 = (H+L+C)/3
                    // 6 = (O+C+H+L)/4
                    // 7 = (O+C)/2
extern bool Mode_Fast=false;
extern bool Signals  =true;

Image for Discipline

Smooth out market noise with the Heiken Ashi Expert Advisor for MT4 and MT5. Reliable trend-following automation. Details here.

Discipline

The indicator was tested on:

  • - timeframes: М15, H 1, H 4, Daily;
  • - currency pairs: EUR/USD, GBP/USD, USD/CHF, USD/JPY;

The author citation about this indicator is published here.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

8501

Best MetaTrader Indicators + Profitable Expert Advisors