Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 21,112 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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