int iBars(string symbol, int timeframe)
Returns the number of bars on the specified chart.
指定されたチャートのバーの数を返します。
For the current chart, the information about the amount of bars is in the predefined variable named
Bars.
現在のチャートで、バーの総量に関する情報は、Bars という名前の定義済み変数にあります。
Parameters:
パラメータ:
symbol | – | Symbol the data of which should be used to calculate indicator. NULL means the current symbol. インディケータの計算に使用するデータの通貨ペア名。NULL は、現在のシンボルを意味します。 | timeframe | – | 時間枠。時間枠の列挙値のいずれかを指定できます。0 は、現在のチャートの時間枠を意味します。 |
|
Sample:
サンプル:
| Print("Bar count on the 'EUROUSD' symbol with PERIOD_H1 is",iBars("EUROUSD",PERIOD_H1)); |
0 people found this article useful
0 people found this article useful