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

Notification

Icon
Error

Options
Go to last post Go to first unread
adheerp  
#1 Posted : Thursday, September 15, 2005 4:41:53 AM(UTC)
adheerp

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/8/2005(UTC)
Posts: 9

I created a formula stochRSI as follows. The periods is defined by a variable nPeriod. [code:1:07ddac7f43] nPeriod := 14; fStochRSI := ( RSI(nPeriod) - LLV(RSI(nPeriod) ,nPeriod) ) / ( HHV(RSI(nPeriod) ,nPeriod) - LLV(RSI(nPeriod),nPeriod) ); [/code:1:07ddac7f43] Now, I how do I set the nPeriod variable dynamically when I invoked it from another formula or say an expert ? Is there a way I can programmatically override the nPeriods value to be something other than 14 ? [code:1:07ddac7f43]stochRSIVal := FmlVar("stochRSI", "fStochRSI");[/code:1:07ddac7f43]
Patrick  
#2 Posted : Thursday, September 15, 2005 4:53:37 AM(UTC)
Patrick

Rank: Advanced Member

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

Was thanked: 1 time(s) in 1 post(s)
Adheerp, that's exactly what the varaible functions in the forumdll are for ... Take a look at the Function Dll forum ;) Patrick :mrgreen:
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.