Rank: Newbie
Groups: Registered, Registered Users Joined: 1/14/2008(UTC) Posts: 2
|
Hi!
I need help with variable periods in alert function.
This is what I would like to do, but it won't let me use a variable to set the number of periods in Alert().
periods:=if(DX(10)<20,8,if(DX(10)<30,5,3));
alert((L<ref( LLV(L ,3),-1)),periods)
Cheers, Darek
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
Hi Darek,
Would this formula work okay or is it a bit cumbersome?
If(DX(10)<20,Alert((L<Ref(LLV(L,3),-1)),8), If(DX(10)<30,Alert((L<Ref(LLV(L,3),-1)),5), Alert((L<Ref(LLV(L,3),-1)),3)));
Cheers,
ozt
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 1/14/2008(UTC) Posts: 2
|
thanks, it's working but that was only an example,
the thing is I would like to find function which let me use a variable to set the number of periods in Alert(). Maybe, I'm looking for .dll ?
Regards,
Darek
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 3/25/2005(UTC) Posts: 90 Location: London
|
yes - I'd like to use variable periods in alert too. I have asked for this in the Metastock wish list.
perhaps you could express your support for this in the Wish List as a new function in the next release.
rgs
alphateam
|
|
|
|
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.