good evening to all, I come to ask for help creating a screener to look for trends in birth that I think must have these conditions:
1) prices above the 200 period moving average
2) RSI (21) lower than line 50 (RSI (21) <50) and passes over line 50 (RSI (21)> 50)
3) the candle that exceeds the 50 line of the RSI upwards must also pass the KIJUN SEN line of the ICHIMOKU indicator from the bottom true high
4) It may be good that it is in progress, closing for 1 or 2 or 3 days.
NB: this is for the uptrend if possible also for the contrary, both for the bearish trend.
I also added a file to see a little better
Waiting for a auito thank you all
What do you mean at point 4) ?
hello Roberto thanks for the thought, at 4) I want to say that the screener shows me too the actions that have responded to these conditions today, yesterday or two days ago (I do not know if it is so in terms of coding [0], [1 ] ,[2] )
thanks again in advance
There you go
// Ichimoku settings
//
//Tenkansen = (highest[9](high) + lowest[9](low)) / 2 //Fast avg
Kijunsen = (highest[26](high) + lowest[26](low)) / 2 //Slow avg
//SpanA = (tenkansen[26] + kijunsen[26]) / 2
//SpanB = (highest[52](high[26]) + lowest[52](low[26])) / 2
//Chikou = close[26]
// Long
b1 = close > average[200,0](close)
b2 = Rsi[21](close) CROSSES OVER 50
b3 = close CROSSES OVER Kijunsen
bx = summation[3](b1 AND b2 AND b3) //conditions met within the last 3 bars
// Short
s1 = close < average[200,0](close)
s2 = Rsi[21](close) CROSSES UNDER 50
s3 = close CROSSES UNDER Kijunsen
sx = summation[3](s1 AND s2 AND s3) //conditions met within the last 3 bars
x = 0
IF bx THEN
x = 1 //1 = long
ELSIF sx THEN
x = 2 //2 = short
ENDIF
SCREENER [x] (x AS "Signal")
Grazie mille Roberto , stasera lo provo e la faccio sapere 👍🏿👍🏿👍🏿
Ciao Roberto volevo chiedere come posso fare per separare quello long è quello short in due screener diversi ?
grazie !!!
Racine – please only use the language of the forum that you are posting in. English only in the English speaking forum please. 🙂
Sorry this is my mess.
Hello Roberto I wanted to ask how I can do to separate the long one is that short in two different screener?
thank you !!!
You just need to duplicate the screener and rename them differently, then removing the code not pertaining to each one:
// Ichimoku settings
//
//Tenkansen = (highest[9](high) + lowest[9](low)) / 2 //Fast avg
Kijunsen = (highest[26](high) + lowest[26](low)) / 2 //Slow avg
//SpanA = (tenkansen[26] + kijunsen[26]) / 2
//SpanB = (highest[52](high[26]) + lowest[52](low[26])) / 2
//Chikou = close[26]
// Long
b1 = close > average[200,0](close)
b2 = Rsi[21](close) CROSSES OVER 50
b3 = close CROSSES OVER Kijunsen
bx = summation[3](b1 AND b2 AND b3) //conditions met within the last 3 bars
x = 0
IF bx THEN
x = 1
ENDIF
SCREENER [x] (x AS "Signal")
// Ichimoku settings
//
//Tenkansen = (highest[9](high) + lowest[9](low)) / 2 //Fast avg
Kijunsen = (highest[26](high) + lowest[26](low)) / 2 //Slow avg
//SpanA = (tenkansen[26] + kijunsen[26]) / 2
//SpanB = (highest[52](high[26]) + lowest[52](low[26])) / 2
//Chikou = close[26]
// Short
s1 = close < average[200,0](close)
s2 = Rsi[21](close) CROSSES UNDER 50
s3 = close CROSSES UNDER Kijunsen
sx = summation[3](s1 AND s2 AND s3) //conditions met within the last 3 bars
x = 0
IF sx THEN
x = 1
ENDIF
SCREENER [x] (x AS "Signal")
hello Roberto thank you very much now let’s see I hope to post some positive trade soon !!!