Sample Functions

Questions about MultiCharts .NET and user contributed studies.
Darrell
Posts: 1
Joined: 19 Aug 2012

Sample Functions

Postby Darrell » 19 Aug 2012

Being rather new to MultiCharts and .Net programming, would it be possible to post several example functions written in PowerLangauge (both simple and series). Thus far I've been able to create new/modify "indicators" by opening up the existing "Indicators" using the PowerLangauge .Net Editor, but since there are no functions listed under the studies folder (and limited documentation), I'm having trouble getting started creating any new functions. Although the templates appear useful, if I could just view a few sample functions it would really help.

By the way, thus far I've been very impressed with MultiCharts.Net...

Thanks,

Xyzzy
Posts: 162
Joined: 19 Mar 2011
Has thanked: 43 times
Been thanked: 79 times

Re: Sample Functions

Postby Xyzzy » 21 Aug 2012

Ditto for the request.

Better yet, could you just make all of the C# source code for the built-in functions available? The PowerLanguage source code for the functions has always been available in the "regular" version of MultiCharts, and it's been a helpful resource to study.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Sample Functions

Postby TJ » 21 Aug 2012

viewtopic.php?f=19&t=10679&p=52999#p52999
Hello,

Functions are not documented yet. We plan to provide the source code and description of the functions in the next version.

Xyzzy
Posts: 162
Joined: 19 Mar 2011
Has thanked: 43 times
Been thanked: 79 times

Re: Sample Functions

Postby Xyzzy » 21 Aug 2012

Thanks TJ. For what it's worth, it's possible to "reverse engineer" the functions for now by running a decompiler on the file \StudyServer\Techniques\CS\bin\Debug\PLBuiltInFunctions.dll. I've had reasonably good results using ILSpy:

http://wiki.sharpdevelop.net/ILSpy.ashx

Of course, the functions are subject to change between now and the next version, since they're undocumented.

I hope that nobody at MultiCharts takes offense at decompiling -- feel free to delete this post if you consider it inappropriate.

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Sample Functions

Postby Dave Masalov » 22 Aug 2012

Xyzzy,

Decompiling the functions will result in having functions code displayed not in the best way. We are working on the functions code at the moment. I would suggest you to wait one or two weeks until functions source code is available.

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: Sample Functions

Postby Emmanuel » 23 Aug 2012

Hi Dave,

We need the source code of the functions in VB as well.

Thank you

Emmanuel

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Sample Functions

Postby Dave Masalov » 23 Aug 2012

Hello Emmanuel,

We will provide some VB.NET samples. Also, you will be able to convert functions source code from C# to VB.NET using a converter like Reflector.

dahmen walter
Posts: 73
Joined: 19 Oct 2007
Has thanked: 46 times
Been thanked: 4 times

Re: Sample Functions

Postby dahmen walter » 25 Aug 2012

Hi Dave,

We need the source code of the functions in VB as well.

Thank you

Emmanuel
You may want to try http://converter.telerik.com/

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: Sample Functions

Postby Emmanuel » 27 Aug 2012

Thank you dahmen

This http://converter.telerik.com/ is really cool !!!! and usuful !!!!!

It 's really a good idea !!!

Emmanuel

rsquared
Posts: 3
Joined: 20 Apr 2012
Been thanked: 1 time

Re: Sample Functions

Postby rsquared » 16 Sep 2012

Greetings Dave --
Hello,

Functions are not documented yet. We plan to provide the source code and description of the functions in the next version.
Do you have an ETA on when the next version will be available. We're all still very interested in the source code for these functions.

Cheers!

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Sample Functions

Postby Dave Masalov » 17 Sep 2012

Hello rsquared,

I cannot give you any exact date yet. There is a couple of issues that should be fixed before the release.
Greetings Dave --
Hello,

Functions are not documented yet. We plan to provide the source code and description of the functions in the next version.
Do you have an ETA on when the next version will be available. We're all still very interested in the source code for these functions.

Cheers!

User avatar
Stan Bokov
Posts: 963
Joined: 18 Dec 2009
Has thanked: 367 times
Been thanked: 302 times

Re: Sample Functions

Postby Stan Bokov » 20 Sep 2012

MC .NET 8.1 will probably be released early next week (it'll include scripts for all used functions).


Return to “MultiCharts .NET”