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

Re: Last Bar Close Visual Aid



PureBytes Links

Trading Reference Links

Hi Phil,

PB> Does anyone know how to Accent the 'actual'
PB> realtime close of the last bar
PB> (only)
PB> while its moving? Either you have to have very few (big) bars on graph or
PB> really
PB> strain to see price realtime activity.

PB> What would be good, for those of us who have
PB> bifocals or worse, would be the
PB> buy/sell signal triangles
PB> that map the close: except adjustable (bigger) size and realtime. Maybe it
PB> would
PB> just be a distraction, but there are certain
PB> periods it seem like it could
PB> provide pattern informatation.

Below is my version of what you are asking, which I use on a
tick  chart.  OK,  it's  not the Buy/Sell triangle because I
needed  to  use  an ASCII character. I chose the "copyright"
symbol.  Try  it  out as an indicator and adjust the symbol,
size, bold, etc. to your liking.

Make sure that your chart has sufficient "Bars to the Right"
set to accomodate your desired spacing.

-- 
Dave Nadeau
Fort Collins, CO

===========================

Inputs: Color(Black);

Vars:   NumDec(0);  {Number of decimal places to use}
        
Vars:   Spacing(2);  {This value gets added to the current time for horizontal spacing}

Vars:   Initialize(True), EndPt(0), TimeLocation(0);

TimeLocation=MinutesToTime(TimeToMinutes(Time)+Spacing);

If LastBarOnChart then begin
                If Initialize then begin
                        EndPt=Text_New(D,TimeLocation,Close,"©");
                End
                Else begin
                        Text_SetLocation(EndPt,D,TimeLocation,Close);
                        Text_SetString(EndPt,"©");
                End;

        Initialize=False;
        Text_SetStyle(EndPt, 0, 2);
        Text_SetColor(EndPt, Color);

End;