I'm doing an indicator that use the function GetYByValue and I don't understand the values than it returns because sometimes increments 1 pixel. With an example better:
I have TickSize of 0.25
If I call this function for some prices, the results (for example) are:
GetYByValue(1700.00) returns 100
GetYByValue(1700.25) returns 120
I say ok, the distance between ticksize's is 20 pixels, but ...
GetYByValue(1700.50) returns 140
GetYByValue(1700.75) returns 160
GetYByValue(1701.00) returns 180
GetYByValue(1701.25) returns 201 ---> Why the distance now is 21???
GetYByValue(1701.50) returns 221 -> Now is 20 pixel of distance again
The problem is the indicator, the properties of Chart, ...?
Thanks
Comment