DYO: Bar count down timers


Q:  I worked on those bar timers, to either combine them (the original one from DA charts was supposed to work on both volume and tick charts, but didn't for me), or allow them to work separately, so that when a tick bar chart is present the tick bar timer will function; when a volume chart is present the volume bar timer will work.  I also really want to build one for seconds bars, because I have renewed interest in minute, or time based bars, but would like a "self contained, and self adjusting"  timer for minutes and seconds charts....  or just seconds charts would be fine.  I think that I could build it just like your Tick Bar Timer, except, again, I think I need to figure out how to do line B number [  ] correctly for seconds....  and that is only if I am on the right track on this at all.  I did change the output of your timer to change both the bar color and the value indicator color at 80 for a stronger presentation. 

Any help or direction on this is greatly appreciated.

A:  This is the solution to your Bar Timer effort and it is universal to work on constant tick, constant volume, seconds and minute based charts.  For the seconds and minutes charts the data feed needs to be real-time.  The Timer will not work on seconds or minute charts in Playback or with a delayed data feed.

Template:  1332-BarTimer

Line A gets the % Remaining to Complete the Bar, and this percent is returned for all chart times:   constant tick, constant volume, seconds, and minute based charts.   

Line B will change this to % Complete and initialize the color of the paint can to blue.  

Line C will conditionally change the paint can color to pink. 

Line D plots the vertical histogram bar in the current paint can color. 

Line E adds the value and a double headed arrow to the histogram display.

Template:  1332-BarTimer


Last modified 8/7/08 4:01 PM