How to backrest an idea on pi

Hello team @AlgoGeek
I have an idea where I want to enter a trade on pure fibbonnaci retracements. Let’s say i want to buy when price crosses above 23.6% of open and exit when it touches 61.8% with 1% stop on daily charts . How do I code it on pi and backtest it ?

Can some experts please help

Regards Pavan