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

RSI Divergence Detector for Amibroker (AFL)
mmanoj
about 14 years ago
Amibroker (AFL)

Rating:
4 / 5 (Votes 6)
Tags:
amibroker, oscillator

This Indicator helps in finding Positive and Negative Divergence on Price based on RSI Indicator
Best for Divergence and Short Term Trader

Have a Look @ my Blog

Screenshots

Similar Indicators / Formulas

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

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("RSI Divergence");
//------------------------------------------------------------------------------
//
//  Formula Name:    RSI Divergence
//  Level:           medium
//  Flags:           indicator
//  Formula URL:     
//  Details URL:     
//
//------------------------------------------------------------------------------
//
//  + scanner
//
//------------------------------------------------------------------------------

/*---------------------------------------------------
	RSI Divergence
--------------------------------------------------------*/

GraphXSpace=7;
n=Param("% Reverse ",20,0,100,1);

Buy=Sell=0;
Var = Zig(RSI(), n); 
t= Trough(RSI(), n, 1); 
p= Peak(RSI(), n, 1); 
x[0] =Var[0];
price[0] = C[0];
j=0;

// bearish divergence
for ( i=0; i<BarCount; i++) 
{
if(Var[i] == p[i])
{

j++;
x[j] =Var[i];
price[j] =C[i];
if(x[j] <x[j-1] && price[j-1]< price[j]) 
Sell[i] =1;
}
}

// bullish divergence
for ( i=0; i<BarCount; i++) 
{
if(Var[i] == t[i])
{
j++;
x[j] =Var[i];
price[j] =C[i];
if(x[j] >x[j-1] && price[j]<price[j-1]) 
Buy[i] =1;
}
}

Plot(Var, "", 39); 
PlotShapes ( IIf(Sell, shapeSmallCircle, shapeNone), colorRed, 0 , Var,0);
PlotShapes( IIf(Buy, shapeSmallCircle, shapeNone),  colorBrightGreen, 0, Var,0);

Title ="RSI Divergence" ;
_SECTION_END();

_SECTION_BEGIN("TEMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( TEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

9 comments

1. Pascal SAMSON

Thanks a lot.

2. mmanoj

Always Welcome Bro

3. bhartiprinters

works well with eod charts

4. huberton

Super works

5. prasadmuni

DEAR FRIEND THANKYOU A MILLION TIMES.WILL BE VERY HELPFUL TO ME
PRASAD

6. mrdzenli

стоит обратить внимание!

7. nisarnadaf

Hi,

Thank you for the scanner. Its very useful.

I have one doubt. I am trying to use this in intraday but its giving scan results very late. 1PM signal is coming at 3 PM. Any idea why? Thanks in advance

8. Gnut20

IS that repaint work bro? It is dangerous.

9. thangnd.1211

repaint confirm :(

Leave Comment

Please login here to leave a comment.

Back