double iMACD(string symbol, int timeframe, int fast_ema_period, int slow_ema_period, int signal_period, int applied_price, int mode, int shift)
Calculates the Moving averages convergence/divergence and returns its value.
In the systems where OsMA is called MACD Histogram, this indicator is displayed
as two lines. In the Client Terminal, the Moving Average Convergence/Divergence
is drawn as a histogram.
MACD(移動平均収束拡散値)を計算して、その値を返します。このシステムでは、OsMA が MACD ヒストグラムと呼ばれ、このインディケータ2つのラインとして表示されます。クライアント ターミナルでは、移動平均の収束/拡散がヒストグラム(棒グラフ)として描画されます。
Parameters:
パラメータ:
| symbol |
- |
Symbol the data of which should be used to calculate indicator. NULL means the current symbol. インディケータの計算に使用するデータの通貨ペア名。NULL は、現在のシンボルを意味します。 |
| timeframe |
- |
時間枠。時間枠の列挙値のいずれかを指定できます。0 は、現在のチャートの時間枠を意味します。 |
| fast_ema_period |
- |
Number of periods for fast moving average calculation. 速い移動平均の計算のための期間の数 |
| slow_ema_period |
- |
Number of periods for slow moving average calculation. 遅い移動平均の計算のための期間の数。 |
| signal_period |
- |
Number of periods for signal moving average calculation. シグナルの移動平均計算のための期間の数。 |
| applied_price |
- |
適用する価格。適用価格列挙値のいずれかを指定できます。 |
| 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(iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0)) return(0);
|