Forums ProRealTime English forum ProOrder support Any reasons why this code is not working Reply To: Any reasons why this code is not working

#87824

COUNTOFPOSITION can be positive or negative which will completely mess up your calculations.

Also as GraHal says CLOSE +/- 2 will very likely be too close for a minimum order distance on most markets.