Optuma Forums › Optuma Scripting › last turning point (Gann) › Reply To: last turning point (Gann)
May 24, 2022 at 3:07 pm #68363
- Topics: 5
- Replies: 670
- Posts: 675
The SwingStart and SwingEnd functions need a swing to base their values on. In your example, something like this:
GS = GANNSWING(SWINGCOUNT=3) ;
ss = SWINGSTART(GS);
se = SWINGEND(GS);
Once this is done, the d1 variable in your will produce a result.
With V1, you need to remember that ACCSINCESIGNAL requires a Boolean to trigger from. d1 is not a Boolean, so the function has no trigger.
You can see some examples here: