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

Notification

Icon
Error

Options
Go to last post Go to first unread
wabbit  
#1 Posted : Tuesday, June 7, 2005 1:32:15 PM(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)
Patrick, I was having a think whilst answeing Claude's cycles question about the PREV function. Where does its logic come from? Surely when the code cutters were inventing this little gem of a function, they must have been taking some serious drugs? If the Ref(data array, periods) function looks at the value of a data array _periods into the past or the future, then surely: x:=Ref(x,-1) should equate to x:=PREV ??? I know in MS you cannot have self referencing formula (like x=x+1) but isnt that what PREV is doing? Referencing itself, at the previous bar? Maybe this is something that should be looked at in future versions of MS? wabbit :D
Patrick  
#2 Posted : Tuesday, June 7, 2005 2:19:57 PM(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)
I don't know what drug they used but it was a good one :) You are right the prev is like self referencing and I'm actually happy it is there because it is quite handy. Sure it would have been better to have something else but it's better than nothing :D Changing the way formula writing is done would be a huge project, I doubt this would be for anytime soon. 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.