if (macd(Fast, Slow, Smooth)[0] > 50
|| (macd(Fast, Slow, Smooth)[1] > 50
|| (macd(Fast, Slow, Smooth)[2] > 50
|| (macd(Fast, Slow, Smooth)[3] > 50
|| (macd(Fast, Slow, Smooth)[4] > 50
|| (macd(Fast, Slow, Smooth)[5] > 50
&& Sell signal [0] goes here...)
Can you tell me how to do this as a range from current bar to 5 bars ago in one line of code instead of 6?
Thanks
Comment