Hi,
whats the syntax for setting CHART_SHOW_OHLC --> false, on a Chart object that was created as OBJ_CHART?
Thank you, Sven
![How to change colors of bar and candle in chart object How to change colors of bar and candle in chart object](/i/community/logo_mql5_small.png)
- www.mql5.com
Hi,
thanks for the response. I tried ...
long mini_chart_id; mini_chart_id=ObjectGetInteger(0,"mini_chart_1",OBJPROP_CHART_ID); ChartSetInteger(mini_chart_id, CHART_SHOW_OHLC, false);
But this doesnt work. What am I missing?
Hi,
thanks for the response. I tried ...
But this doesnt work. What am I missing?
Is mini_chart_id gets a correct value ?
Check the returned value of ChartSetInteger() and print the error code if needed.
Is mini_chart_id gets a correct value ?
Check the returned value of ChartSetInteger() and print the error code if needed.
long mini_chart_id; mini_chart_id=ObjectGetInteger(0,"mini_chart_1",OBJPROP_CHART_ID); Print("id ",mini_chart_id); Print(ChartSetInteger(mini_chart_id, CHART_SHOW_OHLC, false));2014.04.30 20:56:30.157 chart_mini (EURUSD,M1) 585
2014.04.30 20:56:30.157 chart_mini (EURUSD,M1) true
2014.04.30 20:56:30.154 chart_mini (EURUSD,M1) id 130427029228697791
2014.04.30 20:56:30.157 chart_mini (EURUSD,M1) true
2014.04.30 20:56:30.154 chart_mini (EURUSD,M1) id 130427029228697791
("chart_mini"?)
ChartRedraw(mini_chart_id);
Yes, that's it.
Thank you.
I had the "ChartRedraw" issue already before, working on a different indicator.
So, thats something definitely to be kept in mind.
Interestingly, it's not an issue on Mt4.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
whats the syntax for setting CHART_SHOW_OHLC --> false, on a Chart object that was created as OBJ_CHART?
Thank you, Sven