Count consecutive no. of bull or bear bars – script MetaTrader 5

Sample code to count consecutive no. of bull or bear bars. Feel free to use or develop further to serve your purpose



📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks