RSI of Pairs ratio for Amibroker (AFL)
aucn about 16 years ago Amibroker (AFL)
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.