Hello!
I’m trying to get a screener from the Bearish Three line Strike indicator.
I know that the Siganl is very rare.
Therefore I copied the Code for the indicator for Bearish Three line Strike
from https://www.prorealcode.com/prorealtime-indicators/candlestick-pattern-indicator-2-0/ and put the code in a separate indicator. It looks like it will work. I got a signal there for the Dax30 at 26.03.2021 at 9:00 with M15 ant 10 000 Units.
If I now use this indicator as a screener, it does not show me this signal.
Does anyone have an idea what I am doing wrong?
Here is the Code from the indicator
t1 = close[3] < open[3] // candle 4 = red candle
t2 = close[2] < open[2] and low[2] < low[3] and open[2] < open[3] // candle 3 = red candle, lower low & open than previous candle
t3 = close[1] < open[1] and low[1] < low[2] and open[1] < open[2] // candle 2 = red candle and lower low & open than previous candle
t4 = low[0] < low[1] and close[0] > high[3] // candle 1 = green candle, opens lower than previous candle and closes above open of 4th candle. The candle engulfs the bodies of the three preceding black candles
if t1 and t2 and t3 and t4 then
DRAWvLINE (barindex)coloured(0,255,0,50)
DRAWCANDLE(open, high, low, close)COLOURED(0,250,0)
Trend = 1
endif
RETURN
And here is the code from the screener
signal = 0
condition = (open[250]-close[1])
t1 = close[3] < open[3] // candle 4 = red candle
t2 = close[2] < open[2] and low[2] < low[3] and open[2] < open[3] // candle 3 = red candle, lower low & open than previous candle
t3 = close[1] < open[1] and low[1] < low[2] and open[1] < open[2] // candle 2 = red candle and lower low & open than previous candle
t4 = low[0] < low[1] and close[0] > high[3] // candle 1 = green candle, opens lower than previous candle and closes above open of 4th candle. The candle engulfs the bodies of the three preceding black candles
if t1 and t2 and t3 and t4 then
signal = 1
endif
SCREENER [condition and signal > 0 ] sort by signal as "Type"//[condition and t1 and t2 and t3 and t4]
I don’t know what “condition” variable is made for? You should remove it from the code and see how it goes..
Hello Nicolas!
Thank you very much for your answer. With the variable “condition” I wanted to look back at most the last 250 candles (actually even less) If I remove the variable, the screener shows me matches from 2014 :-). I only wanted to display matches that are no more than 1 week old.