change symbol /change timeframe indicator

 

Hi,


can any one please give me sample function to change symbol and change timeframe when user click on the button.

example:

- i made 2 button eurusd, gbpusd and 2 button m1, m2 , when i click, it should change...

 
You will need to call ChartSetSymbolPeriod from the OnChartEvent function
 
Stuart Browne:
You will need to call ChartSetSymbolPeriod from the OnChartEvent function
Thank you.
Reason: