This is a simple script that looks back 6 months to screen for a higher price.
I need to find the top performing stocks for the period.
I was able to do it using /SetPositionPriority/ in Wealth lab 4 but I can't find a way to do it in 5.4
Any suggestions?
CODE:
Please log in to see this code.
Size:
Color:
QUOTE:
I was able to do it using /SetPositionPriority/ in Wealth lab 4 but I can't find a way to do it in 5.4
Hint: Hit F11 for the QuickRef tool, type in
Priority to see how have SetPositionPriority transformed in WL5. In pseudocode:
CODE:
Please log in to see this code.
Size:
Color:
Where do I add this and what is the correct identifier
Thanks
Size:
Color:
It was meant to be a drop-in replacement for your string starting with "BuyAtClose..."
For more details and a complete code example, see the QuickRef tool.
Size:
Color:
I´d like to give my positions a certain priority criteria. However, I get these messages:
QUOTE:
Error processing symbol TKA GY Object reference not set to an instance of an object.
Error processing symbol VOW3 GY Object reference not set to an instance of an object.
This is the code:
CODE:
Please log in to see this code.
What am I doing wrong?
Size:
Color:
To quote the
Wiki FAQ on "Object reference not set to an instance of an object":
QUOTE:
Note: this is a pretty multifaceted error message - it can happen outside of a Strategy. But should you experience the run-time error in your Strategy telling you that "Object reference not set to an instance of an object", you need to know that there's a variable that has not been initialized, in other words it's null. Either you haven't assigned a value to some variable, or a method/function that you called has set the variable to null.
It's a too generalized error, and chances are the Priority is out of question; I suggest creating a new topic.
Size:
Color:
This error is only happening when I enable the line
CODE:
Please log in to see this code.
Size:
Color:
...and it is being enabled incorrectly. Should be:
CODE:
Please log in to see this code.
Size:
Color:
OIC, that makes sense.
Size:
Color: