Gamestudio Links
Zorro Links
Newest Posts
IG plugin initial release
by sodiumchloride. 09/22/20 20:53
Using STL in Zorro strategies
by AndrewAMD. 09/22/20 17:01
Rubbish data from Yahoo
by DanielX. 09/22/20 14:37
assert
by Grat. 09/22/20 12:14
MT4 - use more Zorro script
by Grat. 09/22/20 06:49
Single advise model for portfolio
by jmlocatelli. 09/21/20 19:41
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (danatrader, Grat, Dooley, kvm), 466 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
NewBorn, 3dvg, secretagentman, distribution, EditeY
18515 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: 249
D
danatrader Online OP
Member
danatrader  Online OP
Member
D

Joined: Mar 2019
Posts: 249
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,343
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,343
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: 249
D
danatrader Online OP
Member
danatrader  Online OP
Member
D

Joined: Mar 2019
Posts: 249
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,343
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,343
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: 249
D
danatrader Online OP
Member
danatrader  Online OP
Member
D

Joined: Mar 2019
Posts: 249
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: 249
D
danatrader Online OP
Member
danatrader  Online OP
Member
D

Joined: Mar 2019
Posts: 249
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