Function Example  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
JohnR
Posts: 26
Joined: 05 Sep 2012
Has thanked: 2 times
Been thanked: 2 times

Function Example

Postby JohnR » 12 Dec 2012

Considering you all haven't exposed the code for functions yet, can you (multicharts folks) provide a simple and complete example of how you create and use a function in .NET (c#)?

Namely, build a function with one parameter and show how to create and call that function from within a signal and how to return a value.

This stuff was trivially easy in the power language version and it seems like it should be easy, here, too. A full on example would go a long way to helping.

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

Re: Function Example  [SOLVED]

Postby Henry MultiСharts » 12 Dec 2012

Hello JohnR,

The code of the functions has been exposed in MultiCharts .Net 8.1 beta 1.
Please install this version for code examples.

JohnR
Posts: 26
Joined: 05 Sep 2012
Has thanked: 2 times
Been thanked: 2 times

Re: Function Example

Postby JohnR » 12 Dec 2012

Great, thank you very much.

MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Re: Function Example

Postby MidKnight » 12 Dec 2012

Henry,

Can you make the function code available without needing to install the beta? I never run beta software as trading software - its a rule I never break no matter how much I want the features.

With kind regards,
MK

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

Re: Function Example

Postby Henry MultiСharts » 13 Dec 2012

MidKnight, functions are read-only and cannot be exported.
In case you are running MultiCharts .Net 64 bit you can install MultiCharts .Net 32 bit 8.1 beta 1 to check the functions code.

JohnR
Posts: 26
Joined: 05 Sep 2012
Has thanked: 2 times
Been thanked: 2 times

Re: Function Example

Postby JohnR » 13 Dec 2012

I do have one more question. After I installed the beta, I do see the functions in the power language editor (right pane). I don't see them in visual studio 2010, though, where I see signals and indicators. Are they supposed to be in that VS solution?

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

Re: Function Example

Postby Henry MultiСharts » 14 Dec 2012

I do have one more question. After I installed the beta, I do see the functions in the power language editor (right pane). I don't see them in visual studio 2010, though, where I see signals and indicators. Are they supposed to be in that VS solution?
Hello JohnR,

Functions are not in VS solution, they are built-in in PLEditor.
That means they cannot be seen in Visual Studio.


Return to “MultiCharts .NET”