3 white soldiers / 3 black crows

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #254936 quote
    tonb
    Participant
    Junior
    Can someone help me to supplenment the existing indicator with the addition.
    Corbeaux
    close < open THEN
    (close – low) <= 0.8 * PipSize
    Soldiers
    close > open THEN
    (high – close) <= 0.8 * PipSize
    REM 3 corbeaux
    Corbeau = (close < open AND close[1]<open[1] AND close[2]<open[2] AND close<close[1] AND close[1]<close[2] )
    IF Corbeau THEN
    indiccorbeau=1
    ELSE
    indiccorbeau=0
    ENDIF
    REM 3 soldats
    Soldat = (close > open AND close[1]>open[1] AND close[2]>open[2] AND close>close[1] AND close[1]>close[2] )
    IF Soldat THEN
    indicsoldat=1
    ELSE
    indicsoldat=0
    ENDIF
    RETURN indiccorbeau AS “3 corbeaux”, indicsoldat AS “3 soldats”
    #254942 quote
    JS
    Participant
    Senior

    Hi,

    Do you mean something like this…

    REM 3 corbeaux
    If close < open and (close - low) <= 0.8 * PipSize THEN
    Corbeau = (close < open AND close[1]<open[1] AND close[2]<open[2] AND close<close[1] AND close[1]<close[2] )
    IF Corbeau THEN
    indiccorbeau=-1
    ELSE
    indiccorbeau=0
    ENDIF
    EndIf
    
    REM 3 soldats
    If close > open and  (high - close) <= 0.8 * PipSize THEN
    Soldat = (close > open AND close[1]>open[1] AND close[2]>open[2] AND close>close[1] AND close[1]>close[2] )
    IF Soldat THEN
    indicsoldat=1
    ELSE
    indicsoldat=0
    ENDIF
    EndIf
    
    RETURN indiccorbeau AS "3 corbeaux", indicsoldat AS "3 soldats"
    robertogozzi thanked this post
    #254948 quote
    tonb
    Participant
    Junior

    Thanks for finding out the intention is that all 3 candels close at the highest or lowest point (0.8 noise) and een signal only occurs at candele 3 if candels 1 and 2 also meet the condition. So only a signal on candele 3 see printscreen

    #254952 quote
    JS
    Participant
    Senior

    Hi,

    How do you get that “band” that is in the images…?

    tonb thanked this post
    #254953 quote
    tonb
    Participant
    Junior

    MA200 = Average[21](Close)
    MA200Plus = MA200 + 12* PipSize
    MA200Min = MA200 – 12 * PipSize
    Return MA200 as “MA200” Coloured(0,0,255), MA200Plus as “MA200Plus” Coloured(0,255,0), MA200Min as “MA200Min” Coloured(255,0,0)

    #254956 quote
    JS
    Participant
    Senior

    Try this one…

    MA200 = Average[21](Close)
    MA200Plus = MA200 + 12* PipSize
    MA200Min = MA200 - 12 * PipSize
    
    Corbeau=0
    If Corbeau = (close < open AND close[1]<open[1] AND close[2]<open[2] AND close<close[1] AND close[1]<close[2] and Close crosses under MA200Min) Then
    indiccorbeau=-1
    ELSE
    indiccorbeau=0
    EndIf
    
    Soldat=0
    If Soldat = (close > open AND close[1]>open[1] AND close[2]>open[2] AND close>close[1] AND close[1]>close[2] and close crosses over MA200Plus) then 
    indicsoldat=1
    ELSE
    indicsoldat=0
    ENDIF
    
    RETURN indiccorbeau AS "3 corbeaux", indicsoldat AS "3 soldats"
    #254958 quote
    LucasBest
    Participant
    Junior
    
    Corbeau = close < open and close < close[1] and (close - low) <= 0.8 * PipSize
    Corbeaux = Summation[3](Corbeau = 1)
    
    Soldat = close > open and close > Cloe|1] and (high - close) <= 0.8 * PipSize
    Soldats = Summation[3](Soldat = 1)
    
    Signal = Soldats - Corbeaux
    
    RETURN Signal
    #254959 quote
    LucasBest
    Participant
    Junior
    Corbeau = close < open and close < close[1] and (close - low) <= 0.8 * PipSize and Abs(Close-Open) > Abs(Close[1]-Open[1])
    Corbeaux = Summation[3](Corbeau = 1)
     
    Soldat = close > open and close > Cloe|1] and (high - close) <= 0.8 * PipSize and Abs(Close-Open) > Abs(Close[1]-Open[1])
    Soldats = Summation[3](Soldat = 1)
     
    Signal = Soldats - Corbeaux
     
    RETURN Signal
    #254963 quote
    tonb
    Participant
    Junior

    The band is of no use for the signal, the intention is that i only get a signal at 3 and now i shee a signal at evrey candele. see printscreen

    #254967 quote
    JS
    Participant
    Senior

    This indicator gives a signal when the conditions of the “Soldiers” or “Crows” are true…

    (If the conditions for the next bar(s) are also true, then the signal for those next bar(s) will also be true…)

    Corbeau=1
    If Corbeau = (close < open AND close[1]<open[1] AND close[2]<open[2] AND close<close[1] AND close[1]<close[2]) then
    indiccorbeau=-1
    ELSE
    indiccorbeau=0
    EndIf
    
    Soldat=1
    If Soldat = (close > open AND close[1]>open[1] AND close[2]>open[2] AND close>close[1] AND close[1]>close[2]) then
    indicsoldat=1
    ELSE
    indicsoldat=0
    ENDIF
    
    RETURN indiccorbeau AS "3 corbeaux", indicsoldat AS "3 soldats"
    tonb and Iván González thanked this post
    #254968 quote
    LucasBest
    Participant
    Junior
    Corbeau = close < open and close < close[1] and (close - low) <= 0.8 * PipSize
    Corbeaux = Summation[3](Corbeau = 1) = 3
     
    Soldat = close > open and close > Close[1] and (high - close) <= 0.8 * PipSize
    Soldats = Summation[3](Soldat = 1) = 3
     
    Signal = Soldats - Corbeaux
     
    RETURN Signal
    tonb and Iván González thanked this post
    #254969 quote
    LucasBest
    Participant
    Junior

    If you use 0.8 * PipSize as a maximal size for the wick => your indicator will work only in small timeframe… In this version, i added that each soldier/crow must be bigger than previous one and that the wick is at max 15% of the body+other opposite wick :

    Corbeau = close < open and close < close[1] and abs(close - low) <= 0.15*abs(High-Close) and Abs(Close-Open) > Abs(Close[1]-Open[1])
    Corbeaux = Summation[3](Corbeau = 1) = 3
     
    Soldat = close > open and close > Close[1] and Abs(high - close) <= 0.15*abs(Close-Low) and Abs(Close-Open) > Abs(Close[1]-Open[1])
    Soldats = Summation[3](Soldat = 1) = 3
     
    Signal = Soldats - Corbeaux
     
    RETURN Signal
    #254971 quote
    tonb
    Participant
    Junior

    The indicator is intended for a small ticks time frame with a high volume to seize the momentum, but thanks for the addition

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

3 white soldiers / 3 black crows


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
tonb @tonbijl Participant
Summary

This topic contains 12 replies,
has 3 voices, and was last updated by tonb
1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/02/2026
Status: Active
Attachments: 4 files
Logo Logo
Loading...