Momentum

momoscillatorsForge API 1

Price now against price a number of bars ago.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint141 to 5000
methodchoicedifference

Outputs

NameTypeRequiredDescription
momvalueOptionalcolor theme.accent, style line, width 1
Warm-up
period bars (14 at the defaults)
Repaints
No
Parity
TA-Lib, within 1e-12

Formula

difference: x[i] - x[i-period]

mt5: x[i] * 100 / x[i-period], the MetaTrader 5 form, centred on 100

An earlier value of 0 leaves the mt5 bar empty.