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

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

Views:
10751
Rating:
(49)
Published:
2014.05.21 06:39
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.