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

Notification

Icon
Error

Options
Go to last post Go to first unread
Chupi  
#1 Posted : Tuesday, January 15, 2008 12:41:07 PM(UTC)
Chupi

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

oztrader  
#2 Posted : Thursday, January 17, 2008 3:16:07 PM(UTC)
oztrader

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

Chupi  
#3 Posted : Thursday, January 17, 2008 3:50:33 PM(UTC)
Chupi

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

alphateam  
#4 Posted : Monday, February 4, 2008 5:20:34 PM(UTC)
alphateam

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.