Skip to main content

River V1 for Amibroker (AFL)

xavito over 14 years ago Amibroker (AFL)

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

RiverV1
This indicator is a cocktail that combines: Stochastic, RSI, MFI, Bollinger Bands
The indicator draws two lines:
- Black: Cocktail of indicators
- Red: exponential moving average
Buy when the black line cross over the red line
Sell when the black line cross down the red line

Indicator / Formula

Copy & Paste Friendly
//RiverV1
//This indicator is a cocktail that combines
//- Stochastic.
//- RSI.
//- MFI
//- Bollinger Bands
//
// The indicator draws two lines:
// - Black: Cocktail of indicators
// - Red: exponential moving average
// buy when the black line cross over the red line
// sell when the black line cross down the red line

//Params
Period1 = Param("Periods", 21, 2, 200, 1 );
Period2 = Param("Periods", 14, 2, 200, 1 );
m=Param("stock",10,2,50,1);

//Stochastic
stoc=StochK(Period1,3);

//RSI
xrsi=RSIa(Close,Period1);

//MFI
xmf=MFI(period1);

//Bollinger
Ob1= (BBandTop(Close,Period1,2)+BBandBot(Close,Period1,2))/2;
Ob2=BBandTop(Close,Period1,2)+BBandBot(Close,Period1,2);
bollosc=((Close-Ob1)/Ob2)*100;

//Combination of indicators
comb=((xrsi+xmf+bollosc+(stoc/3))/2)-60;
//Ema
mComb=EMA(Comb,m);

//Plot
Plot(0,"",colorBlack);
Plot(comb,"vigia",colorBlack);
Plot(mComb,"vmr",colorRed);

4 comments

about 11 years ago

Interesting work done.
Can you add Buy/Sell/Short/Cover signal so that it can be implemented ?

Thanks,

Leave Comment

Please login here to leave a comment.