I need an exploration to find all stocks which are trading above the 200 day EMA & also the stochastic should be <= 20. My Stochastic settings in the chart are as follows: Stochastic %D(8,3,3) and Stochastic %K(8,3).
Do help me out....I tried myself but was not successful.
kindly post your coding attempt. The objective of the Forum is to help others learn and be independent otherwise you could just google and get many AFLs with the exact code that your looking for.
You have to assign arrays to Filter returning true or false. If you assign just EMA then it is not checking for above/below MA because values of EMA of price are always greater than zero (as aside AFL Null is not the same as zero). Instead you have to add check of price against EMA -> C > EMA.
Additionally read here about more detailed explanation