Market correction

Can someone help me with a code that can track market correction using fibonacci retracement levels ?
Thanks !!