Accessing symbol mapping of custom future through code

Questions about MultiCharts .NET and user contributed studies.
fabz
Posts: 4
Joined: 16 Mar 2015

Accessing symbol mapping of custom future through code

Postby fabz » 01 Apr 2015

Hello,

is there any chance to access the symbol mapping of a custom future through code?

I'm asking for it because i'm using a lot of custom futures to build continuos contracts so i do not have to care for the different rollover dates. That really works fine but sometimes i forget to map the corresponding broker symbol when a rollover takes place.

In order to prevent me of this mistake i would like to automatically check if the mapped broker symbol is still valid or expired.

Thanks in advance and kind regards,
Fabian

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

Re: Accessing symbol mapping of custom future through code

Postby Henry MultiСharts » 02 Apr 2015

Hello Fabian,

There is no access to symbol mapping from the code. You can get symbol's expiration date using IInstrumentSettings.Expiration Property.


Return to “MultiCharts .NET”