Source: https://fxcodebase.com/code/viewtopic.php?f=38&t=60403
Forum: 38 · Topic 60403 · 1 post(s)
Alexander.Gettinger · Wed Mar 05, 2014 5:00 pm
Original LUA indicators: viewtopic.php?f=17&t=60180.
Cyclic Component:
Formulas: Cyclic Component [i] = (HP[i]+2HP[i-1]+2HP[i-2]+HP[i-3])/6, where HP[i] = (Price[i]-Price[i-1])(1+Alpha)/2+2AlphaHP[i-1], Alpha = (1-sin(2Pi/Length))/cos(2*Pi/Length).
Download:
Instantaneous Trendline:
Formulas: Instantaneous Trendline = MVA(Price, Length)+SmoothSlope/2, where SmoothSlope[i] = (Slope[i]+2Slope[i-1]+2Slope[i-2]+Slope[i-3])/6, Slope[i] = Price[i]-Price[i-Length+1].
Download:
Modeling the market:
Formula: Modeling the market = Instantaneous Trendline+Cyclic Component.
Download: