CS2717
error This migration conflicts with another one for name (version since).
#What it means
Migrations (settings.renamed, settings.remap, settings.retired, settings.converted) tell ChartDeck how to carry users' saved settings over to a new version of the script. This one contradicts another migration for the same input and version, or does not fit the input.
#Typical cause
- The same migration written twice for one version.
settings.retiredfor an input that still exists.settings.renamedwhere the old and new names are the same.settings.convertedon an input that is not a number.
#How to fix it
Keep one migration per input and version, and make sure each one describes a real change.
#Example
//@chartscript 1
indicator("Migrations")
const len = input.int(14, "Length")
settings.renamed("len", "length", 2)
settings.renamed("len", "length", 2)
plot(ta.sma(close, len))Fixed
//@chartscript 1
indicator("Migrations")
const len = input.int(14, "Length")
settings.renamed("len", "length", 2)
plot(ta.sma(close, len))