difference back test vs Real ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #210450 quote
    deusjul
    Participant
    Junior

    Bonsoir,

     

    J’ai un pb que je n’arrive vraiment pas à résoudre. le meme programme ne réagit pas pareil selon que je sois en reel ou en automatique. le prgm est pourtant simple : J’identifie 2 niveaux clefs et j’entre sur le premier. Le 2eme ne me sert que de back up.

    Etonnement, des fois le prgm marche tres bien et des fois  il entre et sort en même tps. incompréhensible. Je suspecte trading price.

    Un gd merci poru votre aide.

     

    defparam CUMULATEORDERS=true
    defparam PRELOADBARS=0
    
    upp2=333292
    upp=333263
    //
    dnn=32699
    dnn2=32660
    
    stopup=33340
    stopdn=32500
    
    //
    tp=10
    trailingstop = 10
    
    set stop ploss 150
    once goupp=1
    once goupp2=1
    once godnn=1
    once godnn2=1
    
    ///////////// short/////////////////
    //entrée short
    if high<upp and goupp=1 and goupp2=1 and countofposition=0 and high>upp-50 then
    sellshort 1 contract at upp limit
    endif
    //sécurisation pour n'y aller qu'une fois sur premiere upp
    if high crosses over upp or shortonmarket then
    goupp=0
    endif
    
    //short 2eme barriere
    if countofposition=-1 and goupp2=1and high>upp2-50 then
    sellshort 1 contract at upp2 limit
    endif
    //sécurisation pour n'y aller qu'une fois sur premiere upp
    if high crosses over upp2 or countofposition<-1 then
    goupp2=0
    endif
    
    //collect des gain
    if countofposition=-1 then
    exitshort at positionprice-tp limit
    endif
    //sortie flat
    if countofposition<-1 then
    exitshort at positionprice limit
    endif
    if countofposition<-1 then
    exitshort at stopup stop
    endif
    
    
    
    
    ///////////// long/////////
    //entrée long
    //and godnn=1
    if low>dnn and godnn=1 and godnn2=1 and countofposition=0 and low<dnn+50 then
    buy 1 contract at dnn limit
    endif
    
    //sécurisation pour n'y aller qu'une fois sur premiere upp
    if low crosses under dnn or longonmarket then
    godnn=0
    endif
    
    //short 2eme barriere
    if countofposition=1 and godnn2=1 and low<dnn2+50 then
    buy 1 contract at dnn2 limit
    endif
    //sécurisation pour n'y aller qu'une fois sur premiere upp
    if low crosses under dnn2 or countofposition>1 then
    godnn2=0
    endif
    
    //collect des gain
    if countofposition=1 then
    sell at positionprice+tp limit
    endif
    //sortie flat
    if countofposition>1 then
    sell at positionprice limit
    endif
    
    if countofposition>1 then
    sell at stopdn stop
    endif
    real-vs-sim.jpg real-vs-sim.jpg
    #210453 quote
    fifi743
    Participant
    Master

    je veux bien t’aider mais quel indice ou forex et UT ?

    #210455 quote
    deusjul
    Participant
    Junior

    Bsr, merci beaucoup.

    C’est du wallstreet en 10s. Sur 3 tests (que des positions long), 2 ont eu ce symptôme d’entrér et couper de suite. La 3eme s’est passée pareillement en réel vs backtest. Je ne comprends pas.

    Merci

    #210457 quote
    fifi743
    Participant
    Master

    je test

    #210458 quote
    fifi743
    Participant
    Master

    j’ai un seul trade a 19 h00

    #210464 quote
    deusjul
    Participant
    Junior

    bjr,Merci pour la vérif.

    Comme je place manuellement les zones de rebonds, il faut veiller à mettre un début en back test cohérent. ici c’est au 24/02/2023 à 17h30.

    Peut que le pb est ma mécompréhension at limit vs at stop. pas certain que ca explique une différence entre réel et backtest.

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

difference back test vs Real ?


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
deusjul @deusjul Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by deusjul
3 years ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/24/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...