We use cookies to understand how the site is used and improve it. We only load analytics after you accept. Privacy Policy
Calculates price momentum over specified period
The Pine Script tab is the author's original, unchanged. The NexaScript, MQL5 and cTrader tabs were converted automatically by AlgoNexta from that original, are marked unverified and have not been run on the native platforms. Check them yourself before using them.
Calculates price momentum over specified period
Drawn by AlgoNexta's NexaScript engine from the converted version. It can differ slightly from the original at the start of the chart.
Running the NexaScript on recent candles…
community-mom.nxs · 10 lines · 136 B
Not yet verified on the native platform — test it before relying on it.
Converted automatically from the original Pine Script by AlgoNexta. Checked: matches an independent pandas calculation (max relative difference 2.3e-14). Conversion notes: parameter i_length: default 10 used; parameter i_source: default close used; custom mom function replaced by the NexaScript builtin mom; warm-up values may differ slightly
skill "Momentum (MOM)" {
id MOM
use XAUUSD M5
warmup 10
let mom_value = mom(close, 10)
plot mom_value in "Momentum (MOM)"
}
Educational and research tool. No investment advice. Generated code requires review and native-platform verification before use.