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:
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?