BAD_ATTRIBUTE

CompileSeen in: The editor

What happened

symbols, direction, order_mode or warmup has a value Forge does not accept. symbols is a list of 1 to 50 symbol names, direction is long, short or both, order_mode is managed or unmanaged, and warmup is a whole number of bars.

What to do

Change the value to one of those.

Example

text
strategy.py, line 9: direction must be "long", "short" or "both" [BAD_ATTRIBUTE]

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