OmniTrader Forum OmniTrader Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


  Current location        Thread information  
OmniTrader 2017 Upgrade Forums
Trade Plans
Price above EMA
Last Activity 1/19/2018 2:21 PM
8 replies, 667 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
Stumpy

Veteran
100100
Posts: 208

Joined: 5/25/2004
Location: Australia

User Profile
 
Subject : Price above EMA
Posted : 12/23/2016 11:50 PM
Post #38600

hi anyone I am using omnitrader 2017 and would like to add a filter price above an ema for long and below for short can someone please help
^ Top
Robert Hall

Member

Posts: 20

Joined: 2/22/2004
Location: Woodstock, Illinois

User Profile
 
Subject : RE: Price above EMA
Posted : 12/25/2016 1:19 AM
Post #38605 - In reply to #38600

Since no one has answered your question and I am not otherwise preoccupied, the filter would go something like this: C > EMA(C,21) for longs and C < EMA(C,21) for shorts. The assumption is that your EMA is a 21 period EMA or substitute any other number since you were not specific about the period. Another assumption is that you wanted to use the closing price of the period, but you could use open, high or low or any other variation if you so desired. Hope this helps.
^ Top
Stumpy

Veteran
100100
Posts: 208

Joined: 5/25/2004
Location: Australia

User Profile
 
Subject : RE: Price above EMA
Posted : 12/25/2016 4:17 PM
Post #38607 - In reply to #38600

Thanks Robert that works well if I use either the long or the short filter but when I put both on at the same time it does not seem to work ?????
I put on formula in longs and the other in shorts but it seems to interfere with each other and cancel the filter on some signals
PS hope Christmas was Great for you and Yours
^ Top
Jim Dean

Idol
20005001001002525
Posts: 2761

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Price above EMA
Posted : 12/25/2016 4:21 PM
Post #38608 - In reply to #38607

Since neither of the formulae address the case if C is equal to the ema, if a signal appears in that case, it won't pass. Note however that this is a fairy uncommon situation.

Might be helpful if you could post a snapshot of the filter block for further diagnosis.
^ Top
Robert Hall

Member

Posts: 20

Joined: 2/22/2004
Location: Woodstock, Illinois

User Profile
 
Subject : RE: Price above EMA
Posted : 12/26/2016 8:55 AM
Post #38609 - In reply to #38600

Hello Stumpy, the assumption that I made is that you were referring to a filter in a strategy which may not be the case. You mention the term "filter price" which may be interpreted as a verb or an adjective. Regardless, I am not sure what you want as placing the filter formulas simultaneously would, as you say, cancel each other and you would only pass those securities wherein the EMA equals the close which, as Jim mentioned, is uncommon. So, maybe take a picture of what you don't want and maybe it will be possible to see what you do want. Best regards for a Happy New Year.
^ Top
Stumpy

Veteran
100100
Posts: 208

Joined: 5/25/2004
Location: Australia

User Profile
 
Subject : RE: Price above EMA
Posted : 12/27/2016 12:17 AM
Post #38610 - In reply to #38600

HI, I WANT TO FILTRE OUT TRADES BELOW MA FOR LONG AND ABOVE MA FOR SHORT THIS WHAT I HAVE SO FAR BUT IT DOES NOT SEEM TO WORK HAVE A FILTRE FOR SHORT AS WELL BUT WOULD LIKE TO GET THE LONG TO WORK FIRST.
THANKS FOR THE HELP DEAN AND I TRUST YOUR CHRISTMAS WAS GREAT

[Edited by Stumpy on 12/27/2016 12:27 AM]

Attached file : SCREEN PRINT.docx (162KB - 60 downloads)
Attached file : screen print 2.docx (160KB - 58 downloads)

^ Top
Mel

Veteran
10010025
Posts: 231

Joined: 12/30/2003
Location: Kensington

User Profile
 
Subject : RE: Price above EMA
Posted : 12/27/2016 8:58 AM
Post #38611 - In reply to #38610

For screenprint 1, the long condition needs a > rather than a <

For screenprint 2, use C>SMA(20) for the long condition.
^ Top
Jim Dean

Idol
20005001001002525
Posts: 2761

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Price above EMA
Posted : 12/27/2016 10:24 AM
Post #38613 - In reply to #38611

Looks like you are using a different language.

I don't know about the MAXOcount thing - if that is an OLang function then I never saw it before or used it.

Replace your MA formulae, the long condition is C > SMA(20) and the short condition in the same filter block is C < SMA(20).

You can change the 20 as desired.

Ps: please don't use all-uppercase … it "reads" as if you were SHOUTING. Thanks.

[Edited by Jim Dean on 12/27/2016 10:26 AM]

^ Top
Stumpy

Veteran
100100
Posts: 208

Joined: 5/25/2004
Location: Australia

User Profile
 
Subject : RE: Price above EMA
Posted : 12/27/2016 7:19 PM
Post #38614 - In reply to #38600

Thanks Jim sorry about the SHOUTING lol the max count thing is standard in GMMA 2
but it seems to interfere with the 20ma filtre
Kindest Regards Ralph
Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.