Support Board
Date/Time: Tue, 07 May 2024 22:15:56 +0000
Post From: how to re-color every x bars?
[2017-11-10 00:10:18] |
Sawtooth - Posts: 3993 |
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. |