Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to delay entering / closing trade at certain time #480144
05/21/20 22:52
05/21/20 22:52
Joined: May 2020
Posts: 14
London
H
happysun Offline OP
Newbie
happysun  Offline OP
Newbie
H

Joined: May 2020
Posts: 14
London
Hello,
My script's BarPeriod=60, so it enters / closes trades on hourly basis. But I have problem entering / closing trades at New York closing time (EST 17:00) as at that time the market is closed for a few seconds and also the spread is very high. How can I delay trade entry / closing at this time (only at this time) for say 1 minutes?
Many thanks

Re: how to delay entering / closing trade at certain time [Re: happysun] #480149
05/22/20 04:33
05/22/20 04:33
Joined: Dec 2014
Posts: 204
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 204
Germany
The Parameters you are looking for are BarOffset or FrameOffset!

Re: how to delay entering / closing trade at certain time [Re: happysun] #480150
05/22/20 05:03
05/22/20 05:03
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Or use BarPeriod = 15; and Timeframe to create 60 Min bars.
Than you can close out early by 15 minutes.

Re: how to delay entering / closing trade at certain time [Re: danatrader] #480157
05/22/20 09:57
05/22/20 09:57
Joined: May 2020
Posts: 14
London
H
happysun Offline OP
Newbie
happysun  Offline OP
Newbie
H

Joined: May 2020
Posts: 14
London
Thank you for the advice! But this way [use BarPeriod = 15; and Timeframe to create 60 Min bars] will effect all my trade entry/close, so all my trades are shifted, but I only want to change the timing for this particular hour: EST 17:00

Re: how to delay entering / closing trade at certain time [Re: happysun] #480158
05/22/20 11:41
05/22/20 11:41
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Use Tick with a TMF that closes at that time maybe.
Or shift Timezone.

Last edited by danatrader; 05/22/20 11:41.
Re: how to delay entering / closing trade at certain time [Re: happysun] #480160
05/22/20 12:20
05/22/20 12:20
Joined: Dec 2019
Posts: 53
ozgur Offline
Junior Member
ozgur  Offline
Junior Member

Joined: Dec 2019
Posts: 53

Re: how to delay entering / closing trade at certain time [Re: happysun] #480170
05/23/20 11:51
05/23/20 11:51
Joined: May 2020
Posts: 14
London
H
happysun Offline OP
Newbie
happysun  Offline OP
Newbie
H

Joined: May 2020
Posts: 14
London
Many thanks guys for all your advice. In the end I decide to split my script into 2: one filter out EST 17:00 hour completely and another I use BarPeriod=30 to trade only at EST 16:30 hour. I have tried using TimeFrame to put both feature into one script but the results are not as good. My experience is that there are many surprises in TimeFrame feature and can produce unexpected results, difficult to debug. So two scripts solved my issue.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1