model positions overlap

I have 2 models that I rely on. However, occasionally they have overlap in holdings. Is there a rule that can be used to see if a new holding is already part of another live portfolio, avoid that and buy the next highest ranked security?

Use:
Portfolio(id1[, …, id10])
Return TRUE if stock being analyzed is held in the portfolio(s). Use either the portfolio name in quotes, or the numerical id.

Aslso see:
https://www.portfolio123.com/mvnforum/viewthread_thread,11690

That’s really awesome Georg. So it is true, how do we go about doing the 2nd part?

Just set it to False as a buy rule:

Portfolio(XXXXXX)=False

The normal behavior of the strategy tool is that if a stock does not meet any buy rule then it will stop considering it and move on to the next higher ranked stock. The Portfolio function will evaluate to true for any stock held in the indicated strategy, so demanding that it is false will make the strategy that you’re working on skip it and go on to the next candidate.

that’s awesome paul. thank you

I would recommend doubling down on overlapped stocks. If one system found it a great buy, wouldn’t 2 systems be even better?