Erreur ou pas dans ma définition d'un plus haut ?

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #129326 quote
    Yakov TOPRAK
    Participant
    Average
    Periods = 5
     
    boxHigh = high[3]>=highest[Periods](high)[4] and high[3]>high[2] and high[3]>high[1] and high[3]>high
     
    if boxHigh then
    topbox = high[3]
    botbox = lowest[4](low)
    endif
    
    // Conditions pour ouvrir une position acheteuse
    if not LongOnMarket and close crosses over topbox then
    BUY 1 CONTRACTS AT MARKET
    endif
    
    // Conditions pour fermer une position acheteuse
    if LongOnMarket and close crosses under botbox then
    SELL AT MARKET
    endif

    J’ai une erreur durant l’exécution de mon back test mais je ne vois pas où.

    Quelq’un a-t-il une idée ?

    Merci d’avance

    #129388 quote
    fifi743
    Participant
    Master

    bonjour,

    ecriture de contract sans S

    #129395 quote
    Yakov TOPRAK
    Participant
    Average
    Merci pour ton aide @fifi743, mais l’erreur ne vient pas de là apparemment car j’ai toujours la même erreur. Une idée c’est que sur les premières bougies mes deux courbes sont à zéro.

    Est-ce que l’erreur peut provenir de ça ?

    #129398 quote
    Yakov TOPRAK
    Participant
    Average
    J’ai donc changer mon programme par ça,
    Periods = 5
    once topbox = undefined
    once botbox = undefined
     
    boxHigh = high[3]>=highest[Periods](high)[4] and high[3]>high[2] and high[3]>high[1] and high[3]>high
     
    if boxHigh then
    topbox = high[3]
    botbox = lowest[4](low)
    endif
    
    // Conditions pour ouvrir une position acheteuse
    if not LongOnMarket and close crosses over topbox then
    BUY 1 CONTRACT AT MARKET
    endif
     
    // Conditions pour fermer une position acheteuse
    if LongOnMarket and close crosses under botbox then
    SELL AT MARKET
    endif
    Mais pas de changement toujours une erreur
    #129400 quote
    fifi743
    Participant
    Master
    desoler pas erreur backtest sur dji et ça marche
    MonSystème.itf
    #129402 quote
    Nicolas
    Keymaster
    Master
    J’ai reformaté le titre du topic pour être plus compréhensible, merci d’y penser la prochaine fois 🙂 Une erreur de quel type ? Quelle version de PRT ? Merci.
    #129416 quote
    Yakov TOPRAK
    Participant
    Average
    Oui @Nicolas mais je ne savais pas quoi mettre désolé. Sinon je suis sur PRT v11 et @fifi743, chez moi cela ne fonctionne pas c’est bizarre. Et bien suite à ton message @fifi743 j’ai testé avec un autre dans la bibliothèque et j’ai toujours l’erreur. Le problème est donc ailleurs mais où, ça c’est une bonne question.
    #129419 quote
    Yakov TOPRAK
    Participant
    Average
    Je suis sous PRT trading V11 pour être exact sous IG. Sinon je viens de réinstallé et toujours une erreur.
    #129422 quote
    fifi743
    Participant
    Master
    Je suis sur 10.3 ,je ne peux pas d’aider plus
    #129426 quote
    Yakov TOPRAK
    Participant
    Average
    @fifi743 Déjà un grand merci pour la petite erreur.
    #129434 quote
    fifi743
    Participant
    Master
    ce n’est pas la l’erreur
    highest[Periods](high)[4]
    essais
    highest[Periods](high[4])
    #129466 quote
    Yakov TOPRAK
    Participant
    Average
    non ce n’est pas ça. l’erreur n’est pas de programmation apparemment puisque j’ai une erreur sur d’autres backtest valides.
    #129708 quote
    Nicolas
    Keymaster
    Master
    CONTRACT peut être écrit avec ou sans S à la fin, pour info. J’ai testé sous v11, sur différentes unités de temps et instruments, je n’ai pas eu de problème. S’agit-il d’une version gratuite “fin de journée” ? Il faudrait essayer avec cette version (j’ai enlevé les instruction “undefined”, plus spécifique à ProBuilder et pas au trading automatique)
    Periods = 5
     
    boxHigh = high[3]>=highest[Periods](high)[4] and high[3]>high[2] and high[3]>high[1] and high[3]>high
     
    if boxHigh then
    topbox = high[3]
    botbox = lowest[4](low)
    endif
    
    // Conditions pour ouvrir une position acheteuse
    if not LongOnMarket and close crosses over topbox and topbox>0 then
    BUY 1 CONTRACT AT MARKET
    endif
     
    // Conditions pour fermer une position acheteuse
    if LongOnMarket and close crosses under botbox and botbox>0 then
    SELL AT MARKET
    endif
    #130405 quote
    Yakov TOPRAK
    Participant
    Average
    J’ai ouvert un ticket et apparemment le problème est connu et en cours de résolution. Merci pour ton aide @nicolas Franck
    #130406 quote
    Nicolas
    Keymaster
    Master
    Ok, merci pour le retour !
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.

Erreur ou pas dans ma définition d'un plus haut ?


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 14 replies,
has 3 voices, and was last updated by Nicolas
5 years, 10 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/01/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...