Gamestudio Links
Zorro Links
Newest Posts
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
What are you working on?
by rayp. 07/24/26 22:58
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
New Zorro version 3.11
by jcl. 07/21/26 13:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,501 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Event on trade open #488910
09/14/25 12:15
09/14/25 12:15
Joined: Jan 2022
Posts: 79
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 79
Budapest
Hello,

Sometimes I need to run an event when a pending order is fulfilled at a certain price, for example make an API call or something.
  • The run() runs at every bar end, which is not fast enough, so checking with for(current_trades) is late.
  • TMF function could make it, but I don't want to manage the trade myself.
  • The call method don't have this event:

Quote

call (int Mode, void* Function, int P1, var P2)
Mode - Run the function: 1 when the system is idle, 2 at the next incoming tick, 4 after closing a trade, +16 for repeating.


Do you have other ideas how to do it?

Last edited by NorbertSz; 09/14/25 12:15.
Re: Event on trade open [Re: NorbertSz] #488912
09/14/25 12:58
09/14/25 12:58
Joined: Jan 2022
Posts: 79
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 79
Budapest
Solution:
I can check the trade if it's open it in the tick() function.

Last edited by NorbertSz; 09/14/25 12:58.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1