Bollinger%B Screener code help

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #115876 quote
    OboeOptOboeOpt
    Participant
    Veteran

    I´m new to PRT but have some experience from other trading platforms. I wanted to make a screener in ProScreener using Bollinger%B but I get the message “Indicator not available in ProBuilder language”… I guess it´s still possible to make with “Creation by programming”? I have no knowledge in programming in PRT so I hope someone please can help me!?

    Condition1: Bollinger%B crosses under value/line 90
    Condition2: Bollinger%B crosses over value/line 10
    “Match any of the conditions”

    Thanks in advance!

    (I wish this indicator could work with ProBuilder language so I could combine it with more conditions in screeners and trading systems. Anyone knows if it´s coming?)

    #116007 quote
    NicolasNicolas
    Keymaster
    Legend

    The below code should work as per the conditions you described for the Bollinger%B crosses.

    prix=close
    p=20
    
    gd2 = average[p](prix)
     
    sd= 2*STD[p](prix)
     
    bollsup= gd2 + sd
    bollinf = gd2 - sd
     
    B1 = 100*(close - bollinf)/ ( BOLLSUP -BOLLINF)
    
    //Condition1: Bollinger%B crosses under value/line 90
    c1 = b1 crosses under 90
    //Condition2: Bollinger%B crosses over value/line 10
    c2 = b1 crosses over 10
    
    screener[c1 or c2]
    OboeOpt thanked this post
    #116349 quote
    OboeOptOboeOpt
    Participant
    Veteran

    Works fine, thank you!!!

Viewing 3 posts - 1 through 3 (of 3 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%B Screener code help


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
OboeOpt @oboeopt Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by OboeOptOboeOpt
6 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/04/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...