Professional Documents
Culture Documents
Trading Tuitions > Categories > Amibroker > Trading Systems> RSI Divergence Trading System: Unbelievable profit
potential
RSI Divergence
Trading System:
Unbelievable profit
potential
Posted on September 16, 2016 by admin
RSI Divergence
RSI Divergence occurs when price and RSI does not move in
same direction. If Price is going up and RSI is going down it’s
called Bearish RSI Divergence, while if price is going down
and RSI is going up it’s called Bullish RSI Divergence. The
below image explains it in a better way:
http://tradingtuitions.com/rsi-divergence-trading-system-unbelievable-profit-potential/ 1/6
12/6/2017 RSI Divergence Trading System: Unbelievable profit potential - Trading Tuitions
AFL Overview
Parameter Value
Preferred Time- Daily
frame
Margin 10%
http://tradingtuitions.com/rsi-divergence-trading-system-unbelievable-profit-potential/ 2/6
12/6/2017 RSI Divergence Trading System: Unbelievable profit potential - Trading Tuitions
AFL Code
Note: This AFL uses Zig Zag indicator which makes it
prone to look into future. While its good for backtesting
purpose, we do not recommend to use the buy/sell signals
for live trading.
//------------------------------------------------------
//
// Formula Name: RSI Divergance
// Author/Uploader: Brad Konia
// E-mail: support@tradingtuitions.com
// Website: www.tradingtuitions.com
//------------------------------------------------------
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Ope
n %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L
, C ));
Plot(Close,"Price",color=colorBlue,style=styleCandle);
SetTradeDelays( 1, 1, 1, 1 );
SetOption( "InitialEquity", 200000);
SetOption("FuturesMode" ,True);
SetOption("MinShares",1);
SetOption("CommissionMode",2);
SetOption("CommissionAmount",50);
SetOption("AccountMargin",10);
SetOption("RefreshWhenCompleted",True);
SetPositionSize(150,spsShares);
//SetPositionSize(20,spsPercentOfEquity);
SetOption( "AllowPositionShrinking", True );
// Bearish divergence
divergeBear = IIf(peakBar AND (indPeakVal1 < indPeakVal2)
AND High > Ref(High, -indPeakBars2), True, False);
Short=divergeBear;
Cover=troughBar;
Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);
// Bullish divergence
divergeBull = IIf((indTroughBars1 == 0) AND (indTroughVal1
> indTroughVal2) AND Low < Ref(Low, -indTroughBars2), Tru
e, False);
Buy=divergeBull;
Sell=peakBar;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
BuyPrice=Open;
SellPrice=Open;
ShortPrice=Open;
CoverPrice=Open;
_SECTION_END();
http://tradingtuitions.com/rsi-divergence-trading-system-unbelievable-profit-potential/ 4/6
12/6/2017 RSI Divergence Trading System: Unbelievable profit potential - Trading Tuitions
Timeframe Daily
Number of Trades 88
Max consecutive 0
losses
http://tradingtuitions.com/rsi-divergence-trading-system-unbelievable-profit-potential/ 5/6
12/6/2017 RSI Divergence Trading System: Unbelievable profit potential - Trading Tuitions
Equity Curve
Profit Table
http://tradingtuitions.com/rsi-divergence-trading-system-unbelievable-profit-potential/ 6/6