heiki hashi

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #71369 quote
    unkown0403
    Member
    New

    buongiorno a tutti.

    c’è qualche buon anima che mi possa aiutare a creare l’indicatore heiki hashi? Lo vorrei sottoforma di istogramma con valore 1 se la candela è verde oppure -1 se la candela è rossa.

    grazie

    #71373 quote
    robertogozzi
    Moderator
    Master

    Fatto (alcune linee sono commentate perché PRT non consente la presenza di variabili inutilizzate):

    IF BarIndex > 1 THEN
       haclose = (open + close + low + high) / 4
       haopen  = (haopen[1] + haclose[1]) / 2
       //xHigh   = Max(haOpen, haClose)
       //xLow    = Min(haOpen, haClose)
       //hahigh  = Max(High, xHigh)
       //halow   = Min(Low, xLow)
       IF haclose > haopen THEN
          x = 1
       ELSE
          x = -1
       ENDIF
    endif
    RETURN x
    Alai-n thanked this post
    HA.jpg HA.jpg
    #71376 quote
    unkown0403
    Member
    New

    grazie Roby!!! felice weekend

    robertogozzi thanked this post
    #71390 quote
    Nicolas
    Keymaster
    Master

    Per un nuovo argomento, il tuo titolodovrebbe essere abbastanza esplicito da spingere la community a leggere la tua discussione.

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

heiki hashi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

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

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