Avoid securities starting with ~ in backtest

During backtest, some securities with names starting with ~ are causing distortion in the backtest results. How can I run the backtest and exclude securities with names starting with ~ in the test?

Thank you.

See response in your other thread here

You can save analysis to APX file so analysis settings and AFL are stored in such file.

Alternatively to analysis settings you may check for Group() membership via AFL also.

if ( GroupID() != 253) {

    // then do something
1 Like

Thanks. I am embarrassed to have asked this question but can't delete it.