Diagnostic

E-FUTURE-READ

A strategy looks ahead (`future = true`) on a value that is not shifted: it would trade on prices the bar did not have. A script that makes alerts gets it too when the unshifted value reaches an alert (`alert()` / `alertcondition`, directly or as the condition they run under); a look-ahead that only draws is the warning `W-FUTURE-READ`.

Kind
ERROR
Raised
While the script is read and checked
Group
Language rules

Message

The message has several forms. The parts in color are filled in with the details of the problem.

This read of another timeframe looks ahead (future = true) on a value that is not shifted: on the bars of a day it shows the day's final figure, which the bar did not have, and a strategy would trade on it{strategy}, and an alert would ring on it{alert}

Details the message can carry

alert, strategy

The code is stable; the wording may change. Back to the index.