Adding Position.Priority (again)
Author: Carloseta
Creation Date: 4/21/2010 10:36 AM
profile picture

Carloseta

#1
I'm trying to add the position priority function to this script. I can't seem to get it right.

If any can add it to the script it would be helpful. If you show me the final code I can figure out what you did.

Also what does the position priority function sort by? Return or share price. It was unclear to me after reading the help.

Thank you

Carlo Seta

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Have you looked at the QuickRef example that makes it illustrative?
CODE:
Please log in to see this code.

QUOTE:
Also what does the position priority function sort by? Return or share price.

Whatever you want it to: for example, the value of an indicator at the current bar, share price. By default, it's a random value.
profile picture

Carloseta

#3
I have looked at the QuickRef but I was not able to figure it out.

I'm not a programmer so I'm struggling through it.

I assume I add my indicator where you have "... value...".

Is there a list of indicators in the QuickRef guide?

I know this is very basic to you, but it as all greek to me.

Thanks
profile picture

Eugene

#4
QUOTE:
I assume I add my indicator where you have "... value...".

You're right. See the WealthScript Programming Guide on accessing data series if you have doubts regarding the syntax.
QUOTE:
Is there a list of indicators in the QuickRef guide?

In the Wealth-Lab Wiki, Standard Indicators (+ TASCIndicators and Community.Indicators.)
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).