Sell rule does not work

hi P123 staff,
I tried a few strategies with some simple sell rule, somehow it does not work, for example simple sell rules:
TICKER(“AGM”)
TICKER(“PFIE”)

Or any simple rule in the strategy, they just can’t be triggered but actually some stock’s data can match the condition.
Here is one strategy which have the issue:
https://www.portfolio123.com/sv/strategy/rebalance/1738303/transactions?op=3

Thanks
Taofen

I tried running your simulation in order to investigate the problem, and every time either PFIE or MKL was bought it was immediately sold the next week. So it seems to be doing exactly what you told it to do.

hi Yuval,
Thanks for your reply. The above link is a live strategy. Currently the strategy is holding PFIE . The sell rule TICKER(“PFIE”) should be triggered to sell PFIE if i run rebalance manually as per my understanding. However nothing happen from that rule TICKER(“PFIE”) when doing manual rebalance. You can try to run that manual rebalance on the above live strategy to see the issue.

Try using the fully qualified ticker like PFIE:USA

If that solves it then it’s caused by the "Preferred Country " in Account Settings → Country & Currency

https://www.portfolio123.com/sv/account-settings/preferences

Sorry, Ticker is not the issue. Ticker will match any ticker with those letters if country is excluded regardless of your setting

The cause is ‘Allow Immediate Buyback’ in the Rebalance section. Stock is being sold and bought right back

If you don’t want to buy PFIE in the first place, the best thing to do is put !Ticker(“PFIE”) in your buy rules or universe rules.

Thank you - Marco and Yuyal. ‘Allow Immediate Buyback’ is the cause.