Recurring Vertical Lines – datetolastbarindex

Forums ProRealTime English forum ProBuilder support Recurring Vertical Lines – datetolastbarindex

Viewing 15 posts - 16 through 30 (of 41 total)
  • #178137

    So all was going swimmingly until an outage yesterday (ASX Cash timeframe) with PRT and since then we’re now capped to something close to ~30k bars in 1sec int Australia Cash 200., could be lingering outage issues, housekeeping. The DAX30(now 40) however seems worse for wear. Was a rock before then.

    It looks to only be affecting 1sec ints. and duplicating another chart from another period, say 5min, will recreate the charts correctly when 1sec is selected however shortly afterwards it redraws to ~30k bars – this is with or w/o the indicator applied.

     

     

     

     

    #194744

    Anyway to add txt to the vertical lines (as drawn by code below)?

    drawvline(datetobarindex(20220606110000))Coloured (105,105,105)style(dottedline,1)

     

    Thanks in advance.

     

     

    #194752

    There you go:

    1 user thanked author for this post.
    #194772

    Hey Rob ….

    I must be going sideways on this one, this is what I had below but it was spitting the dummy.

    I’ll look closer and see what the go is.

    drawtext(“SGX”,datetobarindex(20220606110000))Coloured (105,105,105)style(dottedline,1)

     

    Many thanks for the speedy reply … 🙂

     

    edit: lol, dotted line ref. ….. one of those days. Thanks for setting me straight.

     

    #196499

     

    Hi Team,

    I’ve put together something with Rob’s help over the journey that’ll plot open times and label them. Many thanks for this.

    Been great for the past few weeks till the other day where it started to flag an error, complaining about date format.

     

    I shrunk the days to 1 and it’s still having a problem.

    Very much a newb here with this and thanks for your patience with me.

    Rgds,

     

    INV

     

     

     

     

     

     

    #196502

    For some reason the month code for July is being interpreted as  70 rather than 07.

     

    The lines commented out allowed for line plots only, apologies for the mess.

    #196503

    Not sure what happened here tbh, will have a closer look but this is usually set and forget.

    Even backups confirm it was <10, so,

    <10

    went

    <0

    for a fix?

    Really confused atmo .. lol

     

    Will see how the day rolls up.

    #196504

    Just as a follow up – I needed to create a new indicator with the same code otherwise the vectoring wouldn’t work.

    Copying and pasting.

    #196572

    Just updating that all went well after the tweaks.

    Kind of odd that it all worked for a few weeks then went RS.

    #228334

    Hi Team,

    Roberto helped out quite a bit with our smaller tf and all is well on that front.

    On the

     

    I’m wondering if there’s a way to work with a historical anchor (or any date) and add a series of calendar days to the anchor.

    Ideally the both anchor and days added would be variable but I could work with static added days but a flexible anchor would be the minimum.

     

    From what I’ve seen there can be problems with increasing the anchor variable past 31 days (32) and the indicator can error.

     

    These days plus anchor day (dates) would be represented as v-lines on a daily chart.

     

    eg: 20231030 as an anchor

    plus 10 days

    plus 12 days

    plus 15 days

    plus 22 days

    For the life of me I can work with the smaller TF kind of ok, minutes w/in a s session for example but on the larger TF, day for example, I can’t seen to get my head around it.

    Any help would be appreciated.

     

    Cheers,

    inv

     

     

    #228338

    Work in progress.

    itf is attached as a semi-hacked rev, probably 1/3rd of the way there maybe.

    Assistance appreciated.

    #228343

     

    inverse wrote:

    Work in progress and now need to work on as the integers rise and we hit a month with days more than it has triggering an error.

     

    #228345

    I know it’s messy and incorrect in places that are glaring as I look at it but I’m sadly lacking in this kind of thing … 🙂

    #228361

    Ended up here but still cant roll past the month barrier. So it’ll plot w/in a month but not beyond …

    #228362

     

    MyDate1 defined as a ext variable so you can plug it in via GUI and not w/in code but to be honest is easy enough to do it via cli.

Viewing 15 posts - 16 through 30 (of 41 total)
Similar topics:

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