double iCustom(string symbol, int timeframe, string name, ..., int mode, int shift)
Calculates the specified custom indicator and returns its value. The custom
indicator must be compiled (*.EX4 file) and be in the terminal_directory\experts\indicators
directory.
指定したカスタム インディケータを計算し、その値を返します。カスタム インディケータとしてコンパイル(*.EX4 ファイル)され、terminal_directory\experts\indicators
ディレクトリにある必要があります。
Parameters:
パラメータ:
| symbol |
- |
Symbol the data of which should be used to calculate indicator. NULL means the current symbol. インディケータの計算に使用するデータの通貨ペア名。NULL は、現在のシンボルを意味します。 |
| timeframe |
- |
時間枠。時間枠の列挙値のいずれかを指定できます。0 は、現在のチャートの時間枠を意味します。 |
| name |
- |
Custom indicator compiled program name.
カスタム インディケータのコンパイルされたプログラム名。 |
| ... |
- |
Parameters set (if necessary).
The passed parameters and their order must correspond with the desclaration order and the type of extern variables of the custom indicator.
パラメータの設定(必要な場合)。渡すパラメータと順序は、カスタム インディケータの desclaration 順序と extern 変数の型に対応している必要があります。 |
| mode |
- |
Line index. Can be from 0 to 7 and must correspond with the index used by one of SetIndexBuffer functions. 線のインデックス。0 から 7 にすることができ、SetIndexBuffer 関数のいずれかで使用されるインデックスに対応する必要があります。 |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする) |
|
Sample:
サンプル:
double val=iCustom(NULL, 0, "SampleInd",13,1,0);
|