Regain control of lost trades

Posted By: danatrader

Regain control of lost trades - 08/07/20 10:05

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?
Posted By: jcl

Re: Regain control of lost trades - 08/07/20 10:55

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.
Posted By: danatrader

Re: Regain control of lost trades - 08/07/20 11:10

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.
Posted By: jcl

Re: Regain control of lost trades - 08/07/20 11:31

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.
Posted By: danatrader

Re: Regain control of lost trades - 08/07/20 11:39

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
Posted By: danatrader

Re: Regain control of lost trades - 08/07/20 11:50

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).
© 2024 lite-C Forums