XJO 0.96% 8,081.4 s&p/asx 200

9/10 Indices, page-113

  1. 11,018 Posts.
    lightbulb Created with Sketch. 1363
    If you have trading view and like RSI - I have scripted an RSI strategy where you can be alerted when RSI hits oversold or overbought. Just paste it in Pine Script area and click on save.

    /@version=5
    strategy("RSI Strategy", overlay=true)
    length = input( 14 )
    overSold = input( 30 )
    overBought = input( 70 )
    price = close
    vrsi = ta.rsi(price, length)
    co = ta.crossover(vrsi, overSold)
    cu = ta.crossunder(vrsi, overBought)
    if (not na(vrsi))
    if (co)
    strategy.entry("RsiLE", strategy.long, comment="RsiLE")
    if (cu)
    strategy.entry("RsiSE", strategy.short, comment="RsiSE")
    //plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)

    Good win rate and equity curve profit fact is on the soft side but with some tweaks can improve it.

    rsistrategyequitycurve.jpg


    rsiperformance.jpg

    Sharpe and Sortino Ratio not great but it's just a base system one can work on and improve on it.

    ..at least I did something productive for the day.
 
watchlist Created with Sketch. Add XJO (ASX) to my watchlist
arrow-down-2 Created with Sketch. arrow-down-2 Created with Sketch.