I have attached some Output data from one of my tests to show what I am talking about. I have included below the key code lines that create the data.
The Output data does include my Calculate and State (shows Realtime).
A factor seems to be the HUL calls WMA three times and WMA performs some of its calculations on on the First Tick of Bar. Close[0] Open[0] etc. do update with price.
Here is the code extracted from my Strategy that creates the variable recorded in Output.
// At Class Level
private HMA HullSlow; // Hull indicaor - Slowest period
private HMA HullFast; // Hull indicaor - Fastest period
// In DataLoaded
HullSlow = HMA(Close, SlowHullPeriod);
HullFast = HMA(Close, FastHullPeriod);
// In OnBarUpdate
ROCHullSlow[0] = HullSlow[0] - HullSlow[1];
FSHullDelta[0] = HullFast[0] - HullSlow[0];
(I have tried various permutations of the HMA (Hull) such as looking at one bar back on First Tick (which is recommended) but they have little effect other than pushing the results back in time)
Attached Ouput from my test print statements (Captured in PlayBack after change from Historical to Realtime). from my test print statements. Records 1 8-29-21.txt
It confuses me that the guides including SampleEnterOnceExitEveryTick (Using LinReg which also gates on First Tick) lead me to think that these indicator values do update Intrabar.
Comment