LINT_REVERSED_SERIES

CompileSeen in: The editor

What happened

A running calculation on a reversed series walks from the last bar to the first. Turned back round, each bar holds a value built from the bars after it.

What to do

Run the calculation on the series in its own order.

Example

text
strategy.py, line 25: Reversing a series before a running calculation lets early bars read later ones. [LINT_REVERSED_SERIES]

The wording of the message depends on your file, and the code does not. A warning does not stop the file from loading.

Ask about this in the forum