how can i design it so my indicator values are processed as soon as the real time data flows in.
i load 25 days of data and have tick replay turned on.
here is my header for the onbarreplay in strategy
protected override void OnBarUpdate()
{
try{
if(BarsInProgress>0)
return;
if (State != State.Realtime)
return;
Here is my indicator header
protected override void OnBarUpdate()
{
try
{
if (CurrentBars[0] < 51 || CurrentBars[2] < 22) // bar 0 = 30 minutes, bars 1 = indaily.
return;
Print(currTime() + "Got tick from indicator");
Comment