Modification pinescript script

Job ID: 38579691

Budget: $30 – $250 CAD

Hello,

This script which is a multitimeframes zigzag on fractals. i would need these 2 corrections :

- The amount of data to display is choosen in the parameters by "ZZ line count" and "line count". Switch that to a number of days back per Timeframe.

- All fractals are pivots and used in zigzag. If there is no opposite fractals to draw zigzag on, then use the highest/lowest price beween the 2 consecutive fractals. (cf screenshot, bleu is what i want, yellow is what it does).

thanks
Related categories: Pine Script Trading