// Prints the high price of the most recent zig zag high
Print("The high of the zigzag bar is " + High[Math.Max(0, ZigZag(DeviationType.Points, 0.5, false).HighBar(0, 1, 100)]));
This is the error I get when trying to compile:
NinjaScript File Error Code Line Column
Strategy\StochC.cs ) expected CS1026 - click for info 58 122
Strategy\StochC.cs ; expected CS1002 - click for info 58 124
Strategy\StochC.cs Invalid expression term ']' CS1525 - click for info 58 124
Strategy\StochC.cs ; expected CS1002 - click for info 58 125
Strategy\StochC.cs Invalid expression term ')' CS1525 - click for info 58 125
Strategy\StochC.cs ) expected. 57 121
Strategy\StochC.cs Statement expected. 57 122
I've tried adding/removing ) and ] ...nothing works. Still same error.
Comment