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

Notification

Icon
Error

Options
Go to last post Go to first unread
guara_riua  
#1 Posted : Monday, January 16, 2006 3:14:19 PM(UTC)
guara_riua

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/24/2005(UTC)
Posts: 77
Location: Canada

This is a BIG request for anybody who can develop a DLL to support this feature. If it's possible to find a good implementation for a generic recursive function with a format like this one: - f:= P1*PrType + P2*PrType[1] + P3*PrType[2] + P4*PrType[3] + P5*PrType[4] +A*f[1] +B*f[2] +C*f[3] +D*f[4]; (where f[1],f[2],f[3] and f[4] are references to the function itself 1,2,3 and 4 bars ago repectively. "PrType" is a selection of Std. Price Types OHLC,MP(),Typ() or the output of an external Indicator, refenced 1,2,3 and 4 bars ago. P1,P2,P3,P4,P5,A,B,C,D are constant coeficients that can be entered by the user in the function call parameters list; each one can be Zero as well.) In this case, pretty much any kind of filter can be implemented. To cover even a greater range, maybe up to 6 backward references can be considered. I hope to hear good news on this one. Guara
Patrick  
#2 Posted : Tuesday, January 17, 2006 5:44:24 AM(UTC)
Patrick

Rank: Advanced Member

Groups ready for retrieval: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
I think I have an idea for this ... I can't look into it right now but I wanted to acknoledge your post ... Patrick :mrgreen:
kztd  
#3 Posted : Friday, March 24, 2006 11:09:36 PM(UTC)
kztd

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/22/2006(UTC)
Posts: 7

This sounds more like a lookback function than recursion for two reasons: One, Recursion, i think, should call itself back exactly once per instance. Two, your function won't be defined once u run out of bars to look back at. Here I think you want to maintain history, say in an array. Try solving the problem for the 1st bar, then the second, and see where that gets u. Karl
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.