Skip to main content

RSI of Pairs ratio for Amibroker (AFL)

aucn about 16 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    oscillator, amibroker, pairs ratio

RSI of pairs ratio of two tickers enter ticker in parameters box.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("rsi");
Ticker= ParamStr("Short ticker", "?");//short stock
tickersc=Foreign( ticker, "C");//Short stock
/////////////////////////////////////
ticker2=C;//long stock
/////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
spreadc=C/(tickersc);
////////////////cci//////////////////
N=Param("N",14,2,34,1);
Plot(RSIa(spreadc,N),"RSI",5,5);

_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.