how to Change Pair on current open chart

hi i want to change pair on current chart  i.e currently open chart is EURUSD with h1 tf and Momentum.tpl Template . when i attach ea it change EURUSD To GBPUSD with same time frame h1 and same template Momentum.tpl
zahidmahmood:
hi i want to change pair on current chart  i.e currently open chart is EURUSD with h1 tf and Momentum.tpl Template . when i attach ea it change EURUSD To GBPUSD with same time frame h1 and same template Momentum.tpl
Yes,
You can
While the chart is active, press ENTER button from the keyboard. Then type the pair exact name with no - or / like: gbpusd, or usdchf
ChartSetSymbolPeriod(0,"GBPUSD",_Period);
try it