Portfolio Keywords in .NET

Questions about MultiCharts .NET and user contributed studies.
ManuelVene
Posts: 17
Joined: 12 Jun 2015
Been thanked: 1 time

Portfolio Keywords in .NET

Postby ManuelVene » 08 Jul 2015

Hello everyone!

I recently started going into portfolio money management signals, and I've read again and again pretty much all the related documentation.
I just started my first attempt in developing this kind of studies, and I'm already blocked. I con't figure out how, in .NET, to get info from pmms_XXXXX key words.
I guess they are PowerLanguage keywords, and that they do not work in .NET.

my question, and an answer to this should solve more or less all my problems, what would be a working version of the following line?

Code: Select all

Output.WriteLine("# of downloaded instruments: {0}", pmms_strategies_count());
it doesn't recognise the pmms_strategies_count key word, what would a .NET equivalent?

Thanks a lot!! :D

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

Re: Portfolio Keywords in .NET

Postby Henry MultiСharts » 08 Jul 2015

Hello ManuelVene,

Please find sample code attached.
Attachments
AccessToPMMData_ex.pln
(1.87 KiB) Downloaded 520 times

ManuelVene
Posts: 17
Joined: 12 Jun 2015
Been thanked: 1 time

Re: Portfolio Keywords in .NET

Postby ManuelVene » 08 Jul 2015

Hello Henry,
thanks you so much.
It was of help int the sense that with

Code: Select all

PortfolioStrategies.
I can get "Count()" method, with

Code: Select all

PortfolioStrategies[idx].
I can get some more methods like the equivalent of "pmms_strategy_deny_entries(idx)", but what if I needed the .NET equivalent of "pmms_strategy_maxiddrawdown(idx)"? I would expect something like

Code: Select all

PortfolioStrategies[idx].MaxDrawDown
but does not exist. I'm probably missing something in the way it works.

Thanks a lot again! :D

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

Re: Portfolio Keywords in .NET

Postby Henry MultiСharts » 08 Jul 2015

Please see the updated code.
Attachments
AccessToPMMData_ex_1.pln
(2.07 KiB) Downloaded 508 times

ManuelVene
Posts: 17
Joined: 12 Jun 2015
Been thanked: 1 time

Re: Portfolio Keywords in .NET

Postby ManuelVene » 09 Jul 2015

Thanks you so much, you were of great help.


Return to “MultiCharts .NET”