errore sistema linea 4 colonna 0

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #187055 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    Buongiorno
    lo scopo di questo sistema multi-timeframe è quello di avere un filtro su timeframe orario con entry su 5 o 3 minuti
    l’indicatore mymediah15 e mydefault sono le medie di hull in un indicatore poste entrambe sul grafico a 5min.
    purtroppo quando faccio partire il probacktest ho questo errore:
    “il back test non puo partire a causa di un errore di analisi del codice linea 4 colonna 0”
    sicuramente essendo nuovo alla scrittura di sistemi avrò scritto qualcosa di sbagliato ma non capisco dove
    spero che qualcuno riesca ad aiutarmi
    grazie

    DEFPARAM CUMULATEORDERS =false
    DEFPARAM flatbefore=070000
    DEFPARAM flatafter=210000
    
    
    timeframe (1h,default)
    ciclo= Cycle(close)
    //condizionelong
    Long= ciclo>1
    //condizioneshort
    Short= ciclo<1
    //condizionelong
    medieLong=Average[7](close)<ExponentialAverage[3](close)
    //condizioneShort
    medieShort=Average[7](close)>ExponentialAverage[3](close)
    
    once trade=0
    if long  then
    trade=1
    endif
    if short  then
    trade=-1
    endif
    
    if trade=1 and medielong then
    trade=2
    endif
    if trade=-1 and medieshort then
    trade=-2
    endif
    
    timeframe (default) // timeframe entry 5 o 3 min
    
    mymediah15, mydefault = CALL "hull multi"
    //media HULL 5 min
    Verde5  = mydefault > mydefault[1]
    Rosso5  = mydefault < mydefault[1]
    Cambio5 = (Verde5 AND Rosso5[1]) OR (Verde5[1] AND Rosso5)
    //media HULL 15 min
    Verde15 = mymediah15 > mymediah15[1]
    Rosso15 = mymediah15 < mymediah15[1]
    Cambio15 = (Verde15 AND Rosso15[1]) OR (Verde15[1] AND Rosso15)
    
    HullLong= verde5 and verde15
    HullShort= rosso5 and rosso15
    
    //entrylong
    EL= close CROSSES OVER Supertrend[3.5,10]
    //entryshort
    ES= close CROSSES UNDER Supertrend[3.5,10]
    
    IF  trade=1 and HullLong then
    if EL then
    Buy 0.5 contract  at market
    endif
    endif
    IF trade=2 and HullLong  then
    if EL then
    Buy 0.6 contract  at market
    endif
    endif
    
    IF trade=-1 and HullShort then
    if ES then
    SELLSHort 0.5 contract at market
    endif
    endif
    IF trade=-2  and HullShort then
    if ES then
    SELLSHort 0.6 contract at market
    endif
    endif
    
    
    if close CROSSES UNDER Supertrend[3.5,10] then
    sell at market
    endif
    if close crosses over Supertrend[3.5,10] then
    exitshort at market
    endif
    #187060 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    È un errore che a volte capita, solo ProRealTime può dirtelo.

    Devi inviare una richiesta premendo Ctrl+M dalla piattaforma.

    A me una volta ne capitò uno che era dovuto all’uso di un carattere speciale nei commenti! Era una lettera accentata. Sostituendo à con a’ risolsi il problema.

    #187070 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    Provo a vedere a questo punto se cancellando i singoli paragrafi funziona o meno.

    #187221 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    ho risolto cancellando il richiamo all’indicatore e scrivendolo per intero nella strategia … boh

    #187264 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    A volte ci sono errori difficili da capire. Ad ogni modo se l’hai risolto così va bene.

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

errore sistema linea 4 colonna 0


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
KAMJKAZE @kamjkaze Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 01/30/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...