Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Moving Average based on Heiken-Ashi - indicator for MetaTrader 5

Views:
202
Rating:
(1)
Published:
2025.06.17 11:15
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Features:

  • Works on all symbols.
  • The indicator is multi time-frame.
  • Uses colors for up and down trend to better visualize true market trend.


Inputs:

  • Time-frame - change the time-frame for indicator calculations.
  • Period - change MA period.
  • Shift - change MA shift.
  • Method - change MA method.
  • Price - change price type.


Here is an example of 3 MA's for 5 minutes, 10 minutes and 15 minutes time-frames on a 5 minutes chart.



The indicator only draws the MA line and not the Heiken-Ashi candles, here is an example with Heiken-Ashi candles.



The indicator only calculates the Heiken-Ashi candles but the code inside CalculateHeikenAshi can be modified to calculate new OHLC data.

Here is an example of Heiken-Ashi Smoothed calculation.


Heiken-Ashi smoothed is a more reliable trend following tool, better for swing trading and filter entries.


Or we can replace the code with Heiken-Ashi smoothed using ATR.


The Heiken-Ashi smoothed ATR provides a smooth baseline for setting dynamic stop-loss/take-profit levels.

TradeReportExporter TradeReportExporter

The TradeReportExporter script is designed to export the history of trades (trades) into a convenient CSV file. It automatically collects data on all trades for the last year for the instrument it is installed on. The file includes such data as date and time, transaction type (buy/sell), price, volume, commission and profit/loss. The result is saved in a file that can be opened in Excel or any other spreadsheet editor.

EXSR EXSR

EXSR.mq5: A counter‑trend MT5 EA that catches reversals by combining RSI(14) extremes with Bollinger Band breakouts and a reversal candlestick, placing one trade per symbol with fixed SL/TP.

Candle Counter Candle Counter

Candle counter is a powerful and versatile tool designed to help traders visualise and analyse the sequence of bars on their charts. This indicator automatically numbers each candle on the chart based on user-defined preferences, making it easy to follow specific candles, identify patterns and implement precise trading strategies.

MACD Signals MACD Signals

Indicator edition for new platform.