Erreur "veuillez définir la variable"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #77078 quote
    Lorenzo47
    Participant
    Average

    Bonjour à tous,

    Je cale sur une erreur de ProOrder en BackTest qui me demande de définir une variable qui est déjà définie pour moi… Soit c’est très bête et je ne vois pas l’erreur soit je ne sais vraiment pas comment corriger cela… Le but de cette stratégie (qui en est au tout début) c’est d’entrer au marché sur un KumoBreak Ichimoku, ce ne sera pas la version finale mais déjà un message d’erreur apparaît. Si quelqu’un a une idée depuis un transat en vacances 😉 l’idée serait plus que bienvenue.

    Merci par avance et bonne vacances!

     

    // DEFPARAM
    DEFPARAM CumulateOrders = False
    DEFPARAM PreLoadBars = 1000
    
    // Ichimoku code
    Tenkan = (highest[9](high)+lowest[9](low))/2
    Kijun = (highest[26](high)+lowest[26](low))/2
    
    SenkouSpanA = (Tenkan+Kijun)/2
    SenkouSpanB = (highest[52](high)+lowest[52](low))/2
    
    CurrentSenkouSpanA = min(SenkouSpanA[26],SenkouSpanB[26])
    CurrentSenkouSpanB = max(SenkouSpanA[26],SenkouSpanB[26])
    
    Chinkou = close
    
    // Position size
    PSize = 1
    
    // Opening long
    // Conditions
    olc1 = close > CurrentSenkouSpanA
    olc2 = close > CurrentSenkouSpanB
    olc3 = close > Tenkan
    olc4 = close > Kijun
    olc5 = Chinkou > close[26]
    olc6 = Chinkou > Tenkan[26]
    olc7 = Chinkou > Kijun[26]
    olc8 = Chinkou CROSSES OVER MAX(CurrentSenkouSpanA[26],CurrenttSenkouSpanB[26])
    
    // Opening Long
    IF olc1 AND olc2 AND olc3 AND olc4 AND olc5 AND olc6 AND olc7 AND olc8 THEN
    BUY Psize CONTRACT AT MARKET
    ENDIF
    Erreur.jpg Erreur.jpg
    #77081 quote
    robertogozzi
    Moderator
    Master

    29 olc8 = Chinkou CROSSES OVER MAX(CurrentSenkouSpanA[26],CurrenttSenkouSpanB[26])

    Lorenzo47 thanked this post
    #77146 quote
    Lorenzo47
    Participant
    Average

    @robertogozzi

    Merci beaucoup, je crois que c’est effectivement moi qui devrait prendre des vacances (rires). J’ai quand même passé 4 heures dessus hier sans voir ça!

    Merci encore

    robertogozzi thanked this post
    #77158 quote
    robertogozzi
    Moderator
    Master

    Tu pourrais aller remplacer Nicolas, qui reviendra bientôt de ses vacances!

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

Erreur "veuillez définir la variable"


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Lorenzo47 @lorenzo47 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
7 years, 7 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 07/30/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...