symbol | Symbol name on the data of which the indicator will be calculated. NULL means the current symbol |
timeframe | Timeframe. It can be any of following values:
PERIOD_CURRENT | 0 | Current timeframe |
PERIOD_M1 | 1 | 1 minute |
PERIOD_M5 | 5 | 5 minutes |
PERIOD_M15 | 15 | 15 minutes |
PERIOD_M30 | 30 | 30 minutes |
PERIOD_H1 | 60 | 1 hour |
PERIOD_H4 | 240 | 4 hours |
PERIOD_D1 | 1440 | 1 day |
PERIOD_W1 | 10080 | 1 week |
PERIOD_MN1 | 43200 | 1 month |
PERIOD_M2 | 2 | 2 minutes |
PERIOD_M3 | 3 | 3 minutes |
PERIOD_M4 | 4 | 4 minutes |
PERIOD_M6 | 6 | 6 minutes |
PERIOD_M10 | 10 | 10 minutes |
PERIOD_M12 | 12 | 12 minutes |
PERIOD_M20 | 20 | 20 minutes |
PERIOD_H2 | 120 | 2 hours |
PERIOD_H3 | 180 | 3 hours |
PERIOD_H6 | 360 | 6 hours |
PERIOD_H8 | 480 | 8 hours |
PERIOD_H12 | 720 | 12 hours |
|
period | Averaging period for calculation |
ma_shift | MA shift. Indicator line offset relate to the chart by timeframe |
ma_method | Moving Average method. It can be any of following values:
MODE_SMA | Simple averaging |
MODE_EMA | Exponential averaging |
MODE_SMMA | Smoothed averaging |
MODE_LWMA | Linear-weighted averaging |
|
applied_price | Applied price. It can be any of the following values:
PRICE_CLOSE | Close price |
PRICE_OPEN | Open price |
PRICE_HIGH | The maximum price for the period |
PRICE_LOW | The minimum price for the period |
PRICE_MEDIAN | Median price, (high + low)/2 |
PRICE_TYPICAL | Typical price, (high + low + close)/3 |
PRICE_WEIGHTED | Weighted close price, (high + low + close + close)/4 |
|
shift | Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago) |