SymbolSelect()

 
        printf("Symbol()=%s",Symbol());
        SymbolSelect("EURGBP",true);
        printf("Symbol()=%s",Symbol());
       

Hi


I'm new to MQL5 programming.....

Why I can't change Symbol to another Symbol? Allways is "EURUSD"....?!


Best regards

Siljo

 
Because the chart where you run this code is EURUSD. Please read the documentation.
 
Alain Verleyen:
Because the chart where you run this code is EURUSD. Please read the documentation.

I'm open ONLY "EURGBP" window and MT5 then open another "EURUSD" window..... why?

If you have link for this info ....?

THANKS!

 
siljo:

I'm open ONLY "EURGBP" window and MT5 then open another "EURUSD" window..... why?

If you have link for this info ....?

THANKS!

https://www.mql5.com/en/docs/chart_operations/chartsetsymbolperiod

 

Thanks to all! :)

I make new Chart with new Symbol and make screnshoot of it after reading this:

https://www.mql5.com/en/forum/157286


BR

ChartSetSymbolPeriod() and a problem with the message queue
ChartSetSymbolPeriod() and a problem with the message queue
  • 2015.10.21
  • www.mql5.com
Hi coders, here is a little test script I made...
Reason: