The Paint Bars indicator is a powerful tool for Painting the Bars or the chart background different colors based on True or False conditions. The "condition" can be tested for True or False by either a Scan, Trading signal, Custom Indicator, Plugin Indicator or by simply testing if the current bar is inside or outside of a particular Session. For each bar in the chart, a scan or trading signal is either TRUE or FALSE. You can choose specific colors for both the true condition and the false condition. If a custom indicator is chosen as the painting criterion, then the custom indicator has an arithmetic value corresponding to each bar in the chart. Thus, three color choices are provided for positive, negative, and zero values of the indicator.
Example
Here is a simple example. Suppose you wanted your intra-day bar charts to highlight periods of time during which the instrument is trading above the moving average of closing prices for the preceding 10 periods. First, create a "scan" named "Above MA" with the RTL formula: CL > MA Where the MA moving average token is defined as a 10 period simple moving average. Open an intra-day bar chart of some instrument and add a "Paint Bars" indicator to the chart. Setup the paint bars indicator to use the scan named "Above MA" created above. Specify "Paint Background" using the menu at the bottom of the Paint Bars setup window. Place a checkmark in the box to the left of the "TRUE" condition color box, then click on the color and pick a highlighting color for the TRUE condition. You could also specify a different color for the FALSE condition, but in this example, leave the checkbox to the left of the FALSE condition color box unchecked. Then click OK to add the Paint Bars indicator to the bar chart. You will see all bars that closed above the moving average are highlighted with the TRUE color chosen above.
Presentation
Above is a 5 Minute chart of the S&P E-mini.. The Paint Bars Indicator is used here to paint the background of the chart for periods that fall inside of the Day Trading Session.