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

Notification

Icon
Error

Options
Go to last post Go to first unread
xrousaios  
#1 Posted : Thursday, October 17, 2013 7:13:44 AM(UTC)
xrousaios

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/30/2012(UTC)
Posts: 22
Location: Athens, Greece

Hi all

Usually when I use an expression like MOV(xx), the xx parameter represents a constand value.

What about when I want to use the MOV(yy), where yy is a formula variable?

The real issue is that I want to run a system tester several times with different values each time.

Since the expressions Function(xx) are many, I thought it would be good to have a formula containing only the variables I would like to change and then change them easily from there.

Any idea ?

Thanks in advance

George

mstt  
#2 Posted : Thursday, October 17, 2013 1:38:31 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 George

Download and install the ForumDll_200 Normal 0 false false false MicrosoftInternetExplorer4 (from the Files section) so that you can make use of the variable functions that it provides.

If you don't want to do that and you don't mind numbingly slow execution then the following format should work for you in the Enhanced System Tester. This format makes the Periods parameter appear as a constant.

Mov(C, LastValue(OPT1 + PREV*0) , E)

Mov(C, LastValue(OPT1 + PREV - PREV) , E)

LastValue() converts a variable into a constant, and +PREV*0 or +PREV-PREV makes MetaStock recalculate OPT1 on each data bar without affecting the value of OPT1.

The second PREV format executes a little faster (not much), but the down side is that it will introduce small errors every so often with some functions. You just need to look at some of the MS 11 Adaptive functions for examples of that effect.

Roy
xrousaios  
#3 Posted : Friday, November 8, 2013 10:28:39 AM(UTC)
xrousaios

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/30/2012(UTC)
Posts: 22
Location: Athens, Greece

Thanks mstt,

I will download the ForumDll 200 and i will try it.

George

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.