logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
chickenceo  
#1 Posted : 15 years ago
chickenceo

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
wabbit  
#2 Posted : 15 years ago
wabbit

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)
chickenceo  
#3 Posted : 15 years ago
chickenceo

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
wabbit  
#4 Posted : 15 years ago
wabbit

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)
Code:
hour()>=23 or hour()<=1




wabbit [:D]

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.

information You have 1 unread message(s) in your Inbox.