Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/13/2009(UTC) Posts: 4
|
I am coding in EST to execute a buy or sell order between a specific time of the day, say between 10am-1pm.
I have tried this:
(hour() > 9) and (hour() < 14).
it doesn't seems to work.
Can someone please help?
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/13/2009(UTC) Posts: 4
|
Hello Wabbit,
Thanks for your help. One more question.
I want to reference time from 11p, ato 1am. But it seems there is something wrong with the coding
((hour() >= 22) and (Ref(hour(),+1) <= 1))
Any suggestion?
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.