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

Notification

Icon
Error

Options
Go to last post Go to first unread
royttm  
#1 Posted : Friday, September 29, 2006 6:05:30 AM(UTC)
royttm

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 3/27/2006(UTC)
Posts: 41
Location: Singapore

Hi,

Been trying to detect stock with head and shoulder formation and am using the following coding. The only difficulty I had is to determine the period for exploration, say detecting head and shoulder that exist for last 3 months data only.

May I know is there any possibilities of coding as I had found none so far. Hoping members here can help as I had spend the last few days trying to find out.

col A

Head:=Peak(2,H,5)

RightShoulder:=Peak(1,H,5)

LeftShoulder:=Peak(3,H,5)

If((Head>RightShoulder) AND (Head>LeftShoulder),1,0)

Filter: colA=1

hayseed  
#2 Posted : Friday, September 29, 2006 3:15:35 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey roy..... one way would be to load only a limited number of bars in the explorers data loading option.... 3 months would be about 63 bars, so perhaps you could load only a hundred..... just a quick thought......

and patricks dll had a date range function.....h

royttm  
#3 Posted : Saturday, September 30, 2006 8:17:36 AM(UTC)
royttm

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 3/27/2006(UTC)
Posts: 41
Location: Singapore

Hi hayseed, appreciate for the advice and hope you can elaborate a bit further or help me with any code for explorer editor, thanks.

hayseed  
#4 Posted : Saturday, September 30, 2006 1:03:47 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey roy.... below uses wabbits dll ..... the date needs to be in yearmonthday form... such as 20060901 being sept, 1, 2006.... the end date can be opened by placing a 0 in the end date place....

that will return only results vaid since the day you code in.... i used simplier codes as example below.... h

ExtFml( "myDll.DateRange", start date , end date or 0 )

---------------------------------------------


Exploration notes

Col A: a:= ExtFml( "myDll.DateRange",20060901 ,0 ) ; {wabbits dll}
C>10 AND C<20 AND a
Col B: C
Filter colA

Filter enabled Yes
Periodicity Daily
Records required 1300

-------------------------------------------

royttm  
#5 Posted : Sunday, October 1, 2006 5:21:57 AM(UTC)
royttm

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 3/27/2006(UTC)
Posts: 41
Location: Singapore

Hey hayseed....seem the formula very programming based and pardon me as I'm not programmer.

Furthermore I do not have the wabbits dll. All this while picking bits and pieces here and there for my explorer :-P

Anyway, thanks for your help.

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.