Hello,
I need a simple indicator, but I did not manage to find one, I am pretty sure it will not be hard for someone to code but I have no skills.
All the indicator has to do is count the X previous bars and provide a number. For example if you input to count the previous 10 bars and there are 6 bullish and 4 bearish, the indicator should return 2. If there were 7 bearish and 3 bullish - -4. Bearish bars should be counted as negative numbers and bullish as positive and the indicator has to output a single number with the sum of it.
Any help would be very very greatly appreciated! Thank you in advance!
I need a simple indicator, but I did not manage to find one, I am pretty sure it will not be hard for someone to code but I have no skills.
All the indicator has to do is count the X previous bars and provide a number. For example if you input to count the previous 10 bars and there are 6 bullish and 4 bearish, the indicator should return 2. If there were 7 bearish and 3 bullish - -4. Bearish bars should be counted as negative numbers and bullish as positive and the indicator has to output a single number with the sum of it.
Any help would be very very greatly appreciated! Thank you in advance!