The ZigZag feature can be used to filter out small moves and make Elliott Wave counts more straightforward. The chart below shows the S&P 500 ETF with a 6% ZigZag to filter moves less than 6%. After a little trial and error, 6% was deemed the threshold of importance. An advance or decline...
In Amibroker, Theres already "ZigZag" Pre-defined function. But, im wondering where i can find that code (the code inside ZigZag Function).if anyone could provide this code for me it would be greatful.
I'm trying to code a piece of code in AFL to get Zigzag retracements.
I found something on the library which unfortunately didn't work properly so I'm trying to fix it.
function GetXSupport(Lo, Percentage, Back)
return ((BarCount -...