Hi, I've attached a backtest which firstly gives me a type error with price if I don't assign a period to insights for some reason (I'd like not to use a period but I have so I can show the second issue) and then gives me a object reference not set to an instance of an object error when I try to emit flat insights to close positions...

Thanks