DYO: 5-Minute Time Zones


This example can be used with constant tick charts, constant volume charts, or constant range charts.  Although the bars span a variable amount of time, the zone coloring changes every 5-minutes.

Line A gets the Bar's Time and divides by 5 to create 5-minute periods, and stores it in GV [1].   Line B truncates the division from Line A and resaves the integer in GV [1].   Line C does a modulo 4 operation to return a remainder of 0, 1, 2, or 3.    To change the time period for the color grouping, edit the Line A Value to the number of minutes for the period.

Lines D through G plot a different zone color for each of the 4 possible results from Line B's modulo 4 operation.

Template:  5MinZones


Last modified 8/25/09 11:56 AM