USE OF “RATING” IN SELL RULES

I am working on a Sim that uses a value-focused ranking system, with a fairly long hold time target (3-4 months). To help reduce the number of “Value Traps” selected, I added a price-momentum factor to the RS and results improved.

However, when the Sell Rules include the same ranking system (i.e., Rank<95), many stocks are being sold before they become “fully valued,” which I don’t want. This is occurring primarily because when price momentum slackens from time-to-time, a stock’s rank can decline relative to other stocks, resulting in a too-early sale.

The clear solution would be to use the “Rating” command in the Sell Rules, which would allow for the use of the base RS with the momentum factor excluded. Therefore, I used this Sell rule which refers to my Ranking System without the momentum factor:

Rating(“TurboValue”)<95

However, I’m getting this error message: [color=red]Error in Sell Rule ‘Rating’: Error near ‘�TurboValue�’: Invalid command ‘�TurboValue�’[/color]

In trying to troubleshoot the problem and considering the possibility that the Sim is not seeing my RS, I tried this rule, taken straight out of the p123 documentation on “rating”:

Rating(“Momentum Value”)<80

I get the same problem, with this error message: [color=red]Error in Sell Rule ‘Rating’: Error near ‘�Momentum’: Invalid command ‘�Momentum’[/color]

I’m wondering if there was a change to the “Rating” command or am I just missing something? I would appreciate any suggestions.

Thanks,

Chris

Chris,

in your (sell) rules, every character counts: spaces, kind of quotation marks, …
Did you check this?

Matthias

Thanks, Mathias!

I noticed that my quote marks were of the slanted variety that is standard on Macs (which I’m using for this project). I had forgotten that the quote marks have to be of the straightforward, rudimentary type, so I re-typed the rule in a text editor and viola, problem solved!

I wonder how often this issue affects others? Nuisance!

Chris