Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 9,184 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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: 70
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 70
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: 70
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 70
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