tick resolution causing Floating point error
Posted: Jun 17 2020
When i use <= 500 tick resolution on /ES I get a floating point error. I dont get an error when above that. What am i missing?
MultiCharts
https://www.multicharts.com/discussion/
https://www.multicharts.com/discussion/viewtopic.php?t=52632
The scripts error and status switches off. MC scripts still work though. I threw on some to make sureIs that floating point error triggered by MultiCharts itself, or by one of the scripts you have on the chart?
Please post a screenshot of the error message.
Yes, the indicator is custom. what could cause a floating point while using volume on very small ticks?I don't know the 'VWAP Array 11' indicator, but the floating point error is caused by this indicator. And not by the chart's resolution.
Since it looks to be a custom indicator, did you perhaps code it to require a minimum resolution of 500 in its calculations?
This was my first thought but I was pretty confused as to why a >500 tick resolution doesn't give me a floating point error and <=500 does?First step:
go through the code and find all the division operations.
I found the 0, haven't figured out what mistake I made that was just getting covered up by larger resolutions but there is nothing special about the problem.First step:
go through the code and find all the division operations.
quick question though?First step:
go through the code and find all the division operations.
you making fun of me?GIGO
Code: Select all
ticks
Code: Select all
Rec_V = Rec_V + TICKS;