I've got a quick question hopefully someone can help me out with. Currently working in the notebook and I want the table to display my portfolio weights based off of my trading signal --> All weights = 0, except IEF at 1.0, if the current price of SPY is below its 200 day moving avg. If Current > Moving Avg, it displays the weights I have computed, with IEF held constant at 0.20. I don't have an issue displaying the table normally, its when I want the table to take the signal into account where I'm running into a problem.
I keep trying to do an "if statement" but no luck (as you can see in the notebook).
If anyone could point me in the right direction, I'd greatly appreciate it.