Da Metastock a Prorealtime – Tema Heikin ashi

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63289 quote
    cynarr
    Participant
    Average

    Salve

    questa è una formula (non mia) scritta per metastock utile soprattutto per grafici Heikin Ashi, io sono riuscito

    a tradurne una parte in linguaggio prorealtime ma alcune cose non riesco a tradurle come    [+PREV)/2;]

    oppure anche   [+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;]

    qualcuno riesce a farlo?

    grazie

    giuliano

     

     

    avg := Input(“Temagemiddelde? “,1,200,55);
    haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
    haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;
    TMA1:= Tema(haC,avg);
    TMA2:= Tema(TMA1,avg);
    Diff:= TMA1 – TMA2;
    ZlHa:= TMA1 + Diff;
    ZlHa

    #63291 quote
    Nicolas
    Keymaster
    Master

    Ho fatto la traduzione del codice, per favore trovalo qui sotto:

    avg= 55
    if barindex>avg then
    haOpen=(((open[1]+high[1]+Low[1]+Close[1])/4) + haOpen[1])/2
    haClose=((Open+High+Low+Close)/4+haOpen+Max(High,haOpen)+Min(Low,haOpen))/4
    TMA1= Tema[avg](haClose)
    TMA2= Tema[avg](TMA1)
    Diff= TMA1 - TMA2
    ZlHa= TMA1 + Diff
    endif
    
    return ZlHa
    tema-with-heikin-ashi.png tema-with-heikin-ashi.png
    #63305 quote
    cynarr
    Participant
    Average

    Grazie è perfetto, grazie anche per la celerità.

    giuliano

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

Da Metastock a Prorealtime – Tema Heikin ashi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
cynarr @cynarr Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/20/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...