Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 466 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
understanding for(open_trades) and for(all_trades) #447257
11/28/14 16:03
11/28/14 16:03
Joined: Apr 2014
Posts: 45
Germany
webradio Offline OP
Newbie
webradio  Offline OP
Newbie

Joined: Apr 2014
Posts: 45
Germany
Imagine, Zorro successfully opens a trade. After that, Zorro is closed and some time later opened again. (PC reboot etc.)

Will Zorro re-cap with broker server so that all open trades will be known within Zorro again?

What about pending trades? Zorro sends a limit order and then gets closed. While Zorro is not running, the broker might fullfill the order, but not necessarily. What will be returned by for(open_trades) and for(all_trades) when Zorro is running again?

Re: understanding for(open_trades) and for(all_trades) [Re: webradio] #447279
12/01/14 16:48
12/01/14 16:48
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Open trades will be remembered after closing and re-starting Zorro, pending and closed trades will not.

Re: understanding for(open_trades) and for(all_trades) [Re: jcl] #447439
12/11/14 21:16
12/11/14 21:16
Joined: Apr 2014
Posts: 45
Germany
webradio Offline OP
Newbie
webradio  Offline OP
Newbie

Joined: Apr 2014
Posts: 45
Germany
"pending trades will not be remembered after closing and re-starting Zorro" - lets say entryLong(0, -1.2345) is executed. Does it really send a limit buy order to broker? Does entryLong(0, 1.2345) really send a stop buy order to broker?

Please allow me yet another example. Zorro on PC "A" sends a market order and then PC "A" suddenly crashes (or powered off). I start Zorro on PC "B" with exactly the same strategy script. Will for(open_trades) know about the trade (given it has not been stopped out)?

Re: understanding for(open_trades) and for(all_trades) [Re: webradio] #447462
12/13/14 08:50
12/13/14 08:50
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A pending trade does not send something. it just waits until the entry condition is fulfilled, then the order is sent to the broker.

Open trades are stored in the .trd file and thus can be continued on another PC with another Zorro. For details look into the manual under "Trading".


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1