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,
Importing Indicators from a DLL [SOLVED]
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: Importing Indicators from a DLL
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.
It is required to create a class-wrapper for your DLL, Then create an indicator based on that class, and connect it.
-
- Posts: 7
- Joined: 10 Jan 2017
Re: Importing Indicators from a DLL
Hi,
Thank you Angelina, could you provide an example for more clarity ?
Thank you Angelina, could you provide an example for more clarity ?
-
- Posts: 7
- Joined: 10 Jan 2017
Re: Importing Indicators from a DLL
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 ?
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: Importing Indicators from a DLL
Yes, that is correct.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 ?
Maybe some of the users can share the examples?
-
- Posts: 7
- Joined: 10 Jan 2017