ideally this algo would buy when current price crosses above 10 day EMA but also the 25 day ema has to be above the 50 ema and the 50ema above 100ema and 100ema above the 200ema and then it would sell when the current price falls below the 5 day ema. I thought it would be as simple as
if (current_price > 10ema and 10ea > 25ema and 25ea > 50ema and 50ema> 100ema and 100ema > 200ema )
but it keeps coming up with ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
i have now basically tore my entire algo apart just to get any sort of crossover to work but nothing... now i don't know whats what i don't know what to add in what to take out. ANYONE PLEASE HELP!!!!!