Modify this Range box indicator please

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #97305 quote
    robertogozzi
    Moderator
    Master

    09 must be written 090000 and 10 must be written 100000.

    #97543 quote
    micha2012
    Participant
    Average

    Hello Roberto,

    gracie mile…but it won`t work. I found this “alternative” code…it works great:

    starttime = 090500
    endtime = 100500
     
    if intradaybarindex=0 then
    hh = 0
    ll = 0
    alreadydrawn = 0
    endif
     
    if time=starttime then
    startbar=barindex
    endif
     
    if time=endtime then
    endbar=barindex
    endif
     
    if time>=starttime and time<=endtime then
    if high>hh then
    hh = high
    endif
    if low<ll or ll=0 then
    ll = low
    endif
    endif
     
    if time>endtime and alreadydrawn=0 then
    drawrectangle(startbar,hh,endbar,ll)
    alreadydrawn=1
    endif
     
    RETURN

    Anyway, thank you for support.

    Regards Micha

    #97547 quote
    robertogozzi
    Moderator
    Master

    Great!

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

Modify this Range box indicator please


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 17 replies,
has 5 voices, and was last updated by robertogozzi
6 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/19/2019
Status: Active
Attachments: 5 files
Logo Logo
Loading...