Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

DRAW_HISTOGRAM - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

DRAW_HISTOGRAM - indicator for MetaTrader 5

The indicator plots a graph of the sine(x) function in a separate window.

Histogram color, width, and line style change randomly every N ticks. The period of the sin(x) function depends on the bar input parameters. DRAW_HISTOGRAM drawing style is used for drawing histograms (such as oscillators). It allows to avoid drawing the value of some indicators by setting PLOT_EMPTY_VALUE . Only one data buffer is required to draw the histogram style.

Please note that the initial properties of the plot1 plot ( plot the histogram ) are defined using the #property preprocessor directive, further these properties are randomly changed ( OnCalculate() function). The N variable is defined as an input parameter and can be changed manually using the Properties window.

See also: Drawing styles in MQL5 .

DRAW_HISTOGRAM - indicator for MetaTrader 5


Attachment download

📎 draw_histogram.mq5 (4.7 KB)

Source: MQL5 #332

Verification code Refresh