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

Notification

Icon
Error

Options
Go to last post Go to first unread
swordman  
#1 Posted : Tuesday, May 16, 2006 8:48:21 AM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

Dear friends here : I would like to know how to write a formula to trigger a signal ONLY when one oscillating type indicator rise back from its oversell zone when it cross a trigger value at the first time . I use the RSI(14) as example . If I define the oversell zone is 30 and the trigger value at 45 . example : Value of RSI Day1- 48 Day2- 29 ( entered the oversell zone ) Day3- 25 Day4- 35 ( it left the oversell zone but not yet the trigger value ) Day5- 42 Day6- 47 ( it cross the trigger value 45 , I want this signal valid only , not any after UNTIL it drop under 30 again ) Day7- 50 Day8- 40 ( it drop under the trigger line again ) Day9- 48 ( it cross 45 again but this is what I want to filter out as it is not the first time it cross the trigger value after it entered the oversell zone , there maybe several times it drop under 45 and then cross over again . I want to filter all out until it drop under 30 and make another new valid signal ) I read the formula wrote by someone about the “shark ” formula in TASC but it seems hard to replace the function . I would like to have your help to do it in a flexible way and easy to replace the RSI when some other indicator are used .
smg  
#2 Posted : Tuesday, May 16, 2006 9:53:24 AM(UTC)
smg

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/13/2005(UTC)
Posts: 90

Mr. swordman, You may have a look at the Latch Function in Forum DLL. It should be possible to do what you want to do with it. Regards SMG
swordman  
#3 Posted : Tuesday, May 16, 2006 10:04:31 AM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

thanks , smg . I will take a more detail look to it . Moreover . I would like to make this signal an alert signal only . The real trigger signal , eg , maybe a cross over a sma line so a cross over the 45 trigger line will only fullfill only a part of the entry requirement . Something like that .
swordman  
#4 Posted : Wednesday, May 17, 2006 9:19:03 AM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

Dear friends who read this message . I have read the forum dll document but have a little bit not clear about the latch function of it . I dont understand the syntax of the function ''Z:= ExtFml(¡§forum.Latch",LE,LX,0,0);" . Is that mean there are four variable after the word latch . Since there are few explanation about the external function in the manual . I still cannot figure out how to substitute my condition in the formula . Is there any other formula here by someone who use this external function that can let me know more about it ? Sorry if you think it is dump to ask this as this is my first time I contact this external function .
wabbit  
#5 Posted : Wednesday, May 17, 2006 9:34:16 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)
Yes the latch takes four arguments, but you only need two, so replace the last with zeroes. Try this: ind:=RSI(C,14); LE:=ind>45; LX:=ind<30; SE:=0; SX:=0; extfml("Forum.latch",LE,LX,SE,SX); All you have to do now is to trap when the latch changes values to signal, which is in the manual. wabbit :D
swordman  
#6 Posted : Saturday, May 20, 2006 3:22:14 AM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

Thanks wabbit . I will have a thorough try in my weekend . You are not the forum operator . You ARE the forum angel ! :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.