Help re Plotting High of (eg.) First Hour

evostik

Well-known member
Messages
337
Likes
7
Hi all,

Could anyone please help me with understanding how to plot on a Ts2000i chart a horizontal line representing the high/low of the first 'x' minutes of the trading day?

Cheers

Steve
 
here is some code for you to play.
you can plot whatever you want..open high..etc in the morning and in the afternoon.
i like the opening price and the opening price after lunch time.
greeting
karla

input: morgens(900), nachmit(1400),ende(1800),tradedate(date),start(1061101),colmo(white),colmit(yellow);
var:tlid(0);
if date > start then begin

if date > date[1] then begin
value1=open;
end;
if time = nachmit then begin
value2 = open;
end;

if time >= morgens and time <= nachmit then begin
TLID= TL_New(Tradedate,morgens,value1,TradeDate,nachmit,value1);
TL_SetColor(TLID,colmo);
TL_setextright(TLID,False);
end;

if time >= nachmit then begin
TLID= TL_New(Tradedate,nachmit,value2,TradeDate,ende,value2);
TL_SetColor(TLID,colmit);
TL_setextright(TLID,False);
end;
end;
 
Karla

Thank you very much for this. I will load it up later.

Good Trading,

Steve
 
Top