CS1025
error This number is not valid.
#What it means
Something that starts like a number is not a valid number.
#Typical cause
- Two decimal points, as in
1.5.2. - Letters stuck to the digits, as in
14dor12abc(a name cannot start with a digit). - An exponent with no digits, as in
1e. - A number too large to store.
#How to fix it
Write a plain number (14, 0.5, 1e-6). If you meant a name, start it with a letter or _.
#Example
//@chartscript 1
indicator("Scaled close")
const factor = 1.5.2
plot(close * factor)Fixed
//@chartscript 1
indicator("Scaled close")
const factor = 1.52
plot(close * factor)#Related
- CS1020 — Unexpected character char.