I would like to combine fractals and zigzag into a new indicator that form a new zigzag. Fractals and zigzag not required to be plotted.
1) No use of icustom in the indicator
2) Able to modify Zigzag parameters with input
3) Must be able to solve the issue when up & down fractals exist on the same bar
4) Minimum loop in the code, code optimisation is required
*Note: I can provide help on point 3 algorithm if required.