I have a problem with my indicator.
The logic is simple.
When the condition (Low[0] < Low[1]) is triggered, I store the Low of the previous bar, the High of the previous bar and the X.
Then, when the High of the current bar reaches any of the previously saved values, I delete them.
Finally, after all that, I put together the values that the price did not reach with the values that the price reached in a single list.
The problem is: in Market Replay, the script works correctly. Now, when using live data from CQG, it doesn't work properly.
I made two screenshots. One shows the correct result (Market Replay) and the other the wrong one.
Where is the error?
Thanks

Comment