Index | Recent Threads | Who's Online | Search

New Thread
This topic has been viewed 371 times and has 5 replies
abwillingham
Exlude certain countries

How do I exclude companies based in certain countries? Like China.

Thanks
Tony

Aug 17, 2021 4:09:34 PM       
rtelford
Re: Exlude certain countries

Hey Tony, you can try this:
country("chn")=false

Ryan Telford -- also find me at:
Seeking Alpha
Twitter

Aug 17, 2021 5:10:31 PM       
judgetrade
Re: Exlude certain countries

by the way I exclude china in every system I am trading, the backtest is almost always better.
China ADRs are mostly not so hot :-)

Best Regards
Andreas

Aug 20, 2021 11:57:34 AM       
abwillingham
Re: Exlude certain countries

Judge, what other countries do you exclude?

Aug 21, 2021 10:34:37 AM       
abwillingham
Re: Exlude certain countries

How would you use country codes in an RS. When I try this I get an error.


***** EDIT ****
I found the problem. You have to use double quotes, not single quotes.

Next question, is this the best way to use Country status in an RS?

Attachment country.PNG (30638 bytes) (Download count: 23)


Sep 14, 2021 4:05:54 PM       
Edit 1 times, last edit by abwillingham at Sep 14, 2021 4:23:20 PM
yuvaltaylor
Re: Exlude certain countries



Next question, is this the best way to use Country status in an RS?


Personally, I think it is.

Yuval Taylor
Product Manager, Portfolio123
invest(igations)
Any opinions or recommendations in this message are not opinions or recommendations of Portfolio123 Securities LLC.

Sep 14, 2021 8:41:05 PM