OmniTrader Forum - OmniScan
HAVING A BRAIN FREEZE

^ Top
Gerry

Posts: 277

Joined: 12/24/2003
Location: Lewiston, Maine 04240

User Profile
 
Subject : HAVING A BRAIN FREEZE
Posted : 2/21/2021 3:32 PM
Post #47914

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

User Profile
 
Subject : RE: HAVING A BRAIN FREEZE
Posted : 2/21/2021 3:56 PM
Post #47915 - In reply to #47914

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

User Profile
 
Subject : RE: HAVING A BRAIN FREEZE
Posted : 2/21/2021 4:53 PM
Post #47916 - In reply to #47914

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

User Profile
 
Subject : RE: HAVING A BRAIN FREEZE
Posted : 2/21/2021 5:09 PM
Post #47917 - In reply to #47916

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

User Profile
 
Subject : RE: HAVING A BRAIN FREEZE
Posted : 2/21/2021 9:39 PM
Post #47918 - In reply to #47917

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])
^ Top
gary

Posts: 16

Joined: 12/13/2003
Location: Houston, TX

User Profile
 
Subject : RE: HAVING A BRAIN FREEZE
Posted : 2/21/2021 9:59 PM
Post #47922 - In reply to #47918

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

User Profile
 
Subject : RE: HAVING A BRAIN FREEZE
Posted : 2/22/2021 4:00 PM
Post #47925 - In reply to #47917

Hello again Jim, AS USUAL YOU HIT THE NAIL ON THE HEAD ! Also thanks to Mark and Gary for their inputs ! Stay Safe


https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16388&posts=7