Can someone please help code an EA that checks for the Volume of each of the last 20 Bull bars on a 1 Hour chart . The look back bullish bars are such that they do not occur one after the other ( not consecutive bull bars and bearish bars may also occur in between the 20 bull bars ) .
A buy signal occurs when the volume of the current bull bar is more than that of the last 20 bullish bars that have occurred previously on the chart . Please note that am not talking about the current bar volume exceeding the sum total of all the other 20 bullish bars that occur on the chart.
Somebody help , please