I currently have the methods to write the files in OnTermination(). The issue with this is that it relies on me remembering to "terminate" correctly ... if for example, after many hours of processing, I shut down NT without first remembering to remove the indicator from the historical chart, it seems the files I need aren't written as desired.
Is there an alternative to OnTermination() which will let the indicator know that the last historical bar has been processed, so that the files can be written?
Thanks.
Comment