predefine variables

_Digits             The _Digits variable stores number of digits after a decimal point, which defines the price accuracy of the symbol of the current chart.
                       You may also use the Digits() function.
_Point              The _Point variable contains the point size of the current symbol in the quote currency. You may also use the Point() function.
_LastError         The _LastError variable contains code of the last error, that occurred during the mql4-program run. Its value can be reset to zero by ResetLastError().
                        To obtain the code of the last error, you may also use the GetLastError() function.
_Period             The _Period variable contains the value of the timeframe of the current chart. Also you may use the Period() function.
_RandomSeed   Variable for storing the current state when generating pseudo-random integers. _RandomSeed changes its value when calling MathRand(). Use MathSrand() to set the required initial condition.
_StopFlag          The _StopFlag variable contains the flag of the mql4-program stop. When the client terminal is trying to stop the program, it sets the _StopFlag variable to true.
_Symbol            The _Symbol variable contains the symbol name of the current chart.You may also use the Symbol() function.
_UninitReason   The _UninitReason variable contains the code of the program uninitialization reason.Usually, this code is obtained by UninitializeReason()the function.

ASK        double Ask   The latest known seller's price (ask price) for the current symbol. The RefreshRates() function must be used to update.
Bars        int Bars   Number of bars in the current chart.
Bid          double Bid  The latest known buyer's price (offer price, bid price) of the current symbol. The RefreshRates() function must be used to update.
close       double Close[]    Series array that contains close prices for each bar of the current chart. The current bar which is the last in the array is indexed as 0. The oldest bar, the first in the chart, is indexed as Bars-1.
Digits      int Digits   Number of digits after decimal point for the current symbol prices.
High         double High[] Series array that contains the highest prices of each bar of the current chart.The current bar which is the last in the array is indexed as 0. The oldest bar, the first in the chart, is indexed as Bars-1.
Low         double Low[] Series array that contains the lowest prices of each bar of the current chart.The current bar which is the last in the array is indexed as 0. The oldest bar, the first in the chart, is indexed as Bars-1.
Open      double Open[]  Series array that contains open prices of each bar of the current chart.
Point       double Point   The current symbol point value in the quote currency.
Time       datetime Time[]  Series array that contains open time of each bar of the current chart. Data like datetime represent time, in seconds, that has passed since 00:00 a.m. of 1 January, 1970.The current bar which is the last in the array is indexed as 0. The oldest bar, the first in the chart, is indexed as Bars-1.
Volume   long Volume[]  Series array that contains tick volumes of each bar of the current chart.The current bar which is the last in the array is indexed as 0. The oldest bar, the first in the chart, is indexed as Bars-1.

猜你喜欢

转载自www.cnblogs.com/ydjmail/p/11608260.html