使用指南
Object Globals
NetTradeX PC
NetTradeX Android
NetTradeX iOS
NetTradeX Mobile
NetTradeX Advisors
-
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
Object Globals
Global variables of the client terminal are intended for the data exchange between different scripts. Their values are recorded on your hard drive, so that they save their values after the restart of the terminal. Life time of global variables is limited: if a variable has not been used for 90 days, it is deleted automatically. Besides, the programmer can delete unnecessary variable manually.
Methods for working with global variables of the client terminal:
Method | Description |
---|---|
VariableSetDouble(const string& in name, double dvalue) | Sets value dvalue to a double variable |
VariableSetInt(const string& in name, int ivalue) | Sets value ivalue to an int variable |
VariableSetStr(const string& in name, const string& in svalue) | Sets value svalue to a string variable |
VariableGetDouble(const string& in name) | Returns the value of a double variable |
VariableGetInt(const string& in name) | Returns the value of an int variable |
VariableGetStr(const string& in name) | Returns the value of a string variable |
VariableCheck(const string& in name) |
Returns true if the variable name exists
|
VariableDelete(const string& in name) |
Deletes the variable name
|