OmniTrader Forum
-
OmniScan
HAVING A BRAIN FREEZE |
^ Top | ||
Gerry![]() Posts: 277 Joined: 12/24/2003 Location: Lewiston, Maine 04240 ![]() | 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 | |
^ Top | ||
mgerber![]() Posts: 40 Joined: 12/18/2003 Location: Issaquah, WA ![]() | 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. | |
^ Top | ||
Gerry![]() Posts: 277 Joined: 12/24/2003 Location: Lewiston, Maine 04240 ![]() | 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 | |
^ Top | ||
Jim Dean![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() | 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] | |
^ Top | ||
gary![]() Posts: 16 Joined: 12/13/2003 Location: Houston, TX ![]() | 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] | |
^ Top | ||
gary![]() Posts: 16 Joined: 12/13/2003 Location: Houston, TX ![]() | 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]) | |
^ Top | ||
Gerry![]() Posts: 277 Joined: 12/24/2003 Location: Lewiston, Maine 04240 ![]() | Hello again Jim, AS USUAL YOU HIT THE NAIL ON THE HEAD ! Also thanks to Mark and Gary for their inputs ! Stay Safe |