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

Notification

Icon
Error

Options
Go to last post Go to first unread
pyrri  
#1 Posted : Sunday, June 18, 2006 4:21:29 PM(UTC)
pyrri

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/18/2006(UTC)
Posts: 5

Hi everyone, I am new using metastock and I wonder whether is possible to create the formula to find one of my favorites chart patterns: the high and tight flag pattern. I have no idea on how to create new indicators or formulas, I just got metastock a few days ago, but after having a look at this forum I think it might be possible to create such formula. Anyone who may help? Thanks !!!
wabbit  
#2 Posted : Monday, June 19, 2006 12:48:32 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
pyrri, Welcome to the Forum. I hope you find the information in this peer-to-peer support network useful. Although many of the people here have awesome in-depth knowledge of TA, it is not possible that everyone knows everything. Many people do not use flag patterns, and hence have no idea what your "high and tight" pattern is. I certainly don't! When requesting help, you need to provide as much information as possible. What EXACTLY is the pattern you are looking for, in explicit detail? Could you provide a link to page where it is explained? Could you attach a graph showing the pattern? -- Have you read through the MS Users Manual? There is a wealth of knowledge in there that will get you writing your own indicators in no-time. Once you have read the manual (I recommend twice) then download the free Equis Formula Primer (available from the downloads section) and work your way through that. This will give an excellent base for you to start writing your own code. If you get stuck when you are writing your code, please post here a FULL description of what you are trying to achieve, and a FULL description of the problem/error, along with ALL of the relevant code, and I am sure someone will be able to help you out. If you don't want to write your own code, then I suggest that you hire some professional services. wabbit :D
pyrri  
#3 Posted : Monday, June 19, 2006 4:58:23 PM(UTC)
pyrri

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/18/2006(UTC)
Posts: 5

Thanks Wabbit, You can have a look at this http://www.womenswallstr...ews/ibd/ibd.aspx?aid=375 I will try to find a better description of it. :roll: Pyrri
pyrri  
#4 Posted : Monday, June 19, 2006 7:01:12 PM(UTC)
pyrri

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/18/2006(UTC)
Posts: 5

Have a look at this: http://mysite.verizon.net/resppzq7/htf.html One more thing about this pattern is that usually it forms after a flat base. I have included a few charts in which you can see this pattern. http://stockcharts.com/h...n=7&dy=0&id=p58599055665 , started on the 21st Feb 2006 (after flat base) and reached the climax beginning of April. http://stockcharts.com/h...n=0&dy=0&id=p35650579187 , end of january till beginning of april. I hope you find this useful. Regards
wabbit  
#5 Posted : Tuesday, June 20, 2006 12:26:26 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Well it would take a lot of time to code the instructions as per http://mysite.verizon.net/resppzq7/htf.html and I am sure that it throw up a large number of false positives. My recommendation, use your exisiting knowledge and the MS Users Manual and Equis Formula Primer to code the first criteria, 90% rise in two months. Put that in an exploration and run it to find all the candidate charts, then flick through them to eyeball the rest of the pattern. Although I am sure that someone is making money from their identification of the 253 patterns in the books, I just doubt whether the time spent to find this pattern would give adequate returns? wabbit :D
pyrri  
#6 Posted : Wednesday, June 21, 2006 6:02:59 PM(UTC)
pyrri

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/18/2006(UTC)
Posts: 5

Thanks Wabbit, I can not do it yet, I am not good enough using metastock. But your suggestion makes sense. Regards!!
wabbit  
#7 Posted : Thursday, June 22, 2006 12:43:27 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Because I have finished my exams now !!! YAY !!! =D> :yahoo: :thumbup: Here is my take on finding the change in the price in the last two calendar months of the chart... --8<------------------------------ {Exploration} {ColA - %} theDay:=LastValue(DayOfMonth()); theMonth:=LastValue(Month()); theYear:=LastValue(Year()); {subtract two months} theMonth:=theMonth-2; {roll back years and days as necessary} theYear:=If(theMonth<=0,theYear-1,theYear); leapYear:=Mod(theYear,4)=0 AND Mod(theYear,100)<>0 OR Mod(theYear,400)=0; theMonth:=If(theMonth<=0,theMonth+12,theMonth); theDay:= If(theMonth=4 OR theMonth=6 OR theMonth=9 OR theMonth=11,If(theDay>30,30,theDay), If(theMonth=2 AND leapYear, If(theDay>29,29,theDay), If(theMonth=2 AND leapYear=0,If(theDay>28,28,theDay),theDay))); x:=Year()>theYear OR (Year()=theYear AND (Month()>theMonth OR Month()=theMonth AND DayOfMonth()>=theDay)); y:=x AND Alert(x=0,2); i:=Cum(1)=1; (x>0)*(100*C)/ValueWhen(1, y OR i,C); --8<------------------------------ This will return a percentage change of the last close versus the close of the first bar traded two calendar months ago. Set your filter as required, in this case you want a 190% rise in the period... so --8<------------------------------ {Filter} ColA>=190 --8<------------------------------ I hope you find this useful. Let me know if there are any bugs. ( I have had a few glasses of wine tonight, so expect anything from the code! :onebeer: :boire: ) wabbit :D
pyrri  
#8 Posted : Thursday, June 22, 2006 4:48:37 PM(UTC)
pyrri

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/18/2006(UTC)
Posts: 5

Wow !, FINISHED YOUR EXAMS NOW? , don´t tell me your are at the uni, or college. How old are you mate?. These americans are incredible =D> . When you are my age you will be a millionaire, things are different here in Europe, glad to see youngsters move fast. Anyway, and being honest, I have no idea about how to read all that you posted, but as I said, it is my fault, I do not know anything about programming or metastock, I do my investing based on not so technical parameters. I will try to learn how to use all that stuf, although it will take me time. If you can do it on your computer and can identify this patern, use it, cos this patern is the most profitable and reliable one. Suggestion: Use a 100% rise rather than a 190%, and use a period of just a couple of weeks for it rather than 2 months, specially if you are dealing with OTC or PINK SHEETS. Keep me update with your findings. Regards
wabbit  
#9 Posted : Friday, June 23, 2006 3:38:17 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
pyrri wrote:
don´t tell me your are at the uni, or college. How old are you mate?.
Yes I have finished my University exams for this semester. I am at Uni having spent 18 years in the workforce after leaving school, so I am no spring-chicken!
pyrri wrote:
These americans are incredible
!!! That's AUSTRALIAN, mate!!! You know, one of the few teams in the World Cup second round!
pyrri wrote:
I have no idea about how to read all that you posted, but as I said, it is my fault, I do not know anything about programming or metastock
Grab your copy of the MS USers Manual and a glass or two of wine and go the the code line by line. There is no rocket science in there, it is all just simple data processing. This is the best way to learn, take some existing code to pieces to find out how it works. You will quickly discover there are many ways to achieve the same result, what I have shown is just one method.
pyrri wrote:
Suggestion: Use a 100% rise rather than a 190%
Its not really 190% percent rise, think of it more like a multiplier. If the price is the same now as it was 2 months ago the ratio is 1 or 100%, if the price now is half of the price then the value will be 0.5 or 50%, if the price has increased by 90% over the time period the value will be 1.9 or 190% A note about the code, the explorer will return the difference of the last bar in the chart versus the bar two calndar months ago. If the price has skyrocketted and come back down, this will not shown in the exloration; similarly, if the price has plummetted and come back up, this will not be shown in the explorations. If you need to include/exclude these events then you will need to modifiy the last line(s) of the code slightly. wabbit :D
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.