DPO: SISTEMA NON FUNZIONANTE

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

    salve a tutti

    vorrei una mano su questo sistema

    purtroppo non parte, non ho nessun dato sul backtest

    vi allego il sistema sperando che qualcuno riesca a trovare l’inghippo

    un saluto a tutti

    stefano

    // Chaos Awsome Oscillator Signal Line
    DEFPARAM CUMULATEORDERS = FALSE
    
    //CALL "myDIVERGENZAWILLIAMDPO = CALL "DIVERGENZA WILLIAM DPO" 
    CHAOSAO=Average[5](MedianPrice)-Average[34](MedianPrice)
    CHAOS= Average[1](CHAOSAO)
    
    ChaosAOSignalLine=Average[5](Average[5](MedianPrice)-Average[34](MedianPrice))
    
    REM Alligator Indicator - Bill Williams
     
    // Alligator Blue Line - Jaw
    // 13 bar smoothed average future 8 bars
    SSMAblue = WilderAverage[13](close[8])
     
     
    // Alligator Red Line - Teeth
    // 8 bar smoothed average future 5 bars
    SSMAred = WilderAverage[8](close[5])
     
     
    // Alligator Green Line - Lip
    // 5 bar smoothed average future 3 bars
    SSMAgreen = WilderAverage[5](close[3])
    
    
    ao = average[5](medianprice)-average[34](medianprice)
    ac = ao-average[5](ao)
    
    if ac>ac[1] then
    r=0
    g=255
    else
    r=255
    g=0
    endif
    ACDIRECTION= Average[1](AC)
    
    LONGALLIGATOR= SSMAblue>SSMAred AND SSMAblue>SSMAgreen AND SSMAred> SSMAgreen
    SHORTALLIGATOR= SSMAblue<SSMAred AND SSMAred<SSMAgreen AND SSMAblue<SSMAgreen
    
    
    ATR= AverageTrueRange[14](close)
    
    DPODIVERGENZASHORT= DPO[21](close)>0 AND DPO[21](close)>DPO[21](close)[1] AND ACDIRECTION<ACDIRECTION[1] AND CHAOS<CHAOS[1]
    DPOLONGDIVERGENZALONG= DPO[21](close)<0 AND DPO[21](close)<DPO[21](close)[1] AND ACDIRECTION>ACDIRECTION[1]
    
    
    IF NOT ONMARKET AND  CLOSE>OPEN AND CLOSE<SSMAgreen AND DPOLONGDIVERGENZALONG AND LONGALLIGATOR THEN
    BUY 1 CONTRACT  AT MARKET  
    TARGETTELONG= CLOSE + (2*ATR *pipsize)
    STOPLONGE= CLOSE- (ATR * pipsize )
    SELL AT TARGETTELONG LIMIT
    SELL AT STOPLONGE STOP
    ENDIF
    
    IF LONGONMARKET THEN
    SELL AT TARGETTELONG LIMIT
    SELL AT STOPLONGE STOP
    ENDIF
    #213338 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Purtroppo io sono fuori fino a giovedì.

    Se nessun altro può aiutarti te lo farò allora.

    #213339 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    Grazie Roberto

    #213343 quote
    MaoRai54MaoRai54
    Participant
    Master

    Ciao,

    ho provato a cambiare parametri ma ancora nessun risultato.

    Invece togliendo DPOLONGDIVERGENZALONG dalla riga con IF ottengo +250 euro con 157 trades sul DAX 5m 10.000 periodi

    Quindi secondo me dovresti lavorare e modificare:

    DPOLONGDIVERGENZALONG= DPO[D21](close)<0 AND DPO[D21](close)<DPO[D21](close)[1] AND ACDIRECTION>ACDIRECTION[1]

    #213348 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    La prima parte del sistema è un indicatore:

    praticamente al posto dell’instruzione di acquisto inserisco

    signal=1

    else

    signal=0

    endif.

    se richiamassi l’indicatore con la funzione call risolverei il problema secondo te?

    è una funzione in cui non mi sono mai cimentato

    #213459 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    Scusate ho un dubbio…

    È possibile che l’indicatore DPO non possa essere usato nei sistemi automatici?

    #213463 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Esatto, proprio così. Come lo ZigZag è un indicatore repainting, cioè torna a mettere un segnale su una vecchia candela, cosa inaccettabile in un sistema dì trading.
    2-3 anni fa ne feci una versione utilizzabile, che puoi trovare a https://www.prorealcode.com/prorealtime-indicators/dpo-detrended-price-oscillator/.

    #213466 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    Lo stesso vale per un indicatore che ho strutturato usando il Dpo? I segnali in quel caso sono validi ? O li cancella ?

    #213659 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Il DPO non può essere usato in quanto restituisce segnali sul passato, sia che venga utilizzato da solo oppure all’interno di un tuo indicatore.

    I cosiddetti indicatori REPAINTING, cioè che individuano i segnali solo DOPO un certo numero di candele, non si possono usare perché non puoi aprire una posizione oggi sui livelli di 3-4 candele prima. In pratica sulla candela corrente NON hai mai un segnale quando la candela chiude.

    #213665 quote
    KAMJKAZEKAMJKAZE
    Participant
    Junior

    eh me lo ero immaginato, purtroppo ho provato con l’indicatore sul sito, ma non porta dei risultati compatibili.

    grazie lo stesso 😀

Viewing 10 posts - 1 through 10 (of 10 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

DPO: SISTEMA NON FUNZIONANTE


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
KAMJKAZE @kamjkaze Participant
Summary

This topic contains 9 replies,
has 3 voices, and was last updated by KAMJKAZEKAMJKAZE
3 years, 4 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/15/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...