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

Notification

Icon
Error

Options
Go to last post Go to first unread
Torbenv  
#1 Posted : Thursday, January 24, 2013 7:58:42 AM(UTC)
Torbenv

Rank: Member

Groups: Registered, Registered Users
Joined: 7/26/2011(UTC)
Posts: 21

In some cases I get an error, because there is not enough data to calculate on. Fore example in this simple formula.

Mov(C,720,S)*0.67

Is it possible to have a kind of error handling so I do not get an error?


haddison  
#2 Posted : Thursday, January 24, 2013 8:35:06 AM(UTC)
haddison

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/6/2010(UTC)
Posts: 113
Location: London

You can use Cum(1) to calculate the bar number or the number of bars since the fiirst bar.
mstt  
#3 Posted : Thursday, January 24, 2013 1:36:43 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Hi Torbenv

If you use the Mov function in the Forum DLL then you can adjust the Periods value to the minimum of bars loaded, using Cum(1), or the number of periods stipulated.

ExtFml("Forum.Mov",C,Min(720,Cum(1)),S) * 0.67;

This method might still need to be modified if the data array being smoothed has some leading N/A bars. Price data arrays shouldn't be affected, but other data arrays might be.

Roy
Torbenv  
#4 Posted : Friday, January 25, 2013 5:59:16 AM(UTC)
Torbenv

Rank: Member

Groups: Registered, Registered Users
Joined: 7/26/2011(UTC)
Posts: 21

Thanks a lot for your quick reply. I will try this.
Torbenv  
#5 Posted : Friday, January 25, 2013 6:01:13 AM(UTC)
Torbenv

Rank: Member

Groups: Registered, Registered Users
Joined: 7/26/2011(UTC)
Posts: 21

Thanks. I have Metastock 12 EOD. Is it possible to install forum.dll on that version and where would I find the latest forum.dll.
mstt  
#6 Posted : Friday, January 25, 2013 12:43:47 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Torbenv

I don't have a usable installation of MS 12 but I believe the Forum DLL should be installed in ...

C:\Documents & Settings\"User name"\Local Settings\Application Data homson Reuters\MetaStock\Formulas\External Function DLLs\


... which is quite different from ealier versions.

Go to the Files section of this website to find the "Forum" DLLs, of which there are two. The latest version is 188KB in size, somewhat bigger than earlier versions. You can use the original name if you want to, or you can change the name from the original to "Forum.DLL" or anthing else that takes your fancy.

Roy
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.