Skip to main content

Two day rsi for Amibroker (AFL)

fengster about 9 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 3)
  • Tags:
    trading system, amibroker

As simple as it gets, but has good predictive power in the short term

Indicator / Formula

Copy & Paste Friendly
//two day RSI
_SECTION_BEGIN("Two_day_RSI");

period=Param("period",14,1,100,1);
EMA_period=Param("EMA_period",5,1,14,1);
ratio=1.5;


RSI_line=RSI(period);
EMA_RSI_line=EMA(RSI_line,EMA_period);

Buy=EMA_RSI_line/Ref(EMA_RSI_line,-1)>=ratio AND RSI_line<40;
Sell=Barssince(Buy)==3;

Short=Ref(EMA_RSI_line,-1)/EMA_RSI_line>=ratio AND RSI_line>60;
Cover=Barssince(Short)==3;




_SECTION_END();

1 comments

1. Saurabh
about 9 years ago

Screenshot of Trade(If anyone cn find) Please….
Explored the Code and could manage to find only 1 trade(India Cement on 30/01/2014) in 3.5 years from 200 scrips.
However, Ideology is Good but needs a lot of Improvisation.

Leave Comment

Please login here to leave a comment.