OsMA
The MACD histogram: MACD minus its signal line.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| fast_period | int | 12 | 1 to 5000 |
| slow_period | int | 26 | 1 to 5000 |
| signal_period | int | 9 | 1 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| osma | value | Optional | color theme.accent, color_down theme.down, color_up theme.up, style histogram |
- Warm-up
- max(fast_period, slow_period) + signal_period - 2 bars (33 at the defaults)
- Repaints
- No
- Parity
- MetaTrader 5, within 1e-12
Formula
OsMA = MACD - signal
MACD = EMA(source, fast_period) - EMA(source, slow_period), signal = the simple average of MACD over signal_period