دليل المستخدم
-
User Guide for NTTX Advisors
- NetTradeX Advisors Terminal
-
Articles
-
NetTradeX Language: Introduction
- Language Basics
- Language Functions
-
Language System Objects
- Deal Management
- Order Management
- Indicators
- Object-Oriented Programming
-
DLL files
-
Object Account
-
Object Bars
-
Object Chart
-
Object datetime
-
Object History
-
Object file
-
Object Globals
-
Object Math
-
Object Symbols
-
Object System
Symbols object provides access to symbols and their properties.
const string Name(int pos)
Getting the symbol name for the specified position (in the list of symbols).
double LastBid(const string& in symbol)
Getting the latest Bid for the symbol. In case of success, Bid price is returned as a result, otherwise the function returns 0.
double LastAsk(const string& in symbol)
Getting the latest Ask for the symbol. In case of success, Ask price is returned as a result, otherwise the function returns 0.
datetime LastTime(const string& in symbol)
Getting the last prices time for the symbol. In case of success, the last price time is returned as a result, otherwise the function returns 0.
int Digits(const string& in symbol)
Getting the number of digits in the fractional part of the symbol.
double Point(const string& in symbol)
Getting the pip value of the symbol.
int Distance(const string& in symbol)
Getting the minimum order distance for the symbol, which you are subscribed for.
int Leverage(const string& in symbol)
Getting the leverage of the symbol, which you are subscribed for. The leverage for a PCI coincides with the account leverage.
double TickValue(const string& in symbol)
Getting the tick value in the deposit currency.
double LotSize(const string& in symbol)
Getting the lot size of the symbol, which you are subscribed for.
Symbols object properties
- int Total - quantity of available symbols
Example. Add all available instruments into Market Watch and run the following script:
int Initialize() { return(0); } int Run() { for(int i=0; i<Symbols.Total; i++) { System.Print(Symbols.Name(i)+" bid="+Symbols.LastBid(Symbols.Name(i))+" ask="+Symbols.LastAsk(Symbols.Name(i))); } return(0); } int DeInitialize() { return(0); }