Bollinger Band % for ProScreener

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #191299 quote
    quokkasoccerquokkasoccer
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    quokkasoccerquokkasoccer
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    quokkasoccerquokkasoccer
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 quokkasoccerquokkasoccer
4 years, 6 months ago.

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