Hello,
Can somebody help me to create a code for the following.
<span style=”font-weight: 400;”>Show all the assets that fits the following requirements:</span>
<li style=”font-weight: 400;” aria-level=”1″><span style=”font-weight: 400;”>The stoch RSI 14 needs to increase at least with 60 points on the current day and</span>
<li style=”font-weight: 400;” aria-level=”1″><span style=”font-weight: 400;”>The SMA20 (daily) needs to be in an upward trend</span>
Thanks
Gr Marco
JSParticipant
Veteran
xrsi = RSI[14]
xStoRSI = Stochastic[14,3](xrsi,highest[20](xrsi),lowest[20](xrsi))
C1 = xStoRSI - xStoRSI[1] > 60
xSMA = Average[20](Close)
C2 = xSMA - xSMA[1] > 0
SCREENER(C1 and C2)
Hi,
I does not seem to work. Did i do something wrong? I made a short video https://www.loom.com/share/ef37e7fe9ee2457189190181b90c8cef
gr Marco
Replace line 6 with:
SCREENER[C1 and C2]
as barackets are required for conditions, while parentheses are required for criteria.
JSParticipant
Veteran
Sorry, Screener(C1 and C2) must be Screener[c1 and C2]
Square hooks […]
Hello,
Please have a look at attachment.
gr Marco
JSParticipant
Veteran
I don’t get this share (HZNP) on my screen at all…???
JSParticipant
Veteran
Here the difference between “StoRSI” does not exceed 60…
The increase is 71 points. See attachment
JSParticipant
Veteran
What formula do you use for your indicator “Stoch RSI(14)”?
I did not use a formula. I used the standard indicator. See attachment
JSParticipant
Veteran
I don’t know how the internal formula for the “Stochastic RSI” is calculated…
But it’s clear that this is where the problem lies…
This is the formule used:
//Start Code<br aria-hidden=”true” />lengthRSI = 14 //RSI period<br aria-hidden=”true” />lengthStoch = 14 //Stochastic period<br aria-hidden=”true” />smoothK = 10 //Smooth signal of stochastic RSI<br aria-hidden=”true” />smoothD = 3 //Smooth signal of smoothed stochastic RSI<br aria-hidden=”true” /> <br aria-hidden=”true” />myRSI = RSI[lengthRSI](close)<br aria-hidden=”true” />MinRSI = lowest[lengthStoch](myrsi)<br aria-hidden=”true” />MaxRSI = highest[lengthStoch](myrsi)<br aria-hidden=”true” /> <br aria-hidden=”true” />StochRSI = ((myRSI-MinRSI) / (MaxRSI-MinRSI))*100<br aria-hidden=”true” /> <br aria-hidden=”true” />Return StochRSI<br aria-hidden=”true” />//End code
Maybe better readable in attachment