Download MetaTrader 5

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

2014.05.21 06:39

Heatmap, Gradient and Scale representation of symbols - indicator for MetaTrader 4

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

votes: 53


The purpose of this code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 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 MQL4, 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.
Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.