Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 1,151 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Delay between entering trades? #461345
08/02/16 15:55
08/02/16 15:55
Joined: Aug 2016
Posts: 27
M
MaskOfZorro Offline OP
Newbie
MaskOfZorro  Offline OP
Newbie
M

Joined: Aug 2016
Posts: 27
I'm running the Zorro script below as a test through the demo MT4 bridge on a MT4 demo account. It's running, but I'm experiencing behaviour that I can't find any reference to in the manual. The script is supposed to open a trade on every 1 minute bar across multiple assets, and I'm receiving 15 second delays between trades being opened, i.e. on the minute mark it will open EUR/USD, then 15 seconds will pass and it will open GBP/USD, then another 15 seconds etc. down the list of assets in the loop. I would expect them to all open at roughly the same time, barring some minor lag from latency, computation etc.; this is obviously not the case as the 15 second delay is absolutely consistent. So if I'm trading 5 assets, the 5th asset on the list will be opened an entire bar late. While this is just a test script, I have the same problem with a genuine strategy that trades on signals - if two assets receive a trading signal on the same bar, which happens frequently as I'm trading 5-minute binaries, there is this same 15 second delay.

Is this issue a limitation of free Zorro, the free MT4 bridge or an issue with MT4 itself?

Quote:
function Trade()
{
vars Price = series(price());

if(Price[0]<Price[1])
enterShort(20);
else if(Price[0]>Price[1])
enterLong(20);
}

function run()
{
BarPeriod = 1;
LookBack = 100;
NumWFOCycles = 20;
NumCores = -1;

EntryDelay = 0;

while(asset(loop("EUR/USD", "GBP/USD", "XAU/USD")));
Trade();

}

Last edited by MaskOfZorro; 08/02/16 15:59.
Re: Delay between entering trades? [Re: MaskOfZorro] #461379
08/03/16 12:44
08/03/16 12:44
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
There is no real reason for a 15 seconds delay. I've not yet heard of such a phenomenon. Maybe it's the time that this particular broker needs for opening the trade? Can you test with a different broker?

Re: Delay between entering trades? [Re: jcl] #461388
08/03/16 15:13
08/03/16 15:13
Joined: Aug 2016
Posts: 27
M
MaskOfZorro Offline OP
Newbie
MaskOfZorro  Offline OP
Newbie
M

Joined: Aug 2016
Posts: 27
Ok, I've figured out I had accidentally left the ZorroRespond() in the BUY case commented out from my testing of Zorro.mq4 and this was preventing Zorro from proceeding to the next asset.

Thanks.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1