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?
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
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue