Formulas:
UP = MVA(UpF) with [Length] number of periods,
DN = MVA(DnF) with [Length] number of periods, where
UpF = 1, if Price[i]>Price[i-1], else UpF[i] = 0,
DnF = 1, if Price[i]<Price[i-1], else DnF[i] = 0.
Download:
Moderator: admin
Return to JavaScript Indicators and Strategies
Users browsing this forum: No registered users and 16 guests