In reference to your your earlier error message, ‘A positive integer field is expected with round’…
With indicators only code, you can call other files with timeframes embedded.
However, depending on what additional indicators you use within it you can get the error message pop up.
‘A positive integer field is expected with xxxxx’
Image’s show, an example using ‘average’ keyword, which has a field that requires an integer.
If the timeframe of the chart, and called file’s match, then there’s no problem.
However, if the timeframe of the chart is a valid smaller timeframe, and a main file ‘Timeframe’ is using ‘updateonclose’, and that calls another file,
and that files timeframe does not use the ‘updateonclose’ then error message comes up. Image 1.
When this happens, in this example, the variable for the ‘Average’ look back, appears to be undefined still. flash message!
If look back value is a literal, or by ensuring a default valid value for the variable, inside the timeframe block, then no message. Image 2.
Though I couldn’t get your specific error message, I suspect it was on these lines, and somewhere in the code base, ‘Round(value,n/a) happened.
Other post…
https://www.prorealcode.com/topic/i-found-a-bug/