OmniTrader Professional Forum OmniTrader Professional 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 Professional Forum
OmniTrader Pro General Discussion
52 Week New High
Last Activity 6/13/2019 2:37 PM
8 replies, 188 viewings

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

^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : 52 Week New High
Posted : 6/8/2019 3:01 AM
Post #30449

Would someone be able to write a Strategy omniscript or formula that will make the following happen.“As soon as the weekly closing stock price is equivalent
to or greater than the weekly closing stock price 52 weeks ago, the buy signal is triggered.
The blue dotted line shows the 52 week countback.”
Not a rolling 52 week high
Other parameters (along with the 52 week closing high) to be met for the signal to be valid are: The 11 EMA weekly is to be above a 12 EMA weekly (to define the trend has been in place a few months, not a recent price spike which is likely to fail)
Attached file : Peter-E-book_Mindful_Trading__using_Winning_Probability_V1.jpg (116KB - 33 downloads)

^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/11/2019 1:08 PM
Post #30450 - In reply to #30449

Anyone?
^ Top
THOMAS HELGET

Legend
50025
Posts: 531

Joined: 3/22/2006
Location: BALDWINSVILLE, NEW YORK

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/12/2019 6:04 PM
Post #30451 - In reply to #30450

Barryc48:

Attached is an OmniScript for what you requested.

But please note that it must be run on Weekly Data Only.

That means that either Weekly must be selected as your Period Type or WK must be selected for your Chart Periodicity.

If you select the first option you could Add System Column to show signals firing on a large Focus List to zoom in to further explore your possibilities.

Tom Helget

P.S. Oh, and if you truly want the current weekly close price to be greater than the weekly closing price 52 weeks ago you should only "run" this after the close on the last trading day of the week.

[Edited by THOMAS HELGET on 6/12/2019 6:16 PM]

Attached file : sys52WeekNewHigh.txt (0KB - 16 downloads)

^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/12/2019 7:02 PM
Post #30452 - In reply to #30449

Much appreciated , will give it a try
^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/13/2019 2:50 AM
Post #30453 - In reply to #30449

Hi, Needs to be latest signal only, seems to be firing a long way back
Attached file : Capture 2.PNG (157KB - 7 downloads)

^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/13/2019 2:54 AM
Post #30454 - In reply to #30449

Not sure how to get rid of reinforced votes I have tried changing chart etc just need a clean buy signal if there is one from the search
^ Top
Jim Dean

Sage
20001000100100
Posts: 3209

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

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/13/2019 5:59 AM
Post #30455 - In reply to #30454

Your original request was for a Strategy (component) that generates signals per your specs. But Entry signals are only a part of the strategy. You also have to create exit signals, or the trade will never end (using strategy+voteline method).

If what you *meant* to request was simply a Focus List column (or OmniScan) that shows long signals at the hard right edge, then what you need is a script for a Quick Indicator Focus List spec. The version of Tom’s System code in that form looks like:

C >= C[51] AND EMA(11) > EMA(12)

This formula matches what you described. My guess is that your description was incomplete, and that you intended to say: the 11-week MA has *just now* crossed over the 12-week ema.

That eliminates some of the reinforcing signals:
C >= C[51] AND EMA(11) > EMA(12) AND EMA(11)[1] <= EMA(12)[1]

If you plot this as a quick indicator, you’ll see a square wave with -1 spikes wherever a Signal first occurs. If you assign it to a FL column, it will show -1 for bars with a signal, and zero otherwise.

If otoh you do want a full strategy with a voteline etc, you’ll need to modifyTom’s #System code comparably, AND include whatever exit rules you want in a Trade Plan or Orders Block. For example, a possible Omniscript for a TP exit might be:
EMA(11) < EMA(12)

(Moral of the story: when posting requests, use appropriate specific terms that match the OT world (ie Strategy or Focus List or System or Indicator), and don’t forget adverbs such as “just” crossed. Specific descriptions will encourage people to help, rather than having to do back and forth posts to find out what you really intended. This is probably *the most common* problem with posts of this nature not getting quick responses. If the description is incomplete or vague or uses terms that don’t match the OT world, then the responder needs to “guess”, and to spend extra time with repeated tweaks. Hope this helps.)

^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/13/2019 2:34 PM
Post #30456 - In reply to #30449

Thanks for looking at this Jim, re the moral , it is that I am not a programmer and do not know any rules . I am looking for help to get this outcome , so from me it’s I ask you ask what I am trying to do.
Bazz
^ Top
Barryc48

Member

Posts: 19

Joined: 4/13/2012
Location: Sydney Australia

User Profile
 
Subject : RE: 52 Week New High
Posted : 6/13/2019 2:37 PM
Post #30457 - In reply to #30449

Skype barryc48 or email barryc48@optusnet.com.au
If people would like to help
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.