Gamestudio Links
Zorro Links
Newest Posts
A3 projects
by Yopachi. 09/27/26 06:08
3D Game-Studio on Android!!!
by ratz. 09/26/26 21:25
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 09/22/26 12:21
Capital slider is not saving in Z12
by Petra. 09/22/26 06:49
Parent/child object
by VoroneTZ. 09/22/26 05:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Yopachi), 3,085 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Yopachi, Knull, Opus, Jubilee, lopezsergio07
19241 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Exiting unfilled GTC orders per script #486281
07/12/22 18:56
07/12/22 18:56
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
in run(), I check if a GTC order is unfilled in a trade enumeration loop. If it is, I want to cancel it. I tried doing exitTrade(ThisTrade) but I've noticed that Zorro then tries to "close" this position by sending another order with Amount = 0 through BrokerBuy2 (NFA), when in reality it should simply cancel the order and not place another one. DO_CANCEL is implemented for that purpose but not called here.

Is there a correct way of canceling GTC orders that are completey unfilled thus far? (without using OrderDuration)

Re: Exiting unfilled GTC orders per script [Re: MegaTanker] #486286
07/13/22 08:33
07/13/22 08:33
Joined: Jul 2000
Posts: 28,135
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,135
Frankfurt
Call DO_CANCEL directly. exitTrade would also close any partially filled amount.

It was already suggested that we implement easier order control. This will be done in a future version.

Re: Exiting unfilled GTC orders per script [Re: MegaTanker] #486287
07/13/22 10:19
07/13/22 10:19
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Alright, thanks. That is good to hear


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1