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

Re: EL Question



PureBytes Links

Trading Reference Links

>From Jay:
>      I would like to write a ShowMe study that marks the bar which
>      is 'x" bars ago.

>From Hans:
> Create a PAINTBAR:
> 
> input:lookBACK(25);             {or whatever your BO period is}
> plot1[lookBACK] (high[lookBACK],"pbHI");
> plot2[lookBACK] (low[lookBACK],"pbLO");

Yep, Hans has the answer with the plot1[lookBACK] syntax. If you want to
do a ShowMe, you can trick TS into erasing the old dot by overwriting it
with a dot the same color as the screen background.

For a black screen:

input:lookBACK(25), Offset(1);
plot1[lookBACK] (high[lookBACK] + Offset,"ShowMe"); {red point}
plot2[lookBACK+1] (high[lookBACK+1] + Offset,"Erase"); {black point}

-- 
   Dennis