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


Heatmaps, color gradients and scales in MQL5 - indicator for MetaTrader 5

Rodrigo Malacarne | English Русский 中文 Español Deutsch 日本語 Português

votes: 45
2014.05.21 06:39
2016.11.22 07:32

The purpose of this code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL5 language and functions.

In order to facilitate things, we will work with the RGB color model and the standard conversion function StringToColor. Other color conversion methods can be implemented in MQL5, however we have decided to use the RGB color model due to the facility to perform mathematical operations on the colors.





  • It's recommended to use this whenever you want to know the daily percent change of all the assets you have on the Market Watch.
  • It's recommended to use at least 5 symbols and at most 20-25 symbols (in order to fit on the screen).
  • You can choose one of the 3 display modes: Scale, Gradient or Heatmap.
HighsLowsSignal_HTF HighsLowsSignal_HTF

The HighsLowsSignal indicator with the timeframe selection option available in input parameters.

Exp_HighsLowsSignal Exp_HighsLowsSignal

A trading system using the HighsLowsSignal semaphore arrow indicator.

Channel Trailing Channel Trailing

The EA for trailing along a price channel.

Horizontal line for max/min prices of the last 2 years Horizontal line for max/min prices of the last 2 years

Example code on how to draw an horizontal line for maximum and minimum prices of the last 2 years.