Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Adaptive Stochastic RSI for Amibroker (AFL)
albertly
about 13 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
Jurik, oscillator, amibroker

Like usual StochRSI but with variable period adjusted by using JurikCFB.

Needs Jurik plugin to work

Similar Indicators / Formulas

BoH Risk Aversion Indicator
Submitted by genkumag almost 13 years ago
Trading Volume Statistic
Submitted by tuanstock1 over 10 years ago
Ergodic Oscillator
Submitted by dljtrader almost 14 years ago
3 Days Track
Submitted by janet0211 over 14 years ago
Chande Momentum Oscillator
Submitted by klimpek almost 14 years ago
Febo RSI ..real indicator
Submitted by abhinavsingh almost 13 years ago

Indicator / Formula

Copy & Paste Friendly
// Adaptive Stochastic RSI
// by Albert Lyubarsky


//
// Internally RSI is implemented as follows
//
function BuiltInRSIEquivalent( period )
{
P = N = 0;

result = Null;

for( i = 1; i < BarCount; i++ )
{
diff = C[ i ] - C[ i - 1 ];
W = S = 0;
if( diff > 0 ) W = diff;
if( diff < 0 ) S = -diff;

P = ( ( period[i] -1 ) * P + W ) / period[i];
N = ( ( period[i] -1 ) * N + S ) / period[i];

if( i >= period[i] )
result[ i ] = 100 * P / ( P + N );
}
return result;
} 

function StochKCust(Series, Period)
{
		return (Series- LLV(Series,Period)) / (HHV(Series,Period) - LLV(Series,Period)) * 100;

}

Lo_limit = 5;
Hi_limit = 20;
spansize = ParamList( "SpanSize", "24|48|96|192", defaultval = 1 );
smooth = Param("Smooth",8,2,25,1);
CFB = JurikCFB( Close, smooth , StrToNum(spansize) );

CFB_max = 0;
CFB_min = 99999;
ADP_Length = C - C;
for (i=0; i<BarCount; i++)
{
	if (CFB[i] > CFB_max)
	{
	 	CFB_max = CFB[i];
	}
	else if (CFB[i] < CFB_min)
	{
		CFB_min = CFB[i];
	}
	
	denominator = CFB_max - CFB_min;
	if (denominator > 0)
	{
		stoch_ratio = (CFB[i] - CFB_min) / denominator ;
	}
	else
	{
		stoch_ratio = 0.5;
	}
	
	ADP_Length[i] = ceil(Lo_limit + stoch_ratio * (Hi_limit - Lo_limit));	
}
 
Plot(StochKCust(BuiltInRSIEquivalent(ADP_Length), ADP_Length), "AdaptiveStochRSI", colorWhite);
Plot(StochKCust(C, 9), "StochRSI", colorYellow);

7 comments

1. gopal

Please let us know where to get Jurik plugin ?

2. albertly

http://www.jurikres.com/

3. gopal

Could not find any plugin for Jurik ?
Request you to kindly provide the complete link which can be downloadable.

Thanks in adavnce.
Gopal

4. yo123

hi,
please tell where can i find kpami.dll file. tx

5. administrator

Jurik is a payed plugin. You need to buy it.

6. suhail

Hi

even though I have the plugin (JurikLib.dll,kpami.dll), I still get errors:

CFB = JurikCFB( Close, smooth , StrToNum(spansize) );

the line above gives a syntax error

variable “cfb” also used without initialization

7. administrator

You need the real jurik. What you have is just a reverse engineered clone.

Leave Comment

Please login here to leave a comment.

Back