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
1 registered members (degenerate_762), 1,098 guests, and 2 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
Page 1 of 2 1 2
Z12 - Open trades not found after restart #482020
12/07/20 11:17
12/07/20 11:17
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Hello to the Community.

Could someone help me to understand what is wrong?
(For better understanding see also the annexed file)

I’ve Zorro 2.30 running Z12 on my PCs;

I stop the trading on Saturday morning, when markets are closed;

When I restart to trade on Sunday evening, when markets are still closed but ready to open, Zorro seems unable to found “all” the previous trades opened in the past, even if the old trades are still opened and appear on the terminal (MT5);

Don’t worry, lets Zorro run: Once the markets start, some other positions are correctly opened and appear on the terminal, but strange looping messages are shown on the “Experts” tab of the terminal: the open positions are unknown to Zorro…because (seems) there is a discrepancy between “ticket” and “order” number;

Three weeks of test, three stop and start on the weekend, three times the same behaviour;

Tested with two different brokers, with different leverages, one real account and two demo account, on a laptop and on a workstation, single and multiple Zorro’s instances, in the same PC or separately: same behaviour as above described.

Suggestions?
Thank you

Attached Files real-1.jpg
Re: Z12 - Open trades not found after restart [Re: dpn] #482021
12/07/20 11:29
12/07/20 11:29
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
I would try the beta, there where some issues in the last versions on resuming trades.
Make backup of your folder and copy Beta version over it and try again.

Make backup of your *.trd files too (all of them).

Re: Z12 - Open trades not found after restart [Re: danatrader] #482022
12/07/20 11:36
12/07/20 11:36
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Thank you, danatrader

I will try soon.

Re: Z12 - Open trades not found after restart [Re: dpn] #482023
12/07/20 11:41
12/07/20 11:41
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Be aware, you can only resume the trades of one trd file.
So maybe consider that, the more trades are opened with resume not working, the more you may loose.

Re: Z12 - Open trades not found after restart [Re: danatrader] #482025
12/07/20 14:15
12/07/20 14:15
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Done.

Updated with latest version 2 34 1,
the trd files have been restored in the proper folders,
old MT5 plugin overwritten.

It seems that only phantom trades are acknowledged (ref. annexed).

Bad story

Probably, last "STOP TRADE" command has definitely overwritten the old TRD files, so the previous trd file containing the "NOT FOUND" trades is probably lost .

Thank you very much for your support, but I think it would be better to close manually all the open trades and start again, with the latest version of Zorro.

Attached Files updated 2020-12-07 145535.jpgupdated1 2020-12-07 145812.jpg
Re: Z12 - Open trades not found after restart [Re: dpn] #482026
12/07/20 15:03
12/07/20 15:03
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
My hint, don't close, set a apropriate SL and trail on the unmanaged trades.
And set up some daily copy of *.trd files appending date / time.

Last edited by danatrader; 12/07/20 15:05.
Re: Z12 - Open trades not found after restart [Re: danatrader] #482027
12/07/20 18:18
12/07/20 18:18
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Ok, you are right danatrader,

On the real account I'll follow your hint.

On the demo accounts I have closed all the trades (not found and phantom), killed all the orphaned trades on the terminal, re-tested Z12 with the new capital and restarted Zorro, in order to see quite soon, on next week end, if the problem will be still present or not. I will keep you informed.

Ok for the daily copy of *.trd files, but...i know the old DOS command "append": is there a similar function also for Zorro? I must deeply study the manual.


Thank you &
Best regards

Re: Z12 - Open trades not found after restart [Re: dpn] #482031
12/08/20 20:27
12/08/20 20:27
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
I use that in my run function, just some rough thing, not very sophisticated.
But not possible with Z12

if(day(0) != day(1) and Live) //save trd file once per day
file_copy("C:\\Users\\Administrator\\Desktop\\TRD\\MyStrategy\\MyStrategy.trd", "C:\\Users\\Administrator\\Desktop\\Zorro\\Data\\MyStrategy.trd");


adding a date in cmd is awkward, just use some simple freeware / opensource tool.

The above folder is then synced to my clouddrive.

Re: Z12 - Open trades not found after restart [Re: dpn] #482041
12/10/20 12:18
12/10/20 12:18
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Zorro automatically continues all open trades. So the problem has a different reason that you can see in the log. For instance, removing the .trd file, or continuing the same script on a different account.
Anyway stopping a live trading system with no good reason is a bad idea. But when it still accidentally happens, don't restart it on the weekend. Wait until Monday. On the weekend broker servers might be offline and therefore history not available and trades not be recognized.

Re: Z12 - Open trades not found after restart [Re: jcl] #482046
12/10/20 20:15
12/10/20 20:15
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Hello, JCL

I will follow your hint;

certainly the problem is from my side, but it is not so easy to found the solution when the cause is unknow;

for example, after a sincronized restarting of 2 Zorro instances running Z12, two MT5 running, the result is that:
- in one MT5 the "expert" tab is full of Zorro' complaints; it seems that the orders have 10 digits and the tickets only 9, so Zorro cannot find the entered trades.
- In the other MT5 it seems all ok, for now.
(ref.annexed)

suggestions are appreciated.

Thanks

Attached Files 1A.jpg1B.jpg2A.jpg2B.jpg
Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1