- Where do I get historical data for backtesting?
- Trouble logging into live account
- Problem loading historical data
That is totally normal. Indicators used by Expert Advisors are not displayed when live. They appear in the Strategy Tester mainly because it is a testing environment, where one may need the visual aids for debugging.
Thanks so much, I had begun to suspect that. Is there a way to draw shapes when live in the EA?
Thanks so much, I had begun to suspect that. Is there a way to draw shapes when live in the EA?
If you add the necessary MQL5 code to the Expert Advisor, then you can display the indicators on the chart when working online. You need to explore these features:
Returns the ID of the current chart | |
Adds an indicator with the specified handle into a specified chart window | |
Removes an indicator with a specified name from the specified chart window | |
Returns the handle of the indicator with the specified short name in the specified chart window | |
Returns the short name of the indicator by the number in the indicators list on the specified chart window | |
Returns the number of all indicators applied to the specified chart window. |
![Documentation on MQL5: Chart Operations / ChartID Documentation on MQL5: Chart Operations / ChartID](https://c.mql5.com/36/56/documentation-on-mql5-chart-operations.png)
- www.mql5.com
Yes, you can add Graphical Objects to your chart: Documentation on MQL5: Object Functions
![Documentation on MQL5: Object Functions Documentation on MQL5: Object Functions](https://c.mql5.com/36/56/documentation-on-mql5-object-functi.png)
- www.mql5.com
![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