移動平均線(Moving Average)【iMA】

double iMA(string symbol, int timeframe, int period, int ma_shift, intma_method, int applied_price, int shift)

 

Calculates the Moving average indicator and returns its value.

移動平均線を計算して、その値を返します。

Parameters:

パラメータ:

symbol
Symbol the data of which should be used to calculate indicator. NULL means the current symbol.

インディケータの計算に使用するデータの通貨ペア名。NULL は、現在のシンボルを意味します。

timeframe
Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.

時間枠。時間枠の列挙値のいずれかを指定できます。0 は、現在のチャートの時間枠を意味します。

period
Averaging period for calculation.

計算する平均期間。

ma_shift
MA shift. Indicator line offset relate to the chart by timeframe.

MAの転移。インディケータのずれた線を時間枠のチャートに関連付けます。

ma_method
MA method. It can be any of the Moving Average method enumerationvalue.

MAの方式。移動平均方式の列挙値のいずれかを指定できます。

applied_price
Applied price. It can be any of Applied price enumeration values.

適用する価格。適用価格列挙値のいずれかを指定できます。

shift
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).

インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする)

 

Sample:

サンプル:

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">