Announcement

Collapse
No announcement yet.

High of the previous 5 bars - true??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • High of the previous 5 bars - true??

    I want to have the background color of my chart change colors for any given bar IF the following holds true. IF the high of any given bar is higher than the previous 5 bars then change color. I know how to change the color if the statement is true, the issue is that I am only able to make the program look at the 5th bar (offset -5) and it is not looking at bars -1 through -4. I have tried and tried and cant figure out this one very simple step. Please help.

  • #2
    The Donchians function will be quite useful for this analysis. Check it out.

    Comment

    Working...
    X