ProOrder interrompe progr quando in Backtest nessun errore

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #262116 quote
    pammachiopammachio
    Participant
    Junior

    ProOrder interrompe il programma dopo aver aperto una posizione con la seguente motivazione: il sistema di trading è stato interrotto perchè un indicatore ha ricevuto un parametro negativo o pari a zero ex:(-10)–

    Ma tutto ciò in backtest non succede per cui la mia domanda è: come posso sapere qual è il parametro che lo disturba?

    Il programma gira sul DAX a 5 min ed è il seguente: 5mGO che allego

    Qualcuno può aiutarmi a capire? Grazieee !!!!

    5mGO.itf
    #262117 quote
    GraHalGraHal
    Participant
    Master

    Hai provato a commentare le righe 235 e 236 qui sotto?


    //perform=0
    //valmult=0
    once xperf=100
    if LongonMarket then
    perform=close-TRADEPRICE
    valmult=max(0,FLOOR(perform/xperf))
    if barre=0 then
    prxstp=TRADEPRICE-xstp
    else
    
    #262118 quote
    GraHalGraHal
    Participant
    Master

    Il mio suggerimento di cui sopra NON funziona, l’ho eseguito su 15 secondi (per ottenere uno scambio rapido) ed è stato rifiutato per lo stesso errore che hai ottenuto

    #262119 quote
    GraHalGraHal
    Participant
    Master

    Ho provato con altre 4 “idee/modifiche”, ma vengono sempre rifiutate.


    Se qualcuno ha altri suggerimenti, non esitate a condividerli.

    #262120 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Può darsi che CONTACICLO sia 0, specialmente nella prima barra. Il backtest non lo rileva, però ProOrder si. Prova a cambiare questa riga:

    if ((R2reg<70 and R2reg<R2reg[1] and highest[contaciclo](R2reg>75)) or (maxciclo-R2reg >20)) and metaciclo=0 then
    

    con questa:

    if ((R2reg<70 and R2reg<R2reg[1] and highest[max(1,contaciclo)](R2reg>75)) or (maxciclo-R2reg >20)) and metaciclo=0 then
    

    in tal modo ti assicuri che venga sempre preso un valore > 0.

    Assicurati sempre che gli indicatori e le istruzioni che richiedono una quantità numerica su cui fare i calcoli (highest, lowest, ecc…), contengano sempre valori > 0.


    GraHal thanked this post
    #262124 quote
    pammachiopammachio
    Participant
    Junior

    Grazie mille GraHal ! Fantastico il tuo immediato interessamento !!

    E grazie ovviamente a Roberto … ho implementato la modifica proposta e fatto tesoro dell’avvertimento… ora aspetto lunedì per vedere se il tutto funziona.

    Grazie infinite !!!

    GraHal and robertogozzi thanked this post
    #262145 quote
    GraHalGraHal
    Participant
    Master

    Roberto, hai centrato il bersaglio al primo tentativo… L’ho impostato per 15 secondi solo per vedere e ha funzionato!


    Quindi problema risolto, stella d’oro a Roberto!

    robertogozzi thanked this post
Viewing 7 posts - 1 through 7 (of 7 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

ProOrder interrompe progr quando in Backtest nessun errore


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
pammachio @pammachio Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by GraHalGraHal
3 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/19/2026
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...