Hello all,
I am trying to use the bollinger % indicator in ProScreener, but It is not possible.
‘Error: The Indicator that you have selected is not available in ProBuilder Language. Please choose a different indicator.’
This is a very useful indicator for system building, especially when you can select the source and moving average type.
Does anyone have a version of this indicator compatible for ProBuilder or some sort of workaround?
Any help much appreciated!
You can make this indicator to be CALLed:
// Bollinger BB%
//
DEFPARAM CalculateOnLastBars = 1000
p = 20
dev = 2.0
BollInf = Average[p,0](close) - (dev * std[p](close))
BollSup = Average[p,0](close) + (dev * std[p](close))
pB = ((close - BollInf) / (BollSup - BollInf)) * 100
return pB AS "Boll BB %",80 AS "Ob",20 AS "Os"
or you can embed it in your screener (after removing RETURN and DEFPARAM).
Thank you Roberto!
Would it be possible to change the method used to calculate the bollinger bands? Such as an EMA or WMA?
Yes, replace 0 in Average[p,0] with any value from 0 to 8 as described at https://www.prorealcode.com/documentation/average/.
Thank you Roberto, very helpful