C# questions

Questions about MultiCharts .NET and user contributed studies.
simon007
Posts: 60
Joined: 12 Apr 2007
Has thanked: 7 times
Been thanked: 1 time

C# questions

Postby simon007 » 09 Jan 2013

Hi @,

I have a few questions about the MC .net;

1) can you use functions from external library's(dll's)? even if the have inputs of vector datatype

2) can you access and use com objects?


Best regards,

Simon

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

Re: C# questions

Postby Henry MultiСharts » 09 Jan 2013

Hello Simon,

1) That is possible to do that via a wrapper dll, where you need to copy the array data from .net to std::vector.
2) For COM dll reference instructions please refer to this page.

FB2013
Posts: 20
Joined: 12 Mar 2013
Has thanked: 3 times
Been thanked: 5 times

Re: C# questions

Postby FB2013 » 01 Apr 2013

My question is about the class structure.

I noted that there are two different ways to implement a function.
1. is a class inherited from FunctionSimple<T> which seems to me self explanatory.
2. is a static class acting as a IInstrumentExt e.g. the Range Function which seems a good way to perform operation on ISeries object.

I tried to understand how the 2. instance of a function is recognized as an extenstion to the IInstrument because there is no in heritance to that ?

Is there a third way to implement a function ?

Best Regards
Franz

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

Re: C# questions

Postby Henry MultiСharts » 04 Apr 2013

Franz, this is a general C# question, not related to MultiCharts .Net. Function, Signal and Indicator are abstract "forms" we have added for ease of use. The heart of any study in MC .Net is a class, like in regular C#.


Return to “MultiCharts .NET”