Look at your printf call. The slope is the price movement per bar. Are 3 decimals enough?