The "S&P500 – bounce on 3 candles"

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #39623 quote
    Doctrading
    Participant
    Master

    Hello everyone,

    Today, I had the idea to tell myself that simple strategies are often among the best.

    Indeed, each action / index can have a behavior that is very specific to it.

    For example, I take the S&P500 index.

    It adopts a bullish behavior over the long term, it is not difficult to know that it is necessary to place only BUY orders.

    That is why the strategy I propose only takes long positions.

    The rule of entry is very simple :

    We take a long trade if we you have 3 consecutive lowest closes.

    And that’s all !

    When do we close the trade ?

    Seven days later (between 1 and 10, it is the value that gives the best results).

    No stop loss or take profit.

    I did not try to dig it any further, I admit. Of course I am far from the performance of the strategies that I use, but I wanted to show that with very simple things one can achieve a positive result

    Defparam cumulateorders = false
    
    // ACHAT
    
    ca = close < close[1] and close[1] < close[2]
    If ca then
     buy at market
    Endif
    
    // SORTIE ACHAT
    
    If barindex - tradeindex = 7 then
     sell at market
    endif

    and that’s all !

    Happy trading to all

    sp-rebond-bougies-14989110018pl4c1.png sp-rebond-bougies-14989110018pl4c1.png
    #39627 quote
    Nicolas
    Keymaster
    Master

    Hi, thanks for sharing this idea. I moved your post from the pending review list of the library to the forum instead. It would seem that you forgot to introduce the fees, I made a test with only 2 points spread, please find it attached.

    sp500-trading-strategy.png sp500-trading-strategy.png
    #39633 quote
    Doctrading
    Participant
    Master

    OUCH, it harms !

    #39736 quote
    Doctrading
    Participant
    Master

    I’m sorry Nicolas, but with 2 points spread, I don’t have your result at all.
    See attached picture.

    I’m using prorealtime.com, on the S&P500 Index.

    Any idea ?

    Thanks,

    SP500-bollinger-bounce-spread-2-points.png SP500-bollinger-bounce-spread-2-points.png
    #39738 quote
    Doctrading
    Participant
    Master

    I think that the problem is that you backtested it on the US500 (CFD), whereas I’m backtesting it on the S&P500 (Index).
    Thanks for your advice.

    #39753 quote
    Nicolas
    Keymaster
    Master

    Yes sure, but since it is for automated trading purpose I made backtest on a tradable security with ProOrder. As you know, automated trading is still not available through Interactive Broker. However, the SP500 Index instrument is not tradable, you should use a Future contract instead (ESxxxx for instance).

    #39768 quote
    Doctrading
    Participant
    Master

    Hello Nicolas,

    You are right. Butc atually it was not for automated trading, but de take position according to the trading hours of the Index, in this strategy. Of course we take position on the CFD or Future.

    I think that daily index candles are more representative of human behaviour than daily CFD candles…

    Best regards

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

The "S&P500 – bounce on 3 candles"


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Doctrading @doctrading Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Doctrading
8 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/03/2017
Status: Active
Attachments: 3 files
Logo Logo
Loading...