Back to Community
Intraday minute moving average help!

Hi Community,

I am new to python and need some help. Code is supposed to open long a position when the 20min mavg crosses all the other ones upwards, and a short position when 20min mavg crosses all other ones downwards. But is only supposed to open a position if there are no open positions. I'm running into problems trying to set up moving averages. I am getting an error saying there are no mavg functions in Series.

Hope someone can help!

Loading notebook preview...
Notebook previews are currently unavailable.