Simpler workaround fix for 1 minute bar that should probably work -
- Maintain Two 1-minute bars in processRTDData() - This function is called by RTD. When ltt minute changes swap minute. This will ensure both minute are seperate and correct. So the current bar reset code will also move here from amibrokerPoller() and only needs to be called for new minute bar when switching.
- amibrokerPoller() will simply take both minutes if not empty and send them to AB. No need to check ltt - this will cause duplicate imports to AB ... should be ok.
- Maintain Two 1-minute bars in processRTDData() - This function is called by RTD. When ltt minute changes swap minute. This will ensure both minute are seperate and correct. So the current bar reset code will also move here from amibrokerPoller() and only needs to be called for new minute bar when switching.
- amibrokerPoller() will simply take both minutes if not empty and send them to AB. No need to check ltt - this will cause duplicate imports to AB ... should be ok.