Watch how to download trading robots for free
Find us on Twitter!
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

Heikin Ashi Lines - indicator for MetaTrader 4

Views:
16171
Rating:
(10)
Published:
2023.12.10 15:20
Updated:
2023.12.10 15:21
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Probably everyone has put up a Heikin Ashi chart one time or another. It makes it look so much cleaner with less noise and clearer trends.

But there is one major flaw — it hides the true bar/candle values, especially the true closing prices.

The Heikin Ashi close price is simply an applied price called the “total price”, and the Heikin Ashi open is simply a moving average of its close prices.

So, why not just display it as two lines instead?

This is what this indicator does. That way, you can still see the true bar/candle values. The dotted line is the open and the solid is the close.

Please note that by default it will use Gray/Gey as the line colour, which is dull. So use the colour that best suits you, for example Yellow on a black background or Blue on a white background.

The code uses conditional compilation and will compile on both MQL4 and MQL5. Please note that all my CodeBase publications’ source code are now also available in “Public Projects” tab of MetaEditor under the name “FMIC”.



Martingale Trade Simulator Martingale Trade Simulator

a Simple Visual Strategy Tester / Manual Trade Training using Martingale.

Multi time frame example by recursion Multi time frame example by recursion

The purpose of this indicator is to demonstrate newbie friendly way a structure of a multi time frame indicator based on recursion.

Closing all open trades if all one symbol and one trade direction Closing all open trades if all one symbol and one trade direction

All open trades must be of same symbol and type, e.g. all GBPUSD and all BUY. This script will close out your position using one large trade to hedge your position then using CloseBy() function to close all trades against the one large trade until all trades are closed. There can be a maximum of 500 open trades.

pivots calculation based on pine script v4 pivots calculation based on pine script v4

This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql4 indicator.