Hello Guys,

I hope I am doing this correctly here. First I am pretty new to programming and new to QC, so hopefully my questions are not too stupid.

I am trying to setup first a pretty basic ETF Rotation as a first part of my algorithm. Therefore I am choosing 5 ETFs and I want to check every month if the current ETF Price is above the 10month SMA of the depending ETF.

In this case the ETF shold be appened to a list and I just want to print out the list.

When I am looking after in the Logs of my backtest, there are some dates/months in some years missing, so there is no List printed out.

Can someone help or explain me what is the problem here or where my code is wrong?

Hope someone can help me :)

Greetings, Philipp

 

 

Author