Moonshot - Combine test conditions for determing entries/exits

Hi there,

Is it possible to combine test conditions for determining entries/exits in Moonshot?

I would like to execute a long entry when the short_movingavg > long_movingavg AND when the last close price is at a new high for a specific lookback period.

I can set the entries/exits for each condition on its own, but I don't see a way to combine them and only return a dataframe that contains only true values when both conditions are true.

Please advise.

David

Moonshot is just pandas, so this is really a pandas question, not QuantRocket-specific. For pandas questions, a general web search is your best bet. For example: