for a program, implemented as indicator, I read data from a file during live session and store it in an internal data structure. This data structure is also accessed by the incoming tick data (OnBarUpdate). To avoid conflicts, I implemented NT's TriggerCustomEvent() to handle file reading. Works fine so far, but it has changed the error handling behaviour (try-catch). Therefore my question, how does TriggerCustomEvent() execute the code handed over to it?
a) Schedules the code execution and gives back program control immediately to the user code.
b) Schedules the code execution and block the user code until the code is executed.
I would suspect a), because that would explain the current error handling behaviour.
Regards
Ralph
Comment