

RSIcalc = IIf(BarIndex() Determines the closing value of a stock need to reach a particular RSI value A very handy tool if you like to enter at the close. Want to know what closing value a stock needs to close at to reach a certain RSI value? This AFL code will do that for you. , ParamColor( "Color", colorBlue ), ParamStyle("Style", styleLine), 0, 100) } function ConnorsRSI(lenRSI, lenUD, lenROC)ĬrsiT = ( PercentRank(ROC(C,1), lenROC) + RSIa(updownDays,lenUD) + RSI(lenRSI))/3 Ĭrsi = ConnorsRSI(3,2,100) Plot( ConnorsRSIa(C, paramLenRSI,paramLenUD,paramLenRank) UpdownDays = IIf(upDays > 0, upDays, IIf(downDays > 0, -downDays, 0)) ĬrsiT = ( PercentRank(ROC(arr,1), lenROC) + RSIa(updownDays,lenUD) + RSIa(arr, lenRSI))/3 ParamLenRank = Param("PerecentRank Length", 100, 10, 200, 1) function ConnorsRSIa(arr, lenRSI, lenUD, lenROC) ParamLenUD = Param("RSI UpClose Length", 2, 2, 100, 1) ConnorsRSIįile: Click to download: ConnorsRSIa.afl // Provided by Cesar Alvarez // ConnorsRSI from paramLenRSI = Param("RSI Closes Length", 3, 2, 100, 1) Learn more about my Multiple Strategies Backtest and Optimization Tool. Multiple Strategies Backtest and Optimization Toolĭo you trade multiple strategies? See how you can create equity curves for each of your strategies and then combine them to see how they perform together. If you have any ideas of other code snippets to add, send them to me. AmiBroker code for various statistics and indicators.