Hello!
I'm the man for the job!
Crypto Trader, Coder and Quantitative Researcher with 3+ years experience.
Also, a Pinescript expert!
But, I have to tell you, Pinescript is probably not the best tool for this due to the lack of customization and need for matrix calculations required for something like this.
I think best option would be a Python script, in which case, we can do that too.
Let me know what you want to do and if you can, message me to discuss questions and details for moving forward.