Importing Indicators from a DLL  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
mcnet_voisin
Posts: 7
Joined: 10 Jan 2017

Importing Indicators from a DLL

Postby mcnet_voisin » 18 Apr 2017

Hi all,

I created an external library in which I defined indicators that inherit from Powerlanguage.Indicator.IndicatorObject. However, when I try to use them in a Signal Class ( I reference the dll ) through the AddIndicator method, the indicators cannot be accessed - they are not even instantiated. What solutions do you suggest ? How can MC.NET have access to indicators that are created in an external library ?

Thanks in advance,

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: Importing Indicators from a DLL

Postby Angelina MultiСharts » 21 Apr 2017

Hello mcnet_voisin,

It is required to create a class-wrapper for your DLL, Then create an indicator based on that class, and connect it.

mcnet_voisin
Posts: 7
Joined: 10 Jan 2017

Re: Importing Indicators from a DLL

Postby mcnet_voisin » 21 Apr 2017

Hi,

Thank you Angelina, could you provide an example for more clarity ?

mcnet_voisin
Posts: 7
Joined: 10 Jan 2017

Re: Importing Indicators from a DLL

Postby mcnet_voisin » 21 Apr 2017

If I understand correctly, I must create in MC an Indicator that inherits from DLL_Indicator and my DLL_Indicator must inherit from Powerlanguage.Indicator.IndicatorObject ?

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: Importing Indicators from a DLL

Postby Angelina MultiСharts » 25 Apr 2017

If I understand correctly, I must create in MC an Indicator that inherits from DLL_Indicator and my DLL_Indicator must inherit from Powerlanguage.Indicator.IndicatorObject ?
Yes, that is correct.

Maybe some of the users can share the examples?

mcnet_voisin
Posts: 7
Joined: 10 Jan 2017

Re: Importing Indicators from a DLL  [SOLVED]

Postby mcnet_voisin » 04 May 2017

No worries, figured it out !


Return to “MultiCharts .NET”