Download MetaTrader 5

SymbolInfoDouble/SymbolInfoInteger

To add comments, please log in or register
Icham Aidibe
10376
Icham Aidibe  
Date="+SymbolInfoInteger(_Symbol,SYMBOL_TIME)+" 

returns the date in that format : 

Date=1392399002

did i miss something ?

Alain Verleyen
Moderator
33504
Alain Verleyen  
blouf:

returns the date in that format : 

Date=1392399002

did i miss something ?

Yes. SymbolInfoInteger() returns a long.
Icham Aidibe
10376
Icham Aidibe  
angevoyageur:
Yes. SymbolInfoInteger() returns a long.
oh. will symbolinfodouble() return a double ?
Alain Verleyen
Moderator
33504
Alain Verleyen  
blouf:
oh. will symbolinfodouble() return a double ?

There are chances.

If you need a formatted date, use appropriate conversion function.

Icham Aidibe
10376
Icham Aidibe  
angevoyageur:

There are chances.

If you need a formatted date, use appropriate conversion function.

Appropriate conversion function. Like ? Cuz i do need a formatted date.
Rodrigo Malacarne
Moderator
10475
Rodrigo Malacarne  
blouf:
Appropriate conversion function. Like ? Cuz i do need a formatted date.

Try to use

TimeToString(SymbolInfoInteger(_Symbol,SYMBOL_TIME));
Icham Aidibe
10376
Icham Aidibe  
Malacarne:

Try to use

thanks.
To add comments, please log in or register