Help re Plotting High of (eg.) First Hour

evostik

Well-known member
337 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
 

KarlaF

Junior member
26 1
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;
 
AdBlock Detected

We get it, advertisements are annoying!

But it's thanks to our sponsors that access to Trade2Win remains free for all. By viewing our ads you help us pay our bills, so please support the site and disable your AdBlocker.

I've Disabled AdBlock