Download MetaTrader 5

There are at least three different methods to retrieve the Spread for a Symbol...

To add comments, please log in or register
Interested in MQL5 features? Find them in documentation!
ChuckM
77
ChuckM 2011.03.01 12:18 

...From the MQLTick Structure...example: SymbolInfoTick()

...From the CSymbol Trade Class...example: CSymbolInfo()

...From the Environment State Function...example: SymbolInfoInteger()

Would someone please explain the advantages and disadvantages of using each technique?   Is there a preferred technique?

TIA...ChuckM

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State - Documentation on MQL5
To add comments, please log in or register