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

Notification

Icon
Error

Options
Go to last post Go to first unread
blackcat54  
#1 Posted : Friday, April 30, 2010 11:37:07 AM(UTC)
blackcat54

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/23/2010(UTC)
Posts: 60

I think I've found an error in the Forum DLL Manual doc for the Variable Reference Function #3.

In the original MS Ref function, a neg Period references "n" periods ago.

In the Variable Ref function, a neg Period references "n" periods in the future.

I spent alot of time puzzling over why my code wasn't working....The misleading doc is why!

Although example 1 in the doc does give a correct explanation, the first sentence "This is the same as the MetaStock reference function except that it allows you to use a variable as periods." is misleading. It's not the same!

Dennis

wabbit  
#2 Posted : Friday, April 30, 2010 8:27:37 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)
The Forum.Ref function was written a long time ago. It was written by "committee" and it was decided that because Forum.Ref was most likely to be used with BarsSince() that positive values shall be used to look back into history, as BarsSince() always returns a positive value.


wabbit [:D]
Traetey  
#3 Posted : Thursday, June 24, 2010 6:23:26 AM(UTC)
Traetey

Rank: Member

Groups: Registered, Registered Users
Joined: 3/22/2010(UTC)
Posts: 16

Speaking of the forum dll ;

I wanted to play a bit with the "customIndex" function that is described in the reference manual -- but it seems to be missing in the dll (I got the forum20.dll file). Am I missing something?

(Sorry for hijacking the thread, thought that this was, well, kinda, related... [;)])
wabbit  
#4 Posted : Thursday, June 24, 2010 7:59:28 AM(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)
I forget all of the reasons why, but if I remember correctly the index function was removed because it contained some bugs.

I think you might still find a few legacy versions of the function flying around somewhere, and if you do, then use with caution!



wabbit [:D]
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.