LINT_FIT_FULL_HISTORY
What happened
compute() receives the whole history at once. A model fitted there has seen every bar, so the values it gives for early bars were shaped by bars that came after them.
What to do
Fit on a window that ends before the bar being decided, and fit again as the window moves.
Example
text
strategy.py, line 31: A model is fitted on the whole history inside compute(), so early bars learn from later ones. [LINT_FIT_FULL_HISTORY]The wording of the message depends on your file, and the code does not. A warning does not stop the file from loading.