@ab_trader Ok so everything is working now. So the reason for the errors was that in the init for my strategy I initialized the self.gamma variable with gamma1(self.data).dummyline. That was my mistake I should have deleted that .dummyline.
I think I go confused for a bit and accidentally put that there in the init of my strategy. I also used self.line.dummyline in the next() of my strat. which should be used in my indicator class not strat class.