I am currently writing error-handling code for my strategy. One of the thing I have done (& it works ok) is to register my own PowerModeChangeEventHandler() to deal with PC going 'Suspended' on UPS signaled power failures.
Since I didn't use TriggerCustomEvent() in doing this, and my code works OK, I am wondering what is the real purpose of this TriggerCustomeEvent() - is it just limited to mapping CurrentBar/High/Low/etc. dataseries to a particular timeframe/bar series (which isn't really required as long as one is using the multi-timeframe CurrentBars[]/Highs[]/Lows[]/etc), or does it do more than this, and if so what ?
Thanks in advance
Dominique
Comment