Support Board
Date/Time: Tue, 04 Nov 2025 03:14:39 +0000
Post From: how to re-color every x bars?
|   [2017-11-10 00:10:18]     |  
| Sawtooth - Posts: 4285 | 
| 
                If you want to color every 15 minute bar a different color, repeating every 4 bars, do this: Add the Bar Numbering study, and set the 'Number Every N Bars' to 1. Add 4 instances of the Color Bar Based On Alert Condition study, and use these formulas in each respective Alerts tab: =(ID1.SG1-0)/4-INT((ID1.SG1-0)/4)=0 =(ID1.SG1-1)/4-INT((ID1.SG1-1)/4)=0 =(ID1.SG1-2)/4-INT((ID1.SG1-2)/4)=0 =(ID1.SG1-3)/4-INT((ID1.SG1-3)/4)=0 where ID1 is the Bar Numbering study; edit as needed. Set unique colors for each of the color bar studies.  | 
        
