Int LStrength( 3 ), // Left pivot strength Input: double RetracePerc( 0.2 ), // Percentage above running pivot that pivot must be formed to start a new zig zag The _ZigZagTest show me study to call the _ZigZag function Value1 = _ZigZagDisplay( HiVal, LoVal, 3 )
LoVal = AverageFC( L, 9 ) // The LOW value HiVal = AverageFC( H, 9 ) // The HIGH value The _ZigZagDisplay function is called as follows: // Enter the value to be checked here: Calling the _ZigZagDisplay function (the function that doesn’t include the Fibonacci detection) The two functions, _ZigZagDisplay and _ZigZag, include the same core zig zag functionality, but the _ZigZag function also includes algorithms to detect whether ratios of the price increase/decrease consecutive zig zags are equal to (or close to) a Fibonacci ratio. The programs are summarized in the following table: Function
These new functions allow you to replace using price high and price low with other calculated values.) These new functions allow a user to build zig zags from a calculated series, such as a moving average (Zig zags on this site have, thus far, been built using high price pivots and low price pivots. The Program 70 package that consists of two functions and three demonstration show me studies that call one or the other function. Flexible Zig zag functions with Fibonacci detection option