J. M. Hurst – Cycle

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21046 quote
    papero76papero76
    Participant
    Senior

    buoingiorno a tutti

    vorrei chiedervi se qualcuno ha trovato il modo di implementare i cicli di Hurst in un indicatore per prorealtime

    saluti

    #21223 quote
    NicolasNicolas
    Keymaster
    Legend

    Ho appena converto, da MT4, anche nel forum italiano. Non so se questa versione è adatta per la vostra applicazione? Se vedi altre versioni di codice disponibili su Internet, io sono disposto a guardare per cercare di convertirlo in ProRealTime.

    https://www.prorealcode.com/topic/hurst-indicator-mt4-conversione/

    #21383 quote
    papero76papero76
    Participant
    Senior

    Cia Nicolas , questo è il cilo di Hurst ma è da migliorare.

    /////////////start/////////////
    
    // k è il numero di barra contando da destra dalla quale far partire il ciclo
    
    // n è il numero di cicli che si vogliono plottare
    
    // wa è la lunghezza del ciclo in barre
    
    // trend è il trend per definizione -1, 0 o +1
    
    //K=N PER K E N USARE GLI STESSI VALORI
    det=DPO[k*2](close)
    c=(k-(n*wa))
    if c<=0 then
    c=k
    flag2=0
    endif
    
    det2=DPO[c*2](close)
    
    if det=det[1] and det[1]=det[2] and det[2]<>det[3] then
    flag=1
    endif
    if det2=det2[1] and det2[1]=det2[2] and det2[2]<>det2[3] then
    flag2=1
    endif
    
    if flag=0 then
    hurst=undefined
    elsif flag2=1 then
    hurst=undefined
    else
    
    a=a+1
    x=(360/wa)*a
    phase=-90
    w1=SIN(8*x+phase)
    w2=2*SIN(4*x+phase)
    w3=3*SIN(2*x+phase)
    w4=4*SIN(x+phase)
    ciclo=w1+w2+w3+w4
    grc=0.01029
    c=(grc*trend*1)
    b=b+c
    hurst=ciclo+b
    endif
    
    RETURN hurst
    #21778 quote
    papero76papero76
    Participant
    Senior

    allego questo link magari può essere utile a qualcuno

    http://tradingandsystems.altervista.org/hurt-cycle/

    saluti

    #26518 quote
    Jean-Claude REGISJean-Claude REGIS
    Participant
    Average

    Bonjour

    Quels sont les réglages par défaut préconisés ?

    Merci

    #27248 quote
    BandidoBandido
    Participant
    Average

    Avete già visto questo?

     

    /////////////start/////////////
    
    // k è il numero di barra contando da destra dalla quale far partire il ciclo
    
    // n è il numero di cicli che si vogliono plottare
    
    // wa è la lunghezza del ciclo in barre
    
    // trend è il trend per definizione -1, 0 o +1
    
    //K=N PER K E N USARE GLI STESSI VALORI
    n=k
    
    
    det=DPO[k*2](close)
    c=(k-(n*wa))
    if c<=0 then
    c=k
    flag2=0
    endif
    
    det2=DPO[c*2](close)
    
    if det=det[1] and det[1]=det[2] and det[2]<>det[3] then
    flag=1
    endif
    if det2=det2[1] and det2[1]=det2[2] and det2[2]<>det2[3] then
    flag2=1
    endif
    
    if flag=0 then
    hurst=undefined
    elsif flag2=1 then
    hurst=undefined
    else
    
    a=a+1
    x=(360/wa)*a
    phase=-90
    w1=SIN(8*x+phase)
    w2=2*SIN(4*x+phase)
    w3=3*SIN(2*x+phase)
    w4=4*SIN(x+phase)
    ciclo=w1+w2+w3+w4
    grc=0.01029
    c=(grc*trend*1)
    b=b+c
    hurst=ciclo+b
    endif
    
    RETURN hurst
    
    ALE thanked this post
Viewing 6 posts - 1 through 6 (of 6 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

J. M. Hurst – Cycle


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
papero76 @papero76 Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by BandidoBandido
9 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/14/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...