Backtest sur signal open

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

    bonjour Nicolas,

    comme tu le sais, je tente de générer des signaux sur Sprint market, dont je mesure ensuite la relative efficacité (% de réussite notamment).

    Je souhaiterai tester certains signaux en open. Le mode tick par tick étant disponible, comment peux t-on par exemple adapter le code suivant (c’est un exemple sur ut5) pour prise sur signal open et close 5 minutes plus tard…C’est une fonction time?

    Merci de ton retour…

    // Définition des paramètres du code
    DEFPARAM CumulateOrders = false // Cumul des positions désactivé
    defparam flatafter=163000
    defparam flatbefore=093000
    
    
    // Conditions pour ouvrir une position acheteuse
    indicator1 = CALL "c signall"
    c1 = (indicator1 = 1)
    
    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    IF barindex - tradeindex = 0 THEN
    sell at market
    ENDIF
    
    
    
    // Conditions pour ouvrir une position en vente à découvert
    indicator2 = CALL "psignal"
    c2 = (indicator2 = -1)
    
    IF c2 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    IF barindex - tradeindex = 0 THEN
    exitshort at market
    ENDIF
    #28777 quote
    Nicolas
    Keymaster
    Master

    Difficile de répondre sans savoir ce qui se cache derrière les indicateurs.

    #28800 quote
    winnie37
    Participant
    Veteran

    en fait, rien de précis pour le moment. En mode exploratoire, c’est pour observer comment on pourrait exploiter des signaux en open par rapport aux stratégies binaires évoquées ensemble 🙂

    N’ais crainte, si je trouve un début de signal aux stats concluantes, je serai le premier à les partager :)…

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

Backtest sur signal open


Support ProOrder

New Reply
Author
author-avatar
winnie37 @winnie37 Participant
Summary

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

Topic Details
Forum: Support ProOrder
Language: French
Started: 03/15/2017
Status: Active
Attachments: No files
Logo Logo
Loading...