Optuma Forums › Optuma Scripting › Number of Signals since Jan 2019 › Reply To: Number of Signals since Jan 2019
March 25, 2021 at 1:03 pm
#63145
- Topics: 40
- Replies: 2,017
- Posts: 2,057
Hi Michael,
The “Turns” operators are better and the ACC function includes a lookback period which you can set to 2 years.
All the best
Mathew
1 2 3 4 5 6 7 8 |
S0 = PERCENTSWING(); C1 = S0 TurnsDown; c2 = S0 TurnsUp and TIMESINCESIGNAL(c1, UNIT=Days) > 14; ACC(c2, RANGE=Look Back Period, BACKTYPE=Years, BARS=2) |