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
Indicators

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

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

Views:
4110
Rating:
votes: 40

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.

Scale

Gradient

Heatmap

Recommendations:

  • 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.