|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
What am I missing here ? Looking to create a scan whereby the close of stocks on this current bar are above both the 8 and 14 EMA while the closes of one bar ago were both under the 8 and 14 EMA ? This is what I am trying now.
C > EMA(8) AND C > EMA(14) AND C[1] < EMA(8) AND C < EMA(14)
Thanking you in advance,
Gerry
[Edited by Gerry on 2/21/2021 3:36 PM]
|
|
mgerber
 Member
 Posts: 40
Joined: 12/18/2003
Location: Issaquah, WA
User Profile |
Maybe it is just the last two conditions all of which refer to yesterday?
The close yesterday for the last term, referring to today's EMA(14):
C[1] < EMA (14)
If the EMA's are yesterdays values, then maybe:
C[1] < EMA[1](8) AND C[1] < EMA[1](14)
Might be worth trying . . .
--Mark G.
[Edited by mgerber on 2/21/2021 3:59 PM]
|
|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
Thanks for your reply Mark. That's not doing it. If I run my a scan on the first half I get could results and if I run the second half I also get good results. But when I try to combine both of them is where I run into a problem. But thanks for your effort.
Gerry
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Mark had right idea. Try this:
C > EMA(8) AND C > EMA(14) AND C[1] <= EMA(8)[1] AND C[1] <= EMA(14)[1]
[Edited by Jim Dean on 2/21/2021 5:10 PM]
|
|
gary
 Member
Posts: 16
Joined: 12/13/2003
Location: Houston, TX
User Profile |
Try this one. It uses a shorter lag MA and catches a symbol at the crossing of the MAs going up. The scan seems to show some promising ones but I noticed it can also give a lot of whipsaws. Might need to experiment with period of MAs.
(C > ZMA(8) AND C > ZMA(14)) AND (C[1] <= ZMA(8)[1] AND C[1] <= ZMA(14)[1])and(ZMA(8)>ZMA(14)and ZMA(8)[1](14)[1])
|
|
gary
 Member
Posts: 16
Joined: 12/13/2003
Location: Houston, TX
User Profile |
Having trouble getting the formula copied right into this message. here it is:
(C > ZMA(8) AND C > ZMA(14)) AND (C[1] <= ZMA(8)[1] AND C[1] <= ZMA(14)[1])
and(ZMA(8)>ZMA(14)and
ZMA(8)[1]< ZMA(14)[1])
|
|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
Hello again Jim, AS USUAL YOU HIT THE NAIL ON THE HEAD ! Also thanks to Mark and Gary for their inputs ! Stay Safe
|