BAD_BARS

CompileSeen in: The editor

What happened

The bars declaration is not a bar declaration, uses a setting the class does not declare, or has values that cannot be resolved.

What to do

Write bars as a declaration such as fg.bars.Time("H1"), and declare any setting it uses on the class first.

Example

text
strategy.py, line 14: The bars use a setting that is not declared on the class. Declare it first, like box = param.Float(10, min=5, max=30), then write bars = fg.bars.Renko(box). [BAD_BARS]

The wording of the message depends on your file, and the code does not. An error stops the file from loading.

Ask about this in the forum