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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
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
|
|
|
|
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)
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
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.
|
|
|
|
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)
|
remember: there's more than one way to skin a wabbit!!!
:LOL:
wabbit :D
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/8/2005(UTC) Posts: 12
|
thanks for the help guys!
-fousc
|
|
|
|
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 |
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.