Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/05/26 10:06
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (vince, TipmyPip), 4,609 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 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: 73
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

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

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