Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EntryDelay Clarification #467663
08/20/17 01:26
08/20/17 01:26
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
According to the manual when setting up EntryDelay and an entry limit the trade opens either after the given delay time (default: 0 - no entry delay), or when the entry limit is met.

Doing following:

set(TICKS);
BarPeriod = 1440;

LifeTime = 10;
Entry = -1*PIP;
EntryDelay = 20000;

enterLong();

This should open a long trade a soon as the price decreases by 1 pip or if that does not happen open the trade after 20000 seconds.

I could not figure out how this works.

When I set up both the Entry is just ignored and I get the same result as if I only used EntryDelay on its own.

As an example some trades open just 1 minute after the bar opens when setting up Entry only. If I set up EntryDelay too this very same trade opens after 20000 seconds.
Shouldn't the trade open after 1 minute already as the entry limit was fulfilled first?

Attached the script I used.

Cheers

Attached Files
entrydelay.c (3 downloads)
Re: EntryDelay Clarification [Re: Ger1] #467672
08/20/17 17:07
08/20/17 17:07
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
Could it be because EntryDelay is larger than EntryTime, causing the pending order to be canceled?
http://zorro-project.com/manual/en/timewait.htm

Re: EntryDelay Clarification [Re: Dalla] #467673
08/20/17 20:11
08/20/17 20:11
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
Thanks for your reply Dalla.

EntryDelay is in seconds whereas EntryTime is in bars (by default 1, in my case that's one day). 20000 sec is about 5.5 hrs so that's smaller than EntryTime. I also tried different numbers but the effect of EntryDelay overriding Entry is always the same.

Have you got any other guess what could cause this?

Re: EntryDelay Clarification [Re: Ger1] #467680
08/21/17 12:16
08/21/17 12:16
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I would also expect that the Entry limit is hit before the Entry delay. At least, so I understand the manual. Otherwise it would be a bug. I'll forward this to the developers for looking into it.

Re: EntryDelay Clarification [Re: jcl] #467681
08/21/17 13:14
08/21/17 13:14
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I got confirmation that it was indeed a bug. Entry and EntryDelay are currently mutually exclusive, but it was not intended this way. This will be fixed in the next update.

Re: EntryDelay Clarification [Re: jcl] #467689
08/21/17 22:18
08/21/17 22:18
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
Okay thx a lot for your confirmation jcl!


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1