Sorry I meantB
Bearsetup2 = (variation = highest[2](variation))
I don’t have my platform open at the moment and I have not used the indicator you mention before – but you can use the output of any indicator (even ones you create yourself) in strategies by calling them.
CALL
In your example I think this would be overcomplicating things as it is such a simple calculation.
Are you aware of the ProRealTime programming language documentation that can be found here or under the ‘Help’ menu on this site?
https://www.prorealcode.com/prorealtime-documentation/
It is a great reference source.
I actually didn’t see that program language documentation source before. The only reference I was using was the 3 PDF manuals which can be found under help in ProRealTimes homepage. But those are a bit cumbersome to use as reference. I will be using the documentation that you sent as a reference from now on.
Thank you Vonasi!