in Search

Metastock have a fonction IF, but he don't have a WHILE, How simulated WHILE ????

Last post 12-29-2008, 17:52 by oztrader. 1 replies.
Sort Posts: Previous Next
  •  12-29-2008, 17:45 28541

    Metastock have a fonction IF, but he don't have a WHILE, How simulated WHILE ????

    I have a problem with a formula.
     
    Signal_Buy:=  { Signal Buy }
    MaHigh:=  { MA with HIGH }
    MaLow:=   { MA with LOW
     
    When Signal_Buy is ON(true) if(MaHigh > MaLow        stay to ON(true) while MaHigh > MaLow
     
    How Write that with MetaStock ?
     
    Thank for your help !

    La bourse ou la vie
  •  12-29-2008, 17:52 28542 in reply to 28541

    Re: Metastock have a fonction IF, but he don't have a WHILE, How simulated WHILE ????

    Hi YLTech,

    Have a look at the Alert function and see if that will solve your problem.

    The Alert function would need to form part of your Buy Signal.

    Cheers.

    oz

View as RSS news feed in XML