difference of these two

 

hi

could someone explain the diff between these two? according to this link, both  of these return maximum volume

long maximum = (long)SymbolInfoInteger (_Symbol, SYMBOL_VOLUMEHIGH);

double maximum = SymbolInfoDouble(_Symbol ,SYMBOL_VOLUMEHIGH_REAL); 
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

hi,


not sure but the difference it's only the double and integer, Perhaps when the volume variable contains a comma

 
farhadmaxcould someone explain the diff between these two? according to this link, both  of these return maximum volume

No difference except as noted above (double and integrer).

SYMBOL_VOLUMEHIGH was "inherited" from MQL4 and SYMBOL_VOLUMEHIGH_REAL was added later in MQL5.

https://www.metatrader5.com/en/releasenotes/terminal/1898


MetaTrader 5 platform build 1930: Floating window charts and .Net libraries in MQL5
MetaTrader 5 platform build 1930: Floating window charts and .Net libraries in MQL5
  • 2018.10.26
  • MetaQuotes
  • www.metatrader5.com
Now you can detach financial symbol charts from the trading terminal window. This feature is convenient when using multiple monitors. Thus, you may set the main platform window on one monitor to control your account state, and move your charts to the second screen to observe the market situation. To detach a chart from the terminal, disable the...
Reason: