Graham Webber / Publications
Forum
Problem plotting moving average MQL5
Hi All, I've been trying to open a chart and then plot a moving average from inside a script. This is my simple code: void OnStart () { long _chart = ChartOpen ( "AUDUSD.a" , PERIOD_H1 ); int _myMA= iMA ( Symbol (), PERIOD_H1 , 21 , 0 , MODE_SMA , PRICE_CLOSE ); ChartIndicatorAdd (_chart, 0