Dear all

I'm new to QC and not a skilled Python programmer. I try to create a strategy using the framework that uses fundamental data to select stocks from various monrningstar sectors. But I also want to generate long OR short insights base on wheter SPY is trending up or down. I fail to understand how to achieve this.

Thus, how can I use SPY and check if the the current price is above or below the SuperTrend while keeping SPY out from my selected trading universe? Any pointers och code snippets would be appreciated.

Johan