Bollinger Band % for ProScreener

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #191299 quote
    quokkasoccer
    Participant
    New

    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!

    #191303 quote
    robertogozzi
    Moderator
    Master

    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).

    quokkasoccer thanked this post
    #191305 quote
    quokkasoccer
    Participant
    New

    Thank you Roberto!

    Would it be possible to change the method used to calculate the bollinger bands? Such as an EMA or WMA?

    Screen-Shot-2022-04-06-at-15.53.32.png Screen-Shot-2022-04-06-at-15.53.32.png
    #191307 quote
    robertogozzi
    Moderator
    Master

    Yes, replace 0 in Average[p,0] with any value from 0 to 8 as described at https://www.prorealcode.com/documentation/average/.

    quokkasoccer thanked this post
    #191316 quote
    quokkasoccer
    Participant
    New

    Thank you Roberto, very helpful

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Bollinger Band % for ProScreener


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by quokkasoccer
3 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/06/2022
Status: Active
Attachments: 1 files
Logo Logo
Loading...