I want to buy after 5 candles above/sell if 5 candles below a moving average
So I try to make this for every 5 candles : low0>ema high0>ema , low1>ema high1>ema etc till i reach all 5 candles
But my question is : there is another way to do that ?
thx for any help or suggestions

Comment