Conversion of "Average Price Bars"

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

    Hi Nicolas

    Wonder if you could convert Average Price Bars from mq4. They are allegedly a better version of Heikin Ashi.

    • Provide a better depiction of current market trend at a glance.
    • Reveal periods of consolidation.
    • Show market strength.
    • Eliminate fluctuations of nominal price action.
    • Removes the noise of price distortion of the underlying trend

    Thanks a lot

    Rigel

    APB.mq4 average-price-bars.png average-price-bars.png
    #136739 quote
    Nicolas
    Keymaster
    Master

    Here is the translated code for the Synergy Average Price Bars.

    if barindex>1 then 
    ld24 = (Open[0] + High[0] + Low[0] + Close[0]) / 4.0
    ld24 = (ld24 + Close[0]) / 2.0
    ld0 = (ld0[1] + (ld24[1])) / 2.0
    ld8 = Max(High[0], Max(ld0, ld24))
    ld16 = Min(Low[0], Min(ld0, ld24))
    endif
    
    drawcandle(ld0,max(ld8,ld16),min(ld8,ld16),ld24)
    
    return
    PLermite thanked this post
    synergy-average-price-bars.png synergy-average-price-bars.png
    #136814 quote
    rigel
    Participant
    Average

    Thanks a lot Nicolas!

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

Conversion of "Average Price Bars"


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
rigel @rigel Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by rigel
5 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/20/2020
Status: Active
Attachments: 3 files
Logo Logo
Loading...