DRAW_COLOR_HISTOGRAM2 - MetaTrader 5 Script - MT4/MT5 Resources

This indicator is a demonstration of the DRAW_COLOR_HISTOGRAM2 painting style.
For each bar, it plots the portion between the open and close prices. Three indicator buffers are used: the first contains the highest value of the bar, the second contains the lowest price of the bar, and the third buffer contains the color index.
After N ticks, the color, width, and line style change randomly. plot1 The initial properties of the graph plot are defined using the #property preprocessor directive, further these properties are randomly changed (see OnCalculate() function).

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