Yes, good point, some quote functions, like the Bid do not work in backtesting.
Also, some System functions do not work in backtesting. Hour, Minute, Second do not work; so instead use Bar[Hour, 5], Bar[Minute,5], and Bar[Second,5].
Hereâs my code for converting the daily stochastic...