How to display indicators on chart from your expert advisor"?

Hello everybody,

how can I display the indicators used in my EA in my live chart window?

Problem: While running the “MACD Sample” in Strategy Tester I can see the indicator but not when running the “MACD Sample” in a live chart. Is there any #property of other function I can use to tell the terminal to display the indicators used in my EA also in a live chart window?

This would be helpful for visual testing.

Thanks

ChartIndicatorAdd()

Adds an indicator with the specified handle into a specified chart window. Indicator and chart should be generated on the same symbol and time frame.

Great!

Thank you :slight_smile:

This is not working in my editor.

are you on mt4 or mt5?