BB Bands stop PRC

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #103353 quote
    supertiti
    Participant
    Master

    Bonjour Nicolas, bonjour à tous

    Serait-il possible de créer un screener de ton indicateur BB Bands stop qui nous donnerait les points de retournements UP and DOWN des prix ( c’est à dire les gros points de l’indicateur ).

    Pour rappel voici ton code :

    //PRC_BBands Stop indicator 30.03.2017
    //Nicolas @ www.prorealcode.com  Sharing ProRealTime knowledge translated from MT4 code
    
    // --- settings
    //Length = 20      // Bollinger Bands Period
    //Deviation = 2    // Deviation
    //MoneyRisk = 1.00  // Offset Factor
    // --- end of settings
    
    avg=average[Length]
    dev=std[Length]*Deviation
    smax = avg+dev
    smin = avg-dev
    
    if close>smax[1] then
    trend=1
    endif
    if close<smin[1] then
    trend=-1
    endif
    
    if trend>0 and smin<smin[1] then
    smin=smin[1]
    endif
    if trend<0 and smax>smax[1] then
    smax=smax[1]
    endif
    
    bsmax=smax+0.5*(MoneyRisk-1)*(smax-smin)
    bsmin=smin-0.5*(MoneyRisk-1)*(smax-smin)
    
    if(trend>0 and bsmin<bsmin[1]) then
    bsmin=bsmin[1]
    endif
    if(trend<0 and bsmax>bsmax[1]) then
    bsmax=bsmax[1]
    endif
    
    if trend>0 then
    TrendLine=bsmin
    r=247// jaune //127
    g=255// jaune
    drawtext("•",barindex,bsmin,Dialog,Standard,15) coloured(r,g,0)
    if trend[1]<0 then
    drawtext("•",barindex,bsmin,Dialog,Standard,30) coloured(r,g,0)
    endif
    endif
    
    if trend<0 then
    TrendLine=bsmax
    r=0//bleu ciel //255
    g=245// bleu ciel //165
    drawtext("•",barindex,bsmax,Dialog,Standard,15) coloured(r,g,255)//0)
    if trend[1]>0 then
    drawtext("•",barindex,bsmax,Dialog,Standard,30) coloured(r,g,255)//0)
    endif
    endif
    
    RETURN TrendLine coloured(r,g,255) style(line,3) as "BBands stop Trend"
    

    merci

    #103356 quote
    supertiti
    Participant
    Master
    #103362 quote
    Nicolas
    Keymaster
    Master
    #103369 quote
    supertiti
    Participant
    Master

    Merci Nicolas

    J’aurais du regarder avant de demander , merci encore pour ton support

    Bonne après midi , à l’ombre évidemment !

    #103376 quote
    supertiti
    Participant
    Master

    Si on veut que les UP

    ligne 35 = test = trend > trend[1]

    et pour les DW

    ligne 35 = test = trend < trend[1]

     

    Bons trades à tous

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

BB Bands stop PRC


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

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

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 07/24/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...