Da Metastock a Prorealtime – Tema Heikin ashi

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63289 quote
    cynarrcynarr
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    cynarrcynarr
    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.
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

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 cynarrcynarr
8 years, 7 months ago.

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