My Heikin-Ashi Chart

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #78651 quote
    thomas2004chthomas2004ch
    Participant
    Senior

    Hi all,

    Though one can change the chart type to the Heikin-Ashi chart, I  want to build my own since I want to use the Heikin-Ashi as input to the indicator. Here is my code, it seems not correct 100%. Any tips?

    Hclose=0
    Hopen=0
    Hlow=0
    Hhigh=0
    
    Hclose=(Open+High+Low+Close)/4
    Hopen=(Open[1]+Close[1])/2
    Max1=MAX(Hclose,Hopen)
    Hhigh=MAX(Hhigh,Max1)
    Min1=MIN(Hopen,Hclose)
    Hlow=MIN(Hlow,Min1)
    
    IF Hopen=0 THEN
    Hclose=close
    Hopen=open
    ENDIF
    
    // RETURN Average[n](HClose) COLOURED(255, 0, 0)
    RETURN Hclose - Hopen
    
    #78653 quote
    VonasiVonasi
    Moderator
    Master

    Topic moved to the ProBuilder forum as it is an indicator question and not a platform support issue. Please try to post in the correct forums.

    #78694 quote
    NicolasNicolas
    Keymaster
    Legend

    You’ll find many Heikin Ashi codes in the forums and in the library, just make a quick search with the search tool of the website (in the dropdown menu below your avatar).

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

My Heikin-Ashi Chart


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by NicolasNicolas
8 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/20/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...