Hello and good afternoon.
I wonder if someone here is able to help me please.
What I would like to screen where:
50 period MA has turned positive within the past n periods (variable but defaulted to 26), record in variable x how many periods ago the trend changed.
AND
Stochastic (12,2,2) for the current period is below 30. However this must be the first time this has breached this level during the past x periods.
Many thanks in advance.
I hope this makes sense?
Regards
Simon