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

Re: Last Bar Close Visual Aid



PureBytes Links

Trading Reference Links

var:txtr(0),  r(" low - - - - - - - - - - - - - - - - -");
var:txt(0),last(" last - - - - - - - - - - - - - - - - -");
var:txts(0),s(" high - - - - - - - - - - - - - - - - -");

value9=c ;
value8=idhigh;
value7=idlow;

if currentbar=1 then begin txtr= text_new
(d,1,0,"--"+r+r+r+r+r+r+r+r+r+r+r+r+r);
text_setcolor(txtr,5);
text_setstyle(txtr,0,2);end;

if currentbar=1 then begin txt= text_new
(d,1,0,"--"+last+last+last+last+last+last+last+last+last+last+last+last+last+last);
text_setcolor(txt,8);
text_setstyle(txt,0,2);end;

if currentbar=1 then begin txts= text_new
(d,1,0,"--"+s+s+s+s+s+s+s+s+s+s+s+s+s);
text_setcolor(txts,4);
text_setstyle(txts,0,2);end;

{1=black,2=blue,3=cyan,4=green,5=magenta,6=red,7=yellow,8=white}

if c >= 0 then begin text_setlocation(txtr,d,1,value7);end;
if c >= 0 then begin text_setlocation(txt,d,1,value9);end;
if c >= 0 then begin text_setlocation(txts,d,1,value8);end;


plot1(c,"");

if   l<=idlow[5] then begin
        value55= TL_New(Date,Time,idlow-.95,Date,Time,idlow-1);
        TL_SetStyle(value55,0);TL_SetColor(value55,2);TL_SetSize(value55,1);
end;

if  h>=idhigh[5] then begin
        value55= TL_New(Date,Time,idhigh+.95,Date,Time,idhigh+1);
        TL_SetStyle(value55,0);TL_SetColor(value55,6);TL_SetSize(value55,1);
end;