Hi please see description/requirements here:
https://docs.google.com/document/d/1aSIZ1u-xQfcJLuh1fAWjHf_MoZ0o3QcZcYDxX4mP6NA/edit#heading=[login to view URL]
Need clean, well commented code.
May need further help after to improve/modify it.
i can your work. i am new on freelancer so i need work. I am a stock market trader with experience of 8 years in market and i develop backtesting or buy/sell signal for various strategies in tradingview with pine script. I can help you optimise your strategy with more profit factor. I can help you making alerts from tradingview to telegram/email.