ORDINE STOP CON FRACTALS BILL WILLIAMS

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #36022 quote
    Nicolas
    Keymaster
    Master

    Nel codice della strategia, il periodo di frattali è impostato su 16. Confermarmi che hai impostato lo stesso per l’indicatore visualizzato sul tuo grafico. Perché il codice funziona per me. Grazie.

    #36083 quote
    Riccardo Benedetti
    Participant
    Junior

    si, confermo che il codice impostato sulla strategia cp=16 è lo stesso periodo impostato sull’indicatore.

    e grazie a te!

    #36085 quote
    Riccardo Benedetti
    Participant
    Junior

    ho fatto uno screen con i parametri usati e acquisti senza segnale.

    #36098 quote
    Nicolas
    Keymaster
    Master

    Questa versione incorpora un nuovo codice per verificare se il prezzo è effettivamente al di sotto dell’ultimo livello di prezzo ad alto livello frattale per impostare un nuovo ordine STOP e / o superiore per uno inferiore. Dovrebbe funzionare come previsto, dispiaciuto per gli inconvenienti.

    DEFPARAM CumulateOrders = False
    
    DEFPARAM FLATBEFORE = 080000
    DEFPARAM FLATAFTER = 171500
    defparam preloadbars=2000
    
    cp = 16
    
    if high[cp] >= highest[2*cp+1](high) then
    LH = 1
    else
    LH=0
    endif
    
    if low[cp] <= lowest[2*cp+1](low)  then
    LL= -1
    else
    LL=0
    endif
    
    if LH=1 then
    hil = high[cp]
    //lol=0
    lastfractal=1
    endif
    
    if LL  = -1 then
    LOL=low[cp]
    //hil=0
    lastfractal=-1
    endif
    
    if not onmarket then
    if lastfractal=1 and close<hil then
    BUY 1 CONTRACT AT hil STOP
    endif
    if lastfractal=-1 and close>lol then
    SELLSHORT 1 CONTRACT AT lol STOP
    endif
    endif
    
    SET STOP pLOSS 10
    SET TARGET pPROFIT 10
    GraHal thanked this post
    #36111 quote
    Riccardo Benedetti
    Participant
    Junior

    grazie Nicolas!

    funziona correttamente.

    volevo dirvi che sono felice di essere qui!

    grazie

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

ORDINE STOP CON FRACTALS BILL WILLIAMS


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 19 replies,
has 3 voices, and was last updated by Riccardo Benedetti
8 years, 8 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 05/16/2017
Status: Active
Attachments: 4 files
Logo Logo
Loading...