Dear fellow oar pullers,
Robert Levy in his pioneering 1968 book, "The Relative Strength Concept of Common Stock Forecasting", suggested two approaches to running an rs portfolio, upgrade and cast out. As I understand it, SetBacktestMode(backtestRotational); implements the upgrade approach in which the best n stocks are always held as determined by something like this:
MaxPositions = 10;
SetOption("MaxOpenPositions", MaxPositions );
SetOption("WorstRankHeld", MaxPositions);
If the relevant watchlist held 100 symbols then the following would create and run a fully invested portfolio consisting of ten roughly equal positions in the ten highest ranked stocks as determined by the PositionScore variable.
SetPositionSize( 100 / MaxPositions, spsPercentOfEquity);
Whenever a stock fell below a rank of ten it would be sold and replaced by a stock ranked >= 10 that is not already held. And this would allow trimming to maintain roughly equal position sizes.
SetOption("AllowPositionShrinking", True);
Is that all correct? If so, I will post my actual question in my next message.
As always a big thank you to all!
John