tonbParticipant
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”
JSParticipant
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"
tonbParticipant
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
JSParticipant
Senior
Hi,
How do you get that “band” that is in the images…?
tonbParticipant
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)
JSParticipant
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"
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
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
tonbParticipant
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
JSParticipant
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"
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
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
tonbParticipant
Junior
The indicator is intended for a small ticks time frame with a high volume to seize the momentum, but thanks for the addition