Optuma Forums › Optuma Scripting › Unstable DU and DD › Reply To: Unstable DU and DD
December 10, 2020 at 3:00 am
#61637

- Topics: 62
- Replies: 517
- Posts: 579
Hi Jason,
I think this is because you are using realtime data and it’s confusing the lookback counts. As a workaround use the following to count the number of consecutive days up, ie how long since a negative close:
1 2 3 |
TIMESINCESIGNAL(CHANGE()<0) |
And days down:
1 2 3 |
TIMESINCESIGNAL(CHANGE()>0) |
Let us know if you have issues.