Hi Mark,
We use our own language designed specifically to work with our tools and indicators, so using the Pinescript language won’t work and it would have to be rebuilt.
We are working on a scripting AI bot to help with creating formulas, but something like this is a bit too complex at this stage.
If you would like to try learning our language yourself (it’s been designed for non-programmers and is pretty user-friendly) log in to Optuma and click on the Help menu and then Scripting Resources > Scripting Courses.
Alternatively, we can arrange a scripting consultation project and see if it’s something we could do, but you would have to provide a detailed description of the formula required with screenshot examples (as we do not know / use Pinescript the formula above is not enough).