Winnie5strades – first strategy – ideas welcome.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #95917 quote
    winnie37
    Participant
    Veteran

    Hello,

    here is my first system, very simple, based on an Rsi, that I share with you. It seems to work well on Dax and FTSE, from 8am to 11am, with a spread of 1pt, over 5 seconds. I’m running it in a demo for the moment.

    Suggestions and improvements are welcome 🙂
    – Could someone could do a test over a longer period?
    – The trades are closed at 11am. What line of code to add to close at the end of the last trade launched rather than the fixed schedule?
    – Other indices to test?

    Thank you for your contributions 🙂

    Moderators Edit: Topic title modified. Please try to use more meaningful titles in future topics.

    Winnie5strade.itf Capture-d’écran-2019-04-10-à-11.13.47.png Capture-d’écran-2019-04-10-à-11.13.47.png Capture-d’écran-2019-04-10-à-11.14.33.png Capture-d’écran-2019-04-10-à-11.14.33.png Capture-d’écran-2019-04-10-à-11.15.28.png Capture-d’écran-2019-04-10-à-11.15.28.png
    #95923 quote
    winnie37
    Participant
    Veteran

     

    /// WINNIE 5S TRADE v2///
    /// Dax & FTSE
    /// Spread 1 pt
    
    
    // Définition des paramètres du code
    DEFPARAM CumulateOrders = false // Cumul des positions désactivé
    // Annule tous les ordres en attente et ferme toutes les positions à 0:00, puis empêche toute création d'ordre avant l'heure "FLATBEFORE".
    DEFPARAM FLATBEFORE = 080000
    // Annule tous les ordres en attente et ferme toutes les positions à l'heure "FLATAFTER"
    DEFPARAM FLATAFTER = 110000
    
    // Conditions pour ouvrir une position acheteuse
    indicator1 = RSI[14](close)
    c1 = (indicator1 <= 30)
    
    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions pour fermer une position acheteuse
    indicator2 = RSI[14](close)
    c2 = (indicator2 >= 70)
    
    IF c2 THEN
    SELL AT MARKET
    ENDIF
    
    // Conditions pour ouvrir une position en vente à découvert
    indicator3 = RSI[14](close)
    c3 = (indicator3 >= 70)
    
    IF c3 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions pour fermer une position en vente à découvert
    indicator4 = RSI[14](close)
    c4 = (indicator4 <= 30)
    
    
    
    IF c4 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    // Stops et objectifs
    SET STOP pLOSS 10
    #96011 quote
    Balmora74
    Participant
    Veteran

    Very interesting Winnie !

    How does it work on demo ? Do you have slippage or strange things or difference with the backtest ?

    Because a 5 s timeframe is very quick and i’m not sure i can work in real mode… Idem for a stop loss very close at 10 points…. I’m not sure that as so small stop loss works with IG

    I will work on it and make a return.

    winnie37 thanked this post
    #96041 quote
    winnie37
    Participant
    Veteran

    Yes indeed, too much difference between the bactest and the demo result this morning.

    However, if you have some ideas to improve, welcome !

    #97041 quote
    winnie37
    Participant
    Veteran
    Over this period (5 seconds), a good part of the results seem to be played on the optimized management of the stop.
    #97120 quote
    winnie37
    Participant
    Veteran
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Winnie5strades – first strategy – ideas welcome.


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
winnie37 @winnie37 Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by winnie37
6 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/10/2019
Status: Active
Attachments: 6 files
Logo Logo
Loading...