Hi,
Sad that today my IB connection lost suddenly and misses opportunity.
To prevent similar accident to happen again, I search on the web and find this:
https://www.tradingcode.net/multicharts ... ata-issue/
Looks good, but it uses DataTime.Now which returns local time while my strategies all using exchange time.
Are there any built-in functions that I can translate local time to exchange time? Or how to get exchange time zone info so that I can write the functions by myself?
Or, are there better ways to deal with this issue?
I think Multicharts should have ability to alert users that a datafeed is dead.
Detect data connection lost and send email alert.
-
- Posts: 17
- Joined: 04 Dec 2014
- Has thanked: 2 times
- Been thanked: 3 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Detect data connection lost and send email alert.
Hello christephan,
Unfortunately there is no access to the time zone value of an exchange from the code.
You can manually pass the required value through the study inputs or have the values hardcoded.
Unfortunately there is no access to the time zone value of an exchange from the code.
You can manually pass the required value through the study inputs or have the values hardcoded.