OmniTrader Professional Forum - OmniTrader Pro General Discussion
help with filter block

^ Top
Buffalo

Posts: 579

Joined: 7/11/2007
Location: Braintree, MA

User Profile
 
Subject : help with filter block
Posted : 8/30/2021 5:24 PM
Post #31588

Ok - I want to put in a filter to BLOCK trades when these conditions exist on the SPY:

(MACD_HIST(10,15,90)<0) AND ((VTY_PRICE(10,25)>VTY_PRICE(10,20)[1]) OR (VTY_PRICE(10,25)>VTY_PRICE(10,25)[1])) AND ((BOL_UPPER(14,1.20)>=H) AND (BOL_Middle(14,1.20)>=L))

Can I use "NOT" then this formula?

I don't think simply reversing the "<" to ">" for example will give me what I want.

If either of those conditions are present on the SPY I don't want trades to go thru.

Can't figure this one out!
^ Top
Jim Dean

Posts: 3389

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: help with filter block
Posted : 8/30/2021 7:52 PM
Post #31589 - In reply to #31588

Yep the easiest approach is to NOT( …the whole thing …)
^ Top
Buffalo

Posts: 579

Joined: 7/11/2007
Location: Braintree, MA

User Profile
 
Subject : RE: help with filter block
Posted : 8/31/2021 9:12 AM
Post #31591 - In reply to #31588

Thanks Jim!


https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=7953&posts=3