Detect data connection lost and send email alert.

Questions about MultiCharts .NET and user contributed studies.
christephan
Posts: 17
Joined: 04 Dec 2014
Has thanked: 2 times
Been thanked: 3 times

Detect data connection lost and send email alert.

Postby christephan » 16 May 2016

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Detect data connection lost and send email alert.

Postby Henry MultiСharts » 17 May 2016

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.


Return to “MultiCharts .NET”