Hi,
I would to see all the stocks on a daily time frame that fit the following criteria
- The angle of the EMA10 daily over the last 5 days should be at least 45% (up)
- The EMA200 daily has been rising for at least 20 days
Thanks
Gr Marco
JSParticipant
Veteran
Hi Marco,
Determining an angle, for example 45 degrees, is difficult…
An alternative could be:
The EMA10 is up at least 45% over the last five days…
TimeFrame(Daily)
EMA10=ExponentialAverage[10](Close)
EMA200=ExponentialAverage[200](Close)
C1=(EMA10-EMA10[5])/EMA10[5]*100>=45
C2=Summation[20](EMA200>EMA200[1])=20
Screener[C1 and C2]
Hi JS,
Is it possible to say:
- The EMA10 is up at least 5 times daily ATR percentage over the last 5 days
Furthermore is it possible to add dates in the code?
For example. I want to see at the stocks that meet the requirements on 13-12-23?
Gr Marco
JSParticipant
Veteran
Hi Marco,
Here is the custom screener…
It is possible to use dates in your screener, but you must consider the maximum history of a screener…
In this case, you’re using an EMA200 that already uses (much) more history, and when you also investigate the past, you’re probably short of history…
TimeFrame(Daily)
//If Date=20231213 then
EMA10=ExponentialAverage[10](Close)
EMA200=ExponentialAverage[200](Close)
ATR5=AverageTrueRange[5](Close)
C1=(EMA10-EMA10[5])>=5*ATR5
C2=Summation[20](EMA200>EMA200[1])=20
//EndIf
Screener[C1 and C2]