ADR to show on Intraday

Forums ProRealTime English forum ProBuilder support ADR to show on Intraday

  • This topic has 4 replies, 3 voices, and was last updated 1 month ago by avatarJS.
Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 5 posts - 1 through 5 (of 5 total)
  • #196307 Report

    I will like to view this Daily ADR calcualation in Intraday time frame. Please help code

     

    defparam drawonlastbaronly=true
    P = 10

    AVH = average[p](high)
    AVL= average[p](low)
    ADR =AVH -AVL

    L0=(Dlow(0) )

    R75=L0+(ADR*.75)
    R50=L0+(ADR*.50)

    drawtext(“R75”,barindex,R75)
    drawtext(“R50”,barindex,R50)
    drawtext(“L0”,barindex,L0)

     

     

    #196329 Report

    Hello,

    here it is, with small horizontal segments added and text shifted a little bit to the right:

     

     

    1 user thanked author for this post.
    #196344 Report

    Thanks a million. Is it possible to have the horizontal line fron the beginning of the day to end of day, please I mean from 00:00 to 23:59 .

    #196420 Report

    Good morning. Is it possible to code  a Weekly ADR calculation in Intraday time frame. Thanks in advance

     

    defparam drawonlastbaronly=true
    P = 10
    somme=0
    for i=0 to p1
    somme=somme+Dhigh(i)Dlow(i)
    next
    ADR=somme/p
    L0=Dlow(0)
    R75=L0+(ADR*.75)
    R50=L0+(ADR*.50)
    drawtext(“R75”, barindex+15, R75)
    drawtext(“R50”, barindex+15, R50)
    drawtext(“L0”, barindex+15, L0)
    DRAWSEGMENT(barindex, R75, barindex+10, R75)
    DRAWSEGMENT(barindex, R50, barindex+10, R50)
    DRAWSEGMENT(barindex, L0, barindex+10, L0)
    return
    #196465 Report
    JS

    Hi @oyinloyea

    Here is an alternative with MTF.

    If you want to use weekly rates, you can change “TimeFrame(Daily)” to TimeFrame(Weekly)…

    Attachments:
    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login