Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Universal Cycle Index (UCI) for Amibroker (AFL)
This indicator by Stuart Belknap is a variation of a classic MACD indicator that he calls the universal cycle index (UCI).
Screenshots
Similar Indicators / Formulas
Indicator / Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | function SigomPcnt() { yom = 100 * ( C - Ref ( MA ( C , 25 ), 12 ) )/ Ref ( MA ( C , 25 ), 12 ); avyom = MA ( yom, 50 ); varyom = MA ( yom ^ 2, 50 ) - avyom ^ 2; som = Ref ( sqrt ( varyom ), -12 ); return MA ( som, 25 ); } function UCI( period ) { period2 = floor ( period / 2 ); // divide original period by 2 period4 = floor ( period / 4 ); // half sigom = SigomPcnt(); yme = 100 * ( EMA ( C , period4 ) - EMA ( C , period2 ))/ EMA ( C , period2 ); ymes = TSF ( yme, 6 ); return 100 * ymes / sigom; } function CenteredUCI( period ) { period2 = floor ( period / 2 ); // divide original period by 2 period4 = floor ( period / 4 ); // half sigom = SigomPcnt(); ym = 100 * ( Ref ( MA ( C , period2 ), period4 ) - Ref ( MA ( C , period ), period2 ) ) / Ref ( MA ( C , period ), period2 ); return 100 * ym / sigom; } period = Param ( "period" , 25, 25, 100, 2 ); IsCentered = ParamToggle ( "Centered?" , "No|Yes" ); grid = IIf ( period >= 100, 150, IIf ( period >= 50, 100, 50 ) ); SetChartOptions ( 0, 0, 0 ); if ( IsCentered ) { Plot ( x = CenteredUCI( period ), "Centered UCI(" + period + ")" , ParamColor ( "Color" , colorRed ) ); } else { Plot ( x = UCI( period ), "UCI(" + period + ")" , ParamColor ( "Color" , colorRed ) ); } PlotGrid ( grid ); PlotGrid ( 0 ); PlotGrid ( -grid ); |
0 comments
Leave Comment
Please login here to leave a comment.
Back