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

The indicator plots the vertical portion of each bar between the open and close prices.
The DRAW_HISTOGRAM2 drawing style can be used for drawing in separate windows and in the main chart window. It will not plot null values, null indicator values must be specified explicitly. Two data buffers are required for DRAW_HISTOGRAM2 style.
The histogram's color, width, and style change randomly every N ticks. In the OnInit() function, which selects a day of the week (invisible_day), the indicator value of the bar of that week will be filled with empty values (PLOT_EMPTY_VALUE=0):
//--- define null value Plot index setting double (plot_index_DRAW_SECTION, PLOT_EMPTY_VALUE , 0 );
The initial properties of the plot1 graph are defined using the #property preprocessor directive, further these properties are randomly changed ( OnCalculate() function).

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