Skip to content
ChartDeck ChartScript docs Account Open the terminal

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 14d or 12abc (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

ChartScriptError: CS1025
//@chartscript 1
indicator("Scaled close")
const factor = 1.5.2
plot(close * factor)

Fixed

ChartScriptOpen in editor
//@chartscript 1
indicator("Scaled close")
const factor = 1.52
plot(close * factor)
  • CS1020 — Unexpected character char.

The ChartScript documentation is in English for now; translations will follow.