Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
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