Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 06:58:04 +0000



Post From: RMI - Relative Momentum Index

[2013-11-16 15:22:20]
ganz - Posts: 1048
Hey Ronin,

I've looked at the links and didn't see any code

Let's look into it:


/* Relative Momentum Index */
/* AFL code by Prakash Shenoi */

Length=Param("Length?",2,3,20,1);//default =14 or 20
mom=Param("Momentum?",2,3,11,1);//default = 4 or 5
xRMI = RMI(Length,mom);
Plot(xRMI, " Relative Momentum Index ("+WriteVal(Length,1.0)+")", 34+4,1 + styleThick);
Plot(70,"",colorDarkGrey,styleDashed|styleNoLabel);//OS
Plot(30,"",colorDarkGrey,styleDashed|styleNoLabel);//OB
Buy = Cross( xRMI, 30 );
Sell = Cross( 70, xRMI );
PlotShapes( shapeUpArrow * Buy + shapeDownArrow * Sell, IIf( Buy, colorGreen, colorRed ) );
GraphXSpace=5;
/*Buy and Sell Conditions*/
Buy = Ref(xRMI,-1)<40 AND xRMI > Ref(xRMI,-1);
Sell = Ref(xRMI,-1)>70 AND xRMI < Ref(xRMI,-1);

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
/*End Buy and Sell Conditions*/

rmi part is:

Length=Param("Length?",2,3,20,1);//default =14 or 20
mom=Param("Momentum?",2,3,11,1);//default = 4 or 5
xRMI = RMI(Length,mom);
Plot(xRMI, " Relative Momentum Index ("+WriteVal(Length,1.0)+")", 34+4,1 + styleThick);
Plot(70,"",colorDarkGrey,styleDashed|styleNoLabel);//OS
Plot(30,"",colorDarkGrey,styleDashed|styleNoLabel);//OB

rmi is

Length=Param("Length?",2,3,20,1);//default =14 or 20
mom=Param("Momentum?",2,3,11,1);//default = 4 or 5

>>> xRMI = RMI(Length,mom); <<<


so we have no code for RMI from amibroker - this is the "black box"

but we have the full code from SC: ASC_Source/studies7.cpp/line_5035

i'll do some research about RMI to compare with the info http://www.tradingsolutions.com/functions/RelativeMomentumIndex.html

in case you have this info: Altman's Relative Momentum Index (S&C Feb 1993) - pls let me know

Date Time Of Last Edit: 2013-11-16 15:23:32