[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hour Bars



PureBytes Links

Trading Reference Links

When I saw the message on Timebars I thought "someone's stolen my
indicator"! But the indicator is not the same as one I wrote several
years ago under the same name.   So since we are in a sharing mood, I
will give you all my Time Bars indicator, newly renamed HourBars to
avoid confusion.  This is appropriate since my approach is not to mark
extremely small periods (5 minutes), but mark the day as it unfolds.  

"HourBars" marks hours, with the half hour marked by smaller ticks, and
noon marked by a higher tick, all placed along the bottom of the price
graph.  The day is marked by full bar (to the top).  All bars of the
current day day gets are red, the start of the week is a blue bar, and
the start of the month a red bar (only four plots :-).    It works with
both tick and minute charts.

Remember that if no ticks are present a study doesn't get executed, so
don't expect time marks when there are no ticks.  However, the lack of
bars can be used to identify loss of ticks.  And of course hours can be
marked only to the resolution of the bar (closest hour.)  Also, today's
red bars become yesterday's red bars unless TS is restarted or the price
graph is redrawn.  I never bothered to write code to paint over
yesterday's red bars.

The study can be placed in any subgraph.  If placed in the price
subgraph, scale to Entire Data Series.
The study needs to be executed on every tick to plot the first bar of
the current day on the opening tick.  It is written to minimize the
amount of code executed on each tick.

Sometimes TS plots the plots out of order, in which case a color (i.e.,
the week or current day color)  may be obscured by another.   In that
case delete the study and re-add.

Attached is the ELA.

donc
Attachment Converted: "c:\eudora\attach\Hourbars.ela"