Rank: Newbie
Groups: Registered, Registered Users Joined: 8/8/2005(UTC) Posts: 9
|
Recently there a discussion about Tom DeMark's Sequential system on this form - and I realized that WealthLab provides these built-in functions.
What would be the MetaStock formula equivalent of the CumUp and CumDown functions in WealthLab ?
http://www.wealth-lab.co...lthLab.DLL/getdoc?id=125
>> CumUp lets you test whether a specific number of consecutive bars
>> have elapsed where the prices are greater than their value a certain
>> number of bars ago.
http://www.wealth-lab.co...lthLab.DLL/getdoc?id=124
>> CumDown lets you test whether a specific number of consecutive bars
>> have elapsed where the prices are less than their value a certain
>> number of bars ago.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Hey Adheerp-
I have no way to test this at the moment, but perhaps you can adapt this to fit your situation.
[code:1:29927621ea]Periods:=Input("Periods",10,100,10);
Trigger:=Input("Trigger",1,10,1);
CumUp:=Sum(If(C>Ref(C,-1),1,0),Periods)>Trigger;
CumDn:=Sum(If(C<Ref(C,-1),1,0),Periods)>Trigger;
CumUp;
CumDn;[/code:1:29927621ea]
|
|
|
|
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.