The basic code goes something like this, (which does compile in an indicator. but will not compile in an Add-On):
private void TimerEventProcessor(Object source, System.Timers.ElapsedEventArgs eventArgs)
{
TriggerCustomEvent(myCustomHandler, 0);
}
private void myCustomHandler (Object state)
{
// update some class member variables
}
Comment