Forum

Problem applying template

Hi, I'm writing an EA. Under Tools->Options I've set the symbol to GOLD. When the trading terminal opens I see a chart with the symbol Gold. So far so good. In the OnInit() function I apply a ChartApplyTemplate function and nothing happens. I tried ChartApplyTemplate using the chartID and leaving it

how to make a chart current?

Hi, Im new to MQL4 but not to coding. In my EA I'm trying to make a specific chart the current chart. When I activate the trading terminal it starts with a particular chart - EURUSD. This is not the one I want so I open a new chart (GOLD.) . At this stage _Symbol is still not set to GOLD. I then do