Get date of weelkly closing

Forums ProRealTime English forum ProBuilder support Get date of weelkly closing

  • This topic has 5 replies, 3 voices, and was last updated 1 month ago by avatarJS.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #237825

    hello,

    I’m trying to create code that draws horizantal segment for opening each week This line extends all the week.
    i want to use this indicator for low TF like 5 min or 15-30 mins…
    so i want any trick to get weekly closing date to add it in DateToBarIndex(date) to expend the line of segment until weekly closing date ?

    thank you,

    #237831

    There you go:

     

    2 users thanked author for this post.
    #237832
    JS

    Hello,

    Do you mean something like this…?

    1 user thanked author for this post.
    #237836

    Thank you, brother, for your effort… I guessed this way, but this way you should put many possibilities, such as if the month ends on the 28th, 29th, 30th, or 31st… I wanted something easy, such as moving to weekly and taking the time to close that candle… Is that possible?

    #237837

    Hello,

    Do you mean something like this…?

    yes brother 🙂

    #237838
    JS

    Hi,

    Here is the code:

     

    You can adjust the color, line type and thickness of the line…

    2 users thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

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