Download MetaTrader 5

Symbol name in iRSI

To add comments, please log in or register
Do you know that MQL5 has event handling?
Optimus-Primus
12
Optimus-Primus 2016.10.23 17:35 

Hi

 

I am new to coding and need some help please.

 

I am using iRSI(NULL,0....... for current currency and timeframe but would like to point it to a specific currency, like EURUSD but it doesn't work.

Where do I get numbers for different currencies or what do I use instead of NULL??

 

Thanks in advance 

GBWT094114
3343
GBWT094114 2016.10.23 17:42  
Optimus-Primus:

Hi

 

I am new to coding and need some help please.

 

I am using iRSI(NULL,0....... for current currency and timeframe but would like to point it to a specific currency, like EURUSD but it doesn't work.

Where do I get numbers for different currencies or what do I use instead of NULL??

 

Thanks in advance 

It is not a number, it is a string, you can output the string of the current chart to your log, and see how it is named.

https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_string 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Symbol Properties - Reference on algorithmic/automated trading language for MetaTrader 5
To add comments, please log in or register