Skip to content

CSymbolInfo

CSymbolInfo

CSymbolInfo is a class for easy access to the symbol properties.

Description

CSymbolInfo class provides access to the symbol properties.

Declaration

class CSymbolInfo : public CObject

Title

#include <Trade\SymbolInfo.mqh>

Inheritance hierarchy

CObject

CSymbolInfo

Class methods by groups

Controlling
RefreshRefreshes the symbol data
RefreshRatesRefreshes the symbol quotes
Properties
NameGets/sets symbol name
SelectGets/sets the “Market Watch” symbol flag
IsSynchronizedChecks the symbol synchronization with server
Volumes
VolumeGets the volume of last deal
VolumeHighGets the maximal volume for a day
VolumeLowGets the minimal volume for a day
Miscellaneous
TimeGets the time of last quote
SpreadGets the amount of spread (in points)
SpreadFloatGets the flag of floating spread
TicksBookDepthGets the depth of ticks saving
Levels
StopsLevelGets the minimal indent for orders (in points)
FreezeLevelGets the distance of freezing trade operations (in points)
Bid prices
BidGets the current Bid price
BidHighGets the maximal Bid price for a day
BidLowGets the minimal Bid price for a day
Ask prices
AskGets the current Ask price
AskHighGets the maximal Ask price for a day
AskLowGets the minimal Ask price for a day
Prices
LastGets the current Last price
LastHighGets the maximal Last price for a day
LastLowGets the minimal Last price for a day
Trade modes
TradeCalcModeGets the mode of contract cost calculation
TradeCalcModeDescriptionGets the mode of contract cost calculation as a string
TradeModeGets the type of order execution
TradeModeDescriptionGets the type of order execution as a string
TradeExecutionGets the trade execution mode
TradeExecutionDescriptionGets the execution mode as a string
Swaps
SwapModeGets the swap calculation mode
SwapModeDescriptionGets the swap calculation mode as a string
SwapRollover3daysGets the day of triple swap charge
SwapRollover3daysDescriptionGets the day of triple swap charge as a string
Margins and flags
MarginInitialGets the value of initial margin
MarginMaintenanceGets the value of maintenance margin
MarginLongGets the rate of margin charging for long positions
MarginShortGets the rate of margin charging for short positions
MarginLimitGets the rate of margin charging for Limit orders
MarginStopGets the rate of margin charging for Stop orders
MarginStopLimitGets the rate of margin charging for StopLimit orders
TradeTimeFlagsGets the flags of allowed expiration modes
TradeFillFlagsGets the flags of allowed filling modes
Quantization
DigitsGets the number of digits after period
PointGets the value of one point
TickValueGets the tick value (minimal change of price)
TickValueProfitGets the calculated tick price for a profitable position
TickValueLossGets the calculated tick price for a losing position
TickSizeGets the minimal change of price
Contracts sizes
ContractSizeGets the amount of trade contract
LotsMinGets the minimal volume to close a deal
LotsMaxGets the maximal volume to close a deal
LotsStepGets the minimal step of volume change to close a deal
LotsLimitGets the maximal allowed volume of opened position and pending orders (direction insensitive) for one symbol
Swaps sizes
SwapLongGets the value of long position swap
SwapShortGets the value of short position swap
Text properties
CurrencyBaseGets the name of symbol base currency
CurrencyProfitGets the profit currency name
CurrencyMarginGets the margin currency name
BankGets the name of current quote source
DescriptionGets the string description of symbol
PathGets the path in symbols tree
Symbol properties
SessionDealsGets the number of deals in the current session
SessionBuyOrdersGets the number of Buy orders at the moment
SessionSellOrdersGets the number of Sell orders at the moment
SessionTurnoverGets the summary of turnover of the current session
SessionInterestGets the summary of open interest of the current session
SessionBuyOrdersVolumeGets the current volume of Buy orders
SessionSellOrdersVolumeGets the current volume of Sell orders
SessionOpenGets the open price of the current session
SessionCloseGets the close price of the current session
SessionAWGets the average weighted price of the current session
SessionPriceSettlementGets the settlement price of the current session
SessionPriceLimitMinGets the minimal price of the current session
SessionPriceLimitMaxGets the maximal price of the current session
Access to MQL5 API functions
InfoIntegerGets the value of specified integer type property
InfoDoubleGets the value of specified double type property
InfoStringGets the value of specified string type property
Service functions
NormalizePriceReturns the value of price, normalized using the symbol properties

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Type, Compare

Last updated on