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

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 .

Attachment download
📎 draw_histogram.mq5 (4.7 KB)
Source: MQL5 #332
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •