logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
SteveB  
#1 Posted : Tuesday, April 19, 2005 9:29:51 PM(UTC)
SteveB

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/14/2005(UTC)
Posts: 65
Location: Cocoa, Florida

In the May 2005 edition of Stocks & Commodities magazine, there is an Exploration for the Flag and Pennant Pattern. I went to the S&C web site and did a copy/paste of it column by column but when I click Ok to save it, Column E has a problem. I get "This is not a recognized name, constant or operator" with the cursor blinking in front of this statement TARGET:=1.94* Power(pole ,.724);TARGET The entire formula for that column is as follows: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE TARGET:=1.94* Power(pole ,.724);TARGET I am using Version 8 Pro. Can anyone tell me what is wrong? Steve
henry1224  
#2 Posted : Tuesday, April 19, 2005 9:37:58 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724); Pole;TARGET;
SteveB  
#3 Posted : Tuesday, April 19, 2005 9:53:43 PM(UTC)
SteveB

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/14/2005(UTC)
Posts: 65
Location: Cocoa, Florida

Thanks very much Henry for the quick reply. I am getting the same thing now in Column F which reads: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C so I assume it should be: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C Pole;TARGET; Is this correct? Steve
henry1224  
#4 Posted : Tuesday, April 19, 2005 10:01:37 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
Steve, I don't have the article so I will try and wing it. zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724); Pole;TARGET; As an Indicator The above formula plots 2 lines on the price chart Now in an exploration you only want to get 1 value as the end result zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724); TARGET; and your last col would be zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C If you would like to post all of the columns I'll correct them
SteveB  
#5 Posted : Tuesday, April 19, 2005 10:18:10 PM(UTC)
SteveB

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/14/2005(UTC)
Posts: 65
Location: Cocoa, Florida

Henry, That seemed to take care of it as I did not get any more errors but here is the whole thing in case you see anything else wrong with it: MetaStock exploration for system to detect flag and pennant patterns Column A Name: Price Formula: C Column B Name: Pole Top Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1);C2 Column C Name: Pole Bot Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; C3:=Ref(LLV(C,26),-X1);C3 Column D Name: Pole % Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE Column E Name: Target % Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE TARGET:=1.94* Power(pole ,.724);TARGET Column F Name: Target Price Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C Filter The filter formula is exactly the same used for the Enter Long Order of the System Test. Run the exploration on the desired securities and display the report. Column A is the prebreakout price, column B is the highest point on the flag pole, column C is the pole base, column D is the % pole height, column E is the target % profit, and column F shows the target price. All prices are on a closing basis. Columns B-F are not essential for running the exploration, but they will help to calculate your exit price target. Thanks once again. You are a great help! Steve
henry1224  
#6 Posted : Tuesday, April 19, 2005 10:27:36 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
this should now be the corrected formulas for the exploration MetaStock exploration for system to detect flag and pennant patterns Column A Name: Price Formula: C Column B Name: Pole Top Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1);C2 Column C Name: Pole Bot Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; C3:=Ref(LLV(C,26),-X1);C3 Column D Name: Pole % Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE Column E Name: Target % Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724);TARGET Column F Name: Target Price Formula: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100; TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C Filter The filter formula is exactly the same used for the Enter Long Order of the System Test. Run the exploration on the desired securities and display the report. Column A is the prebreakout price, column B is the highest point on the flag pole, column C is the pole base, column D is the % pole height, column E is the target % profit, and column F shows the target price. All prices are on a closing basis. Columns B-F are not essential for running the exploration, but they will help to calculate your exit price target.
SteveB  
#7 Posted : Tuesday, April 19, 2005 11:27:00 PM(UTC)
SteveB

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/14/2005(UTC)
Posts: 65
Location: Cocoa, Florida

Henry, I started over based on your changes and just tried it out. Everything works great! Thank you for your time and knowledge. Steve
skeetabomb  
#8 Posted : Thursday, April 28, 2005 6:39:11 PM(UTC)
skeetabomb

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/28/2005(UTC)
Posts: 41
Location: London

SteveB, The problem lies here: zz:=Zig(C,17,%); X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2)); X1:=LastValue(X)+1; c2:=Ref(HHV(C,(2+X1)),-1); c3:=Ref(LLV(C,26),-X1); POLE:=(C2-C3)/C3*100;POLE TARGET:=1.94* Power(pole ,.724);TARGET So you know for next time, Metastock removes all line breaks from a formula before evaluating it, so what you see as: ...;POLE TARGET:=...;TARGET Metastock sees as: ...;POLE TARGET:=...;TARGET Can you see the problem? You are calling "TARGET", but to Metastock, no such variable exists! Cheers, SteveD/skeetabomb. :wink:
SteveB  
#9 Posted : Thursday, April 28, 2005 7:11:58 PM(UTC)
SteveB

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/14/2005(UTC)
Posts: 65
Location: Cocoa, Florida

Skeet, Yes, I see the problem now. Thanks for explaining it. It's helpful and I will watch for it in the future. Steve B
theghost  
#10 Posted : Friday, May 13, 2005 9:35:22 PM(UTC)
theghost

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Hi, trying to get this working in Explorer. I have copied and pasted all the columns but not the filter column. Can you tell me 1. What is the formula I need to copy into the Filter sector of the exploration. 2. What do I need to enter into the indicator bulder as I dont have anything in there, 3. & you mentione the system test for it, What needs to be entered into what for the system test 4. & finally, If I only want to return results for flags and pennants for the exploration with a pole height of at least 20% how can I do this? Any clues? Hope you can help, I really want to get this up and running, but just dont have the info in the correct places, etc Many thanks Theghost
lcl  
#11 Posted : Tuesday, May 24, 2005 4:54:01 AM(UTC)
lcl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/22/2005(UTC)
Posts: 59

henry1224 wrote:
Filter The filter formula is exactly the same used for the Enter Long Order of the System Test.
Dear Steve and Henry, As I don't have the article, mind to share the filter formula? Many thanks!
lcl  
#12 Posted : Tuesday, May 24, 2005 7:38:55 AM(UTC)
lcl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/22/2005(UTC)
Posts: 59

I've found the answer..... :D Here is the link for the answer: http://forum.equis.com/v...4c72cc94622ed5cb97b986d7 Many thanks to Steve and Ghost!
eddie.m  
#13 Posted : Friday, March 15, 2013 3:38:00 PM(UTC)
eddie.m

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/20/2012(UTC)
Posts: 152

Was thanked: 1 time(s) in 1 post(s)
Khandelia wrote:

Hello

How can I configure John Murphy's Chart Pattern Recognition to detect Flags and Pennants patterns? Despite of formulas aren't available neither in Expert Advisor nor Explorer, it's mentioned under the key features section of the product page.

Thanks

Hi there, [:)]

For amazing results of +29,000% return from someone who used chart patterns, Flags & pennants included, but no Indicator, Expert Advisors, or System Testers in his trading go to

http://www.chartpattern.com/chartpatternsignup.cfm?TrackVal=dzyahoo

PS: I never tried his service.

eddie.m  
#14 Posted : Saturday, March 16, 2013 8:11:52 PM(UTC)
eddie.m

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/20/2012(UTC)
Posts: 152

Was thanked: 1 time(s) in 1 post(s)
Khandelia wrote:

Hello

Of course, I'm novice in learning MetaStock programming language. I wish to get knowledge first and everything later. However, since it became impossible to find specific stocks with profitable pattern from all market, I was asking the codes to be used with CPR.

Thanks

Hi Raj,

1). Dan Zanger seems to be the King of some price patterns, flags & pennants included. The link I pointed you to was for you to read so that you know a bit more than CPR.
(Disclaimer: I do not get paid to mention that link). [:D]

Khandelia wrote:
Please don't suggest the path, you never travelled.

2). I am amused ... [:D] You, as a novice looking for answers, give advice. Yeah right ... [:D]

3). Of course you are a beginner. [:)] Only beginners ask silly questions, and they are rude and very anal. This is normal because they come from the troubled corporate world hoping to enter the kingdom of profits working from home in cyberspace. What is not normal though is for beginners not to grow. Did you know that you can remain a beginner for the next 15 years and ultimately fail at trading if you continue with bad attitudes? [6]
Do you know that in the stock markets more than in any other profession your mind plays tricks on you? [:$]

4). You already did the biggest mistake to the Stock Markets: you are late. Why did you not ask your questions 6 years earlier? [;)] Eeeeh?

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.