SCREENER FOR INDICATOR BOLLINGUER BANDIT

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #84769 quote
    lokbuscas
    Participant
    Average

    Hi

    is it possible to program a screener for this indicator

    bollingerLengths=50
    liqLength=50
    rocCalcLength=30
    avg = average[bollingerLengths]
    upBand = avg+std[bollingerlengths]*1.25
    dnBand = avg–std[bollingerlengths]*1.25
    atr = AverageTrueRange[14](close)
    rocCalc = Close – Close[rocCalcLength–1]// {remember to subtract 1}
    if(lastsignal<=0 and rocCalc > 0) and close<upBand then
    drawarrowup(barindex,low–atr) coloured(0,255,0)
    lastsignal=1
    endif
    if(lastsignal>=0 and rocCalc < 0) and close>dnBand then
    drawarrowdown(barindex,high+atr) coloured(255,0,0)
    lastsignal=–1
    endif
    if lastsignal=0 then
    liqDays= liqLength
    else
    liqDays= liqDays – 1
    liqDays= Max(liqDays,10)
    endif
    return
    thanks
    #84777 quote
    robertogozzi
    Moderator
    Master

    Since you wrote in english I moved this topic to the english forum.

    To write code, please use the <> “insert PRT code” button, to make code easier to read. Thank you.

    #84778 quote
    robertogozzi
    Moderator
    Master

    This is your screener:

    bollingerLengths=50
    liqLength=50
    rocCalcLength=30
    avg = average[bollingerLengths]
    upBand = avg+std[bollingerlengths]*1.25
    dnBand = avg–std[bollingerlengths]*1.25
    //atr = AverageTrueRange[14](close)
    rocCalc = Close – Close[rocCalcLength–1]// {remember to subtract 1}
    if(lastsignal<=0 and rocCalc > 0) and close<upBand then
    //drawarrowup(barindex,low–atr) coloured(0,255,0)
    lastsignal=1
    endif
    if(lastsignal>=0 and rocCalc < 0) and close>dnBand then
    //drawarrowdown(barindex,high+atr) coloured(255,0,0)
    lastsignal=–1
    endif
    if lastsignal=0 then
    liqDays= liqLength
    else
    liqDays= liqDays – 1
    liqDays= Max(liqDays,10)
    endif
    screener[lastsignal]

    You can change what the screener should search for.

    Nicolas thanked this post
    #84784 quote
    lokbuscas
    Participant
    Average

    Tkanks Roberto

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

SCREENER FOR INDICATOR BOLLINGUER BANDIT


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
lokbuscas @lokbuscas Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/13/2018
Status: Active
Attachments: No files
Logo Logo
Loading...