Hi guys,
I'm new to quantopian so I don't know if it's ok to ask for help in this Forum...
I wanted to create a simple algo, based on the current interest Environment in relation to the 12-month average.
Rules:
Be invested in the S&P500 if:
- the current interest rate for 0.5 Year Treasuries is lower than its 12-month average
- the current interest rate for 3 Year Treasuries is lower than its 12-month average
- the S&P500 trades currently above its 12-month average
else:
be investet in cash (iShares Money Market as Proxy)
Sadly it doesn't work (it's not generating any trades) and I'm not able to solve the issue (even with the very useful Docs).
I'm thankful for ANY suggestions.
Thank you!
Best,
Emanuel