BreakOut Failure screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #196778 quote
    sivispacem
    Participant
    Junior

    Buongiorno a tutti.

    Avrei bisogno di un supporto.

    A valere su questo indicatore, è possibile avere ricreato lo screener del BreakOut Failure (nella formula è indicato come “BO Failure”)?

    Grazie in anticipo.

     

    //Inside Bar Breakout Failure indicator

    atr = averagetruerange[10](close)*0.5

    bullcandle=open<close
    bearcandle=open>close

    insidebarbear= bearcandle and high[0]<high[1] and low[0]>low[1]
    if insidebarbear then
    DRAWTEXT(“IB”, barindex, high[1]+atr*0.5, Dialog, Standard, 12) COLOURED(0,0,0)
    //DRAWARROWDOWN(barindex,high[1]) COLOURED(0,0,0)
    DRAWCANDLE(open,high,low,close) COLOURED(0,0,0) BORDERCOLOR(255,0,0)
    endif
    insidebarbull= bullcandle and high[0]<high[1] and low[0]>low[1]
    if insidebarbull then
    DRAWTEXT(“IB”, barindex, high[1]+atr*0.5, Dialog, Standard, 12) COLOURED(0,0,0)
    //DRAWARROWDOWN(barindex,high[1]) COLOURED(0,0,0)
    DRAWCANDLE(open,high,low,close) COLOURED(0,0,0) BORDERCOLOR(0,255,0)
    endif

    insidebarFailureBull=bullcandle and (low[1]<Low[0] or high[1]>high[0]) and(insidebarbull[1] and close[0]<close[1] and close[0]>open[1]) or insidebarbear[1] and close[0]<open[1] and close[0]>close[1] //

    if insidebarFailureBull and not (insidebarbear or insidebarbull) then
    DRAWTEXT(“BO failure”, barindex, high[1]+atr*-2.5, Dialog, Standard, 12) COLOURED(0,0,0)
    DRAWCANDLE(open,high,low,close) COLOURED(255,255,255) BORDERCOLOR(0,255,0)
    //DRAWARROWUP(barindex,low[0]) COLOURED(0,255,0)
    endif
    //================

    insidebarFailureBear=bearcandle and (low[1]<Low[0] or high[1]>high[0]) and(insidebarbear[1] and close[0]>close[1] and close[0]<open[1]) or insidebarbull[1] and close[0]>open[1] and close[0]<close[1]

    if insidebarFailureBear and not (insidebarbear or insidebarbull) then
    DRAWTEXT(“BO failure”, barindex, high[1]+atr*-2.5, Dialog, Standard, 12) COLOURED(0,0,0)
    DRAWCANDLE(open,high,low,close) COLOURED(255,255,255) BORDERCOLOR(255,0,0)
    //DRAWARROWUP(barindex,low[0]) COLOURED(255,0,0)
    endif

    RETURN

    #196815 quote
    robertogozzi
    Moderator
    Legend

    Restituisce 4 valori (oltre allo zero, in caso non ci sia nessun segnale):

    • Inside BAR ribassista = 1
    • Inside BAR rialzista = 2
    • Inside BAR ribassista FALLITA = 3
    • Inside BAR rialzista FALLITA = 4
    //Inside Bar Breakout Failure indicator
    
    //atr = averagetruerange[10](close)*0.5
    
    bullcandle=open<close
    bearcandle=open>close
    
    Risultato = 0
    
    insidebarbear= bearcandle and high[0]<high[1] and low[0]>low[1]
    if insidebarbear then
    //DRAWTEXT("IB", barindex, high[1]+atr*0.5, Dialog, Standard, 12) COLOURED(0,0,0)
    ////DRAWARROWDOWN(barindex,high[1]) COLOURED(0,0,0)
    //DRAWCANDLE(open,high,low,close) COLOURED(0,0,0) BORDERCOLOR(255,0,0)
    Risultato = 1
    endif
    insidebarbull= bullcandle and high[0]<high[1] and low[0]>low[1]
    if insidebarbull then
    //DRAWTEXT("IB", barindex, high[1]+atr*0.5, Dialog, Standard, 12) COLOURED(0,0,0)
    ////DRAWARROWDOWN(barindex,high[1]) COLOURED(0,0,0)
    //DRAWCANDLE(open,high,low,close) COLOURED(0,0,0) BORDERCOLOR(0,255,0)
    Risultato = 2
    endif
    
    insidebarFailureBull=bullcandle and (low[1]<Low[0] or high[1]>high[0]) and(insidebarbull[1] and close[0]<close[1] and close[0]>open[1]) or insidebarbear[1] and close[0]<open[1] and close[0]>close[1] //
    
    if insidebarFailureBull and not (insidebarbear or insidebarbull) then
    //DRAWTEXT("BO failure", barindex, high[1]+atr*-2.5, Dialog, Standard, 12) COLOURED(0,0,0)
    //DRAWCANDLE(open,high,low,close) COLOURED(255,255,255) BORDERCOLOR(0,255,0)
    ////DRAWARROWUP(barindex,low[0]) COLOURED(0,255,0)
    Risultato = 4
    endif
    //================
    
    insidebarFailureBear=bearcandle and (low[1]<Low[0] or high[1]>high[0]) and(insidebarbear[1] and close[0]>close[1] and close[0]<open[1]) or insidebarbull[1] and close[0]>open[1] and close[0]<close[1]
    
    if insidebarFailureBear and not (insidebarbear or insidebarbull) then
    //DRAWTEXT("BO failure", barindex, high[1]+atr*-2.5, Dialog, Standard, 12) COLOURED(0,0,0)
    //DRAWCANDLE(open,high,low,close) COLOURED(255,255,255) BORDERCOLOR(255,0,0)
    ////DRAWARROWUP(barindex,low[0]) COLOURED(255,0,0)
    Risultato = 3
    endif
    
    SCREENER[Risultato](Risultato AS "Criterio")
    #196819 quote
    sivispacem
    Participant
    Junior

    Grazie sempre  per il prezioso supporto Roberto.

    Funziona ovviamente.

    Grazie, ciao

    robertogozzi thanked this post
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

BreakOut Failure screener


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
sivispacem @sivispacem Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 07/05/2022
Status: Active
Attachments: No files
Logo Logo
Loading...