DYO: Mark only the current bar


Q:  How can I do the following.  Generated a DYO that produces a t/f state.   If I tell it to mark all the bars it will, BUT I just want to put the mark over the currently working bar as the criterion is met, and NOT mark any of the back bars.  I want only to mark the current bar that is being created and as the criterion met it marks it but after it is the current bar no mark on it.   I am trying to reduce screen clutter.

A:  See this simple example.

Line A flag is True only for the last bar on the chart.  

Line B abort execution for prior bars being evaluated. 

Line C only executes for the Last bar as shown.


Last modified 8/8/08 11:29 AM