How do you code ideas that keep track of things that happened in the past?
#1
For example if LineA > LineB, you know LineA crossed from below to above LineB at some point, but when?

And how would you do the "below to above" part?

They cross when LineA.value === LineB.value, but would you have to store the previous candle to know if it is coming from below to above or above to below?

Is there an easy way to do previous N candles or get the time at and time since the last cross happened?
  Reply


Messages In This Thread
How do you code ideas that keep track of things that happened in the past? - by boba - 04-01-2019, 06:04 AM

Forum Jump:


Users browsing this thread: