Lowest function (excluding current candle)

Forums ProRealTime English forum ProBuilder support Lowest function (excluding current candle)

Viewing 4 posts - 1 through 4 (of 4 total)
  • #174104

    Hi all,

     

    Have a qn:  does the lowest function include the current candle?  So example, if current day is Monday, and I want to find the lowest daily price last week, so I have to do lowest (6).  But the problem is lowest (6) will consider current low also.  I just want to consider the low between last monday , tues,wed,thurs,fri.  How do I go about defining this pls?

     

    Tks

    #174116

     

    1 user thanked author for this post.
    #174160

    Thank you very much.  Now I am able to replicate the Donchian Upper and Lower Bands (blue dots)

    However, what I really want to find out is to create a narrower band of the Donchian, but keep the overall trend lines.  I use the code below.  Although the band has narrowed red dots, the look of the tighter band does not exactly match the Donchian bands.  Any advice on how I should modify my codes to correct this?   The codes are below and I have also attached the screenshot.  Thank you very much.

     

    LBand = lowest[interval](low[1]) // same as Donchian Lower Band
    UBand = highest[interval](high[1]) // same as Donchian Upper Band

    diffBand = (UBang-Lband)/Bfactor

    LBandNew=LBand+diffband
    UBandNew=UBand-diffband

    return LBandNew,UBandNew, LbandOrig, UBandOrig

    WhatsApp-Image-2021-07-26-at-1.25.57-PM

    #174161

    this is the screen shot

Viewing 4 posts - 1 through 4 (of 4 total)

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