How can I save a separate previous tick and current price?
-
I want to compare the previous price with the current price.
I want to use bid for example to comparelet's say the price is at 1000 now.
on the next tick it drops to 999.
So I want to save like this:
previous tick = 1000
current tick = 999How can I do this continuously?
-
@ontradingx You need to create two variables, one for the last tick and another one for the previous one. As new ticks arrive to the platform both variables are uppdated so that you can compare those values.
-
@l-andorrà

Is Correct? -
@ontradingx I never used that option so far, but yes, that should do it.