forgot a parenthesis a gap condition. Also, I wrote on the draft paper that i should use PID values for price-makers and closing prices for price-takers, but I lost that difference, somewhat. I placed a stopgag for now but I will work on it more later