in Search

Variable periods in alert()

Last post 02-04-2008, 17:20 by alphateam. 3 replies.
Sort Posts: Previous Next
  •  01-15-2008, 12:41 26325

    Variable periods in alert()

    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

  •  01-17-2008, 15:16 26343 in reply to 26325

    Re: Variable periods in alert()

    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

  •  01-17-2008, 15:50 26344 in reply to 26343

    Re: Variable periods in alert()

    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

  •  02-04-2008, 17:20 26474 in reply to 26344

    Re: Variable periods in alert()

    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

View as RSS news feed in XML