MIXED_PROGRAM

CompileSeen in: The editor

What happened

A file holds a strategy or an indicator, not both.

What to do

Put the indicator and the strategy in separate files.

Example

text
strategy.py, line 40: `Trend` is an indicator and `Breakout` is a strategy. Put each in its own file. [MIXED_PROGRAM]

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