Tradestation coding

Hedward

Newbie
Messages
1
Likes
0
Hi. I"m brand new to this forum and I came here with a question that is probably pretty simple for most of you. How would I code for a system to trade only during market hours, 8:30am CST to 3pm CST? I can seem to figure it out and any help would be appreciated. Thank you>
 
Hi Hedward,

Welcome to the forum! To trade only during market hours use the following code,

If time > 830 and time < 300 then begin
Your code here
End;
Which market are you trading ?

Prathap
 
Hi Hedward,

small correction...

If time >= 830 and time < 1500 then begin
Your code here
End;

Manigandan.
 
Top