NinjaScript > Language Reference > Data >
This method provides a way to use your own custom events (such as a Timer object) so that internal NinjaScript indexes and pointers are correctly set prior to processing user code triggered by your custom event. When calling this event, NinjaTrader will synchronize all internal pointers and then call your custom event handler where your user code is located.
Method Return Value
This method does not have a return value.
TriggerCustomEvent(CustomEvent customEvent, int barsIndex, object state)