Skip to main content

RSI Trading System filtering high price drop for Amibroker (AFL)

Teddax about 13 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    oscillator, amibroker, exploration

This is a basic RSI strategy, buying when RSI<30, selling when RSI>70. But buying signal just after a high price drop will be filtered out using a simple derivation.

Indicator / Formula

Copy & Paste Friendly
//Author: Teddax

RSI_periode = 14;
RSI_limite = 30;
RSI_Sell_limite = 70;
Delta_RSI_limite = -30;

//parameters for Sell
MargeStoploss = 5;

RSI_derive=RSI(RSI_periode)-Ref(RSI(RSI_periode),-1);

condition_non_trending=ADX(14)<20;
Buy =RSI(RSI_periode)<RSI_limite AND RSI_derive>Delta_RSI_limite AND Ref(RSI_derive,-1)>Delta_RSI_limite AND condition_non_trending;

//stop loss/profit
Sell = RSI(14)>RSI_Sell_limite;

ApplyStop(stopTypeLoss, 
         stopModePercent, 
         Optimize( "max. loss stop level", 3, 0.1, 2, 0.1 ), 
         True ); 

Filter = 1;

AddColumn( RSI(RSI_periode)<RSI_limite, "RSI(RSI_periode)<RSI_limite" );

2 comments

about 13 years ago

Hi,

This is good AFL..

Can u explain how to enter long or short by using this afl. In explorer fro some stocks it giving good result.

you have to do some more work to filter for correct signal.

Plz add ur comments. i wil suggest what changes need to make.

thanks in advance

Leave Comment

Please login here to leave a comment.