Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 15,897 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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