double iOpen(string symbol, int timeframe, int shift)
Returns Open value for the bar of indicated symbol with timeframe and shift. If local history is empty (not loaded), function returns 0.
指定された symbol、timeframe、shiftのバーの始値を返します。もし、ローカル履歴がない(読み込まれていない)場合、関数は 0 を返します。
For the current chart, the information about open prices is in the predefined array named
Open[].
現在のチャートでの安値に関する情報は、Open[] という名前の定義済み配列にあります。
Parameters:
パラメータ:
symbol | – | Symbol the data of which should be used to calculate indicator. NULL means the current symbol. インディケータの計算に使用するデータの通貨ペア名。NULL は、現在のシンボルを意味します。 | timeframe | – | 時間枠。時間枠の列挙値のいずれかを指定できます。0 は、現在のチャートの時間枠を意味します。 | shift | – | Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする) |
|
Sample:
サンプル:
| Print("Current bar for USDCHF H1: ",iTime("USDCHF",PERIOD_H1,i),", ", iOpen("USDCHF",PERIOD_H1,i),", ", iHigh("USDCHF",PERIOD_H1,i),", ", iLow("USDCHF",PERIOD_H1,i),", ", iClose("USDCHF",PERIOD_H1,i),", ", iVolume("USDCHF",PERIOD_H1,i)); |