Lode Loyens:
Hi
Can anyone tell me how I can color (or highlight) a portion of the current candle on a chart?
I have code I wrote that checks for a possible run-away candle that is based on a certain number of pips
The code works except I don't know how to draw attention to that specific candle other than a message box.
Any suggestions anyone?
Thanks
Bono L
You can draw a OBJ_RECTANGLE on the specific area.
But creating a separate indicator is a better solution using DRAW_COLOR_CANDLE.
Chioma Obunadike #:
Wow! nice idea with the drawing an object rectangle. But what do you mean by creating a separate indicator using DRAW_COLOUR_CANDLE?
Wow! nice idea with the drawing an object rectangle. But what do you mean by creating a separate indicator using DRAW_COLOUR_CANDLE?
https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_candles

Documentation on MQL5: Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_CANDLES
- www.mql5.com
DRAW_COLOR_CANDLES - Indicator Styles in Examples - Custom Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
Can anyone tell me how I can color (or highlight) a portion of the current candle on a chart?
I have code I wrote that checks for a possible run-away candle that is based on a certain number of pips
The code works except I don't know how to draw attention to that specific candle other than a message box.
Any suggestions anyone?
Thanks
Bono L