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
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 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
Regain control of lost trades #481126
08/07/20 10:05
08/07/20 10:05
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
If I have the feeling Zorro lost contact to open trades, is it possible to regain control of them?
E.g. I have the algo name on the order comment, is it possible to scan for open trades holding a comment, compare what Zorro knows and put them under control again?

Re: Regain control of lost trades [Re: danatrader] #481128
08/07/20 10:55
08/07/20 10:55
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Scanning for open trades on the broker account is planned, but not yet implemented. Until then, if you want to put an open trade under Zorro control, you must do it manually using the enterTrade function of Zorro 2.30.

Re: Regain control of lost trades [Re: danatrader] #481130
08/07/20 11:10
08/07/20 11:10
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
Actually I was just thinking, how it may happen.
So when restarting Zorro with already open positions, cancelling the restart before the resume happend, Zorro saves the actual trades in the trd file, so it saves the trades of the last run, which is before the resume of already open trades, basically having many open, saving 0 open, then thery are lost.


So in my case, if my suspicion is right, server didn't answer in time for the actual prices, skipping the price download.
So restart was needed, which maybe resulted in overwriting the trd file.

Last edited by danatrader; 08/07/20 11:15.
Re: Regain control of lost trades [Re: danatrader] #481132
08/07/20 11:31
08/07/20 11:31
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Trades are normally not saved when the script did not start due to an unresponsive server. But if they are, you can get them from the .bak file.

Re: Regain control of lost trades [Re: danatrader] #481133
08/07/20 11:39
08/07/20 11:39
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
Yes, thought about the bak file, just a bit scared to mess it up more.
I learned my lesson, make changes on weekend only frown

Re: Regain control of lost trades [Re: danatrader] #481135
08/07/20 11:50
08/07/20 11:50
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
Actually new trades were since yesterday already opened, actually 26 trades seem to be under control of two Zorro instances, 68 trades open on the account all Zorro initiated.

So it seems for now I lost 42.

Sadly, closing them out isn't the problem, just restarting the strategy always bears according to my understanding always a higher risk then just letting it run (of course run controlled).

Last edited by danatrader; 08/07/20 13:20.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1