double iStochastic(string symbol, int timeframe, int %Kperiod, int %Dperiod, int slowing, int method, int price_field, int mode, int shift)
Calculates the Stochastic oscillator and returns its value.
ストキャスティックス オシレーターを計算して、その値を返します。
Parameters:
パラメータ:
| symbol |
- |
Symbol the data of which should be used to calculate indicator. NULL means the current symbol. インディケータの計算に使用するデータの通貨ペア名。NULL は、現在のシンボルを意味します。 |
| timeframe |
- |
時間枠。時間枠の列挙値のいずれかを指定できます。0 は、現在のチャートの時間枠を意味します。 |
| %Kperiod |
- |
%K line period. %Kラインの期間。 |
| %Dperiod |
- |
%D line period. %Dラインの期間。 |
| slowing |
- |
Slowing value. スロー値 |
| method |
- |
MAの方式。移動平均方式の列挙値のいずれかを指定できます。 |
| price_field |
- |
Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close.
価格フィールドのパラメータ。次の値のいずれかを指定できます:0 - 安値/高値 もしくは、1 - 終値/終値。 |
| mode |
- |
インディケータ線のインデックス。インディケータ線の識別子の列挙値のいずれかを指定できます。 |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする) |
|
Sample:
サンプル:
if(iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,0)>iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,0))
return(0);
|