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

Notification

Icon
Error

Options
Go to last post Go to first unread
vaughn  
#1 Posted : Sunday, November 5, 2006 2:15:16 PM(UTC)
vaughn

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/16/2005(UTC)
Posts: 93
Location: Maryland,US

I am testing the adaptive cycle toolkit and tried something I was working with on the forum.dll. I expected the results to be the same, but they are not. I am trying to identify the high of the day +DI crossed -DI. For this particular part I am using the variable reference function from both the forum.dll & the adaptive cycle toolkit. The code is:

a1:=BarsSince(Cross(pdi(14),mdi(14)));
a2:=ExtFml("ASI.Ref",H,a1);
a3:=ExtFml("forum.REF",H,a1);
a3; {Forum.REF chart}
a2; {ASI.REF chart}

I am trying to attach a pic, hopefully it made it. The forum.ref result is as I expected, a flat line with the value of the high of the day of the cross. The ASI.REF {straight out of their manual} is all over the place and eventually forms a flat line that does not have the right value {that I expected}.

I just loaded the toolkit and am trying to learn, but I have used the forum dll a long time. Any idea as to why the results are so different. From the respective manuals the code looks the same and should provide similar output. What am I missing?

vm
Jose  
#2 Posted : Sunday, November 5, 2006 8:10:54 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Variable-period forward/backward referencing almost always creates problems. Use the ValueWhen() function for the above task. jose '-)
Users browsing this topic
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.