Renko Moving Average

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #181959 quote
    MnAMnA
    Participant
    New

    Hello, I m looking for help coding an indicator using Renko closing prices. I want to code a Weighted Moving Average and a Hull Average using closing Renko prices.

    Everytime I try, the indicator ignores Renko and instead uses the candlestick closing price not the renko closing price.

    The renko code I found already as per below

    Median renko boxes on price

    Is there anyone who has coded indicators using closing Renko prices?

    Thank you

    #182148 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You need to make calculations using TopPrice or BottomPrice as a replacement for close:

    //parameters :
    boxsize = 50
    once topprice    = close
    once bottomprice = close - boxsize*ticksize*2
    ONCE RenkoClose     = close
    if(close > topprice + boxsize*2) THEN
       topprice    = close
       RenkoClose     = topprice
       bottomprice = (topprice[1] + bottomprice[1])/2
    ELSIF (close < bottomprice - boxsize*2) THEN
       bottomprice = close
       RenkoClose     = bottomprice
       topprice    = (topprice[1] + bottomprice[1])/2
    ELSE
       topprice    = topprice
       bottomprice = bottomprice
    ENDIF
    Sma100 = average[100,0](RenkoClose)
    RETURN topprice as "box top", bottomprice as "bottom box",Sma100 AS "Sma100"
    MnA thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Renko Moving Average


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
MnA @aolvera Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 10 months ago.

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