S&P 500 daily RSI(2) long short strategy

S&P 500 daily RSI(2) long short strategy

Hi all,

Have a look to this daily strategy on S&P 500. I guess many of you already know it, as it is made very famous by Larry Connors, I just added a bit of asymmetry between long and short, but the code is still extremely light, with only 2 parameters optimized and a stable performance of over 20 year!

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. maorai • 211 days ago #

    hi Francesco,
    the variables a and b are missing !!
    thanks for clarify it

  2. Francesco78 • 211 days ago #

    a = 10 b = 30, if you run the optimization this is what you will get

  3. Vonasi • 210 days ago #

    I’m a big fan of anything with Larry Connors on the SP500 with RSI[2]. I notice that your exit criteria are different for long and short positions. A long position needs a down candle to exit but the short positions exit on up or down candles. Can you explain any logical reasoning behind this or is it just something that seemed to work better?

  4. Francesco78 • 210 days ago #

    Hi Vonasi. The logic is based in the fact that the market has a bias to go up. This asymmetry allows long positions to have an “advantage” over short positions.

  5. Vonasi • 210 days ago #

    It seems that buy and hold outperforms this strategy. Removing the short side of the strategy (I’m not keen on shorting indices especially the SP500) results in close to buy and hold performance without the amount of time in the market and far less volatility in the equity curve. Not many trades though. Settings of 15 and 35 seem to be optimal for this.

  6. quietlife • 180 days ago #

    HI. My first post on PRC. I tied this on UKX I am limited with 2500 bars, but the results looked very good.

  7. Robin von Bauhn • 159 days ago #

    Nice strategy! Really like the stuff you are posting. Although the performance on the short side is quite bad when in raging bull markets. So try out my favourite filter; close > close[180] (or anywhere between 100-250) for longs and opposite for shorts. Greatly reduces drawdown 🙂

  8. Francesco78 • 159 days ago #

    hi Robin, thank you for yiur comment. Would you mind to post the exact modification to the code that you make? Id love to test it. have a great day.

  9. Robin von Bauhn • 158 days ago #

    Here you go! Would like to hear your feedback 🙂

    cl = RSI[2]100-a

    if cl and close > close[180] then
    buy 5 contracts at market
    endif

    if cs and close 100-(a+b) then
    sell at market
    endif

    if shortonmarket and RSI[2]<(a+b) then
    exitshort at market
    endif

  10. Francesco78 • 158 days ago #

    Sorry there might be few typos, pls send the full code.
    Thank you

  11. Robin von Bauhn • 158 days ago #

    Oh, it’s “cs” that’s missing. I don’t have the code right now but it’s the exact same conditions as in your code above so you can copy it from there. But as you might see I made the sides more symmetrical and removed “close < open" as condition for long exit

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
criscolci Thanks a lot!
Bard Cheers for doing Ehler's latest indicator Despair, much appreciated.
apachx Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
Daniel da Costa Thanks Doc! Where can you find a service for Dax with a 1 point spread?
Doctrading Hello. I suggest you : ProRealTime CFD, or IG. Best regards,
JanWd Hey Doctrading, I tried your code, optimising the A and V and the RSI period, see below. ...
Matriciel
2 months ago
Alai-n Thanks...
Nicolas
3 months ago
hartgeld Hallo Nicolas, ein sehr guter Indikator, vielen Dank! Leider rechnet er bei mir nicht die Pe...
Nicolas Changer la base de périodes du RSI original ? Le RSI a du "retard" puisqu'il est toujours né...
macbartin merci, je voulais savoir quel paramètre il faut modifier sur votre indicateur pour le modifi...
Nicolas Cet indicateur est dynamique, il n'utilise pas de période fixe
styrke Hello Nicolas, Nice screener, I appreciate the way you always try to condense at maximum th...
Nicolas There's no particular reason. RSI is widely use with its default period and results seems re...
MaoRai54 Hi, first of all Happy New Year. Well, I've inserted your indicator in DAX 1h but I cann...
Vinks_o_7 Hi Mao Happy New Year ! This is just an improved RSI where you plot a standard price momen...
Angel Perez Ciao Francesco. First of all thanks for the indicator and also fro the screener. I do have a...
fabioerliam Grazie! Buona giornata
fabioerliam Ciao Francesco! Ti disturbo ancora per chiederti se conosci o se eventualmente pensi si poss...
fabioerliam P.s. ho provato a togliere le divergenze nascoste (hd) dall'indicatore, ma nonostante inseri...
Nicolas
5 months ago
TradeNavigator RSI
TradeNavigator RSI
10
Indicators
Nicolas Tutte le impostazioni che hanno la parola "period" sono quelle dedicate ai periodi di cambio...
GianfrancoCeck Le chiedo una ultima cosa, ossia se è possibile personalizzare l'indicatore con una scritta ...
Nicolas Spiacente che non sia possibile, le coordinate grafiche non sono in pixel ma nel prezzo e ne...
victormork Hi! No I don't have 200k history.
Yannick There is a huge drawdown from 2012 to 2013 after it keeps rising https://ti.md.it-finance...
victormork Thanks for sharing the 200k test!
juanj Definitely, need to code this into an automated strategy.
Marc Boliart dear nicolas, tyvm for your indicators and strategies, i have this following error when i ch...
Nicolas Your picture is too small, but for sure the problem is about the fact you are still using v1...
Jessar Hello, could you tell me how to use this indicator? I think the simplest things can still be...
Mirko Vaglio Interesting idea to bypass the limit of PRT about multiple timeframe, and I am just trying t...
Mirko Vaglio Looking a little bit more, now I understand what had to be absolutely obvious from the first...
Seb nice code! I'm trying to use your method to do a higher timeframe EMA, without success yet. ...
danibo Hi Francesco, thank you for replying. I try to be crearer. My question is: - what is the...
JanWd Hi Francesco, nice algorithme, works with me on other markets as well !
Francesco78 thank you Janwd. Do you mind sharing where it works? happy new year!

Top