Start and end time to a code

Algyros

Newbie
Messages
5
Likes
0
A while ago, zt3k was generous enough to share the code needed to set a start time to a tradestation Pivot Reversal code. I would be extremely grateful if zt3k, or some other generous soul, could help me figure out how to set an end time to the same code.

What I have, and which works great, is this (thanks to zt3k):

input:
starttime(930);

if time >= starttime then
begin
.... {put your pivot code here}
end;


What I would like is to add an end time to the same Pivot Reversal code.
Thanks,
Alex
 
Last edited:
all you need is to add the end time...


Code:
input: 
starttime(930),
endtime(1615); 

if time >= starttime 
and time <= endtime
then begin 
.... {put your code here} 
end;
 
That works. Thank you very much.


all you need is to add the end time...


Code:
input: 
starttime(930),
endtime(1615); 

if time >= starttime 
and time <= endtime
then begin 
.... {put your code here} 
end;
 
Top