My EA uses some indicators that open subwindows (volume, RSI, Bulls bears, etc). How can I hide these subwindow indicators? It is hard to see the candles with a lot of subwindows...
Tks by advance!
An EA does not need to paint the indicators on the chart.
Are you sure the indicators are created by the EA and not being present in the chart template?
An EA does not need to paint the indicators on the chart.
Are you sure the indicators are created by the EA and not being present in the chart template?
Sorry by the wrong way that I did the question. You are correct: The EA does not show any indicator when is running. The indicators shows only in the test mode.
But I found something interesting about how to show/hide the EA indicators. With this code we can do it easily:
if(ShowIndicators){ int subWindowId=(int)ChartGetInteger(0,CHART_WINDOWS_TOTAL); ChartIndicatorAdd(0,subWindowId,myIndicatorHandle); } else { int subWindowId=ChartWindowFind(0, "My indicator shortname"); ChartIndicatorDelete(0, subWindowId, "My indicator shortname"); } ChartRedraw(0);
My EA uses some indicators that open subwindows (volume, RSI, Bulls bears, etc). How can I hide these subwindow indicators? It is hard to see the candles with a lot of subwindows...
Tks by advance!
MT4 --> https://docs.mql4.com/customind/hidetestindicators
MT5 --> https://www.mql5.com/en/docs/common/testerhideindicators
- docs.mql4.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
My EA uses some indicators that open subwindows (volume, RSI, Bulls bears, etc). How can I hide these subwindow indicators? It is hard to see the candles with a lot of subwindows...
Tks by advance!