Walter Peters Big Bullish/Bearish Candle

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47638 quote
    Marcel van VlietMarcel van Vliet
    Participant
    Veteran

    Hi, I tried to code a screener for Walter Peters (The naked trader) BBC setup. This is what I coded so far.

    It would be nice to get any help or guidence to make this code more efficient/shorter/better and load it up to the library.

    Thank you ……….

    // Bullish Big (engulfing) candle
    
    C1 = High>High[1] AND High>High[2] AND High>High[3] AND High>High[4] AND High>High[5] AND High>High[6] 
    AND High>High[7] AND High>High[8] AND High>High[9] AND High>High[10] AND Low<Low[1] AND Low<Low[2] AND Low<Low[3] AND Low<Low[4] AND Low<Low[5] 
    AND Low<Low[6] AND Low<Low[7] AND Low<Low[8] AND Low<Low[9] AND Low<Low[10] AND Close[1] < Open[1] AND Open < Close[1] AND Close > Open[1] AND Open < Close
    
    // Bearish Big (engulfing) candle
    
    C2 = High>High[1] AND High>High[2] AND High>High[3] AND High>High[4] AND High>High[5] AND High>High[6] 
    AND High>High[7] AND High>High[8] AND High>High[9] AND High>High[10] AND Low<Low[1] AND Low<Low[2] AND Low<Low[3] AND Low<Low[4] AND Low<Low[5] 
    AND Low<Low[6] AND Low<Low[7] AND Low<Low[8] AND Low<Low[9] AND Low<Low[10] AND Close[1] > Open[1] AND Close < Open AND Open > Close[1] AND Close < Open[1]
    
    Screener[(C1) OR (C2)]	
    
    
    
    
    
    #47804 quote
    NicolasNicolas
    Keymaster
    Legend

    Does it works already? Is it accurate? We could make it shorter by summarize the boolean results of all the High>High[x] (and Low<Low[x]) comparisons.

    #47806 quote
    Marcel van VlietMarcel van Vliet
    Participant
    Veteran

    @Nicolas, Yes it works accurate. The problem is that Peters advice is to look back beween 6 and 10 candles. I tested the screener with 6 candles and it performed well. Summarize the boolean results is a thing I don’t know how to do. (this is the reason for this post)

    #47807 quote
    juanjjuanj
    Participant
    Master

    Here is the screener for you:

    (Only managed to find matching conditions on the Weekly)

    Dir = 0
    
    If (High > Highest[10](High)[1]) and (Low < Lowest[10](low)[1]) Then
    If close[1] < open[1] and open < close[1] and close > open[1] and close > open Then
    Dir = 1
    ElsIf close[1] > open[1] and open > close[1] and close < open[1] and close < open Then
    Dir = -1
    EndIf
    EndIf
    
    Condition = (Dir <> 0)
    
    SCREENER[Condition] (Dir AS "Direction")
    WalterPeters-BigCandle.itf
    #47810 quote
    Marcel van VlietMarcel van Vliet
    Participant
    Veteran

    @Juanj, Great. This weekend i will try to make it work on the daily timeframe or combine it with the screener I have so far.

    Thank you………

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

Walter Peters Big Bullish/Bearish Candle


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Marcel van VlietMarcel van Vliet
8 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/28/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...