Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
fousc  
#1 Posted : Tuesday, September 20, 2005 5:49:43 AM(UTC)
fousc

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/8/2005(UTC)
Posts: 12

Does anyone have a formula or any information on an explorer that would search for gap ups, or down within like the last 5 days or something like this?

Regards,
Fousc
StorkBite  
#2 Posted : Tuesday, September 20, 2005 12:46:17 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 3,003

ColA: gapup(); {today}
ColB: ref(gapup(),-1); {yesterday}
ColC: ref(gapup(),-2); {2 days ago}
ColD: ref(gapup(),-3); {3 days ago}
ColE: ref(gapup(),-4); {4 days ago}
ColF: ref(gapup(),-5); {5 days ago}
Filter: ColA>0 OR ColB>0 OR ColC>0 OR ColD>0 OR ColE>0 OR ColF>0
wabbit  
#3 Posted : Tuesday, September 20, 2005 1:01:35 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/28/2004(UTC)
Posts: 3,018

Another couple of ways:

--8<---------------------------
Col A:
BarsSince(GapUp())

Filter:
ColA>0 and ColA<5

--8<---------------------------
Filter:
Alert(GapUp(),5)



Anyone got anymore?


wabbit :D
StorkBite  
#4 Posted : Tuesday, September 20, 2005 1:47:28 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 3,003

Well Wabbit... I'm ashamed now :oops: ... thanks for the lesson in humility! :P j.k.

Really, your code rocks! I was trying to come up with something quick... turns out that I failed the test of conciseness. That's what I love about this place.
wabbit  
#5 Posted : Tuesday, September 20, 2005 1:55:15 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/28/2004(UTC)
Posts: 3,018

remember: there's more than one way to skin a wabbit!!!

:LOL:

wabbit :D
fousc  
#6 Posted : Tuesday, September 20, 2005 2:07:47 PM(UTC)
fousc

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/8/2005(UTC)
Posts: 12

thanks for the help guys!

-fousc
investorretired  
#7 Posted : Tuesday, September 20, 2005 6:25:21 PM(UTC)
investorretired

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/13/2005(UTC)
Posts: 52

fousc

wabbit solution one looks at the last 6 days. If you want the last 5 days, elimate all reference to ColF

wabbit solution two looks at the last 4 days. If you want the last 5 days change ColA<5 to ColA<6.

Great coding by wabbit. Keep up the good work.
Users browsing this topic
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.

Notification

Icon
Error