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.
Function Example [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Function Example [SOLVED]
Hello JohnR,
The code of the functions has been exposed in MultiCharts .Net 8.1 beta 1.
Please install this version for code examples.
The code of the functions has been exposed in MultiCharts .Net 8.1 beta 1.
Please install this version for code examples.
Re: Function Example
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
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
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Function Example
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.
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.
Re: Function Example
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?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Function Example
Hello JohnR,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?
Functions are not in VS solution, they are built-in in PLEditor.
That means they cannot be seen in Visual Studio.