Pmms get strategy named num function

Questions about MultiCharts and user contributed studies.
multichartsUser23
Posts: 15
Joined: 02 Mar 2018
Has thanked: 3 times

Pmms get strategy named num function

Postby multichartsUser23 » 01 Nov 2018

Hi guys,

For the life of me, I cannot get the above function to work for me.

I have a Portfolio Trader workspace loaded up with 1 strategy utilizing 2 signals (one an entry, the other an exit).

The entry signal has a variable called "value1" that, for the sake of ease, I set equal to 2.

I then use a Money Management signal (via Portfolio Settings window) with the following code:

Code: Select all

print(pmms_get_strategy_named_num function(0,"value1"))
to attempt to print this value of 2, but it will only print "0."

Can someone please tell me what I'm doing wrong here?

Thanks!

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

Re: Pmms get strategy named num function

Postby Henry MultiСharts » 02 Nov 2018

Hello multichartsUser23,

You need to use pmm_set_my_named_num to set the variable value that can be accessed by the PMMS.


Return to “MultiCharts”