I would like to use a series in real-time mode.
If a condition within a bar becomes true, this should be displayed on the next tick with Series[1].
Unfortunately this does not work.
For clarification I have written the following code:
counter++; testCondSeries[0] = counter == 1; if (counter >= 4) counter = 0; Print(Time[0] + " testCondSeries[0] " + testCondSeries[0] + " testCondSeries[1] " + testCondSeries[1] + " counter " + counter);
Obviously Series[1] only works for historical data.
What is the best practice to solve my problem?
Thanks for your support!
PS: it's not about backtesting but about the running operation
PPS: I use Calculate.OnEachTick and work on a minute basis
Comment