in Search

How can I write this with Metastock

Last post 11-01-2009, 2:09 by rsdamha. 2 replies.
Sort Posts: Previous Next
  •  10-31-2009, 5:51 31049

    How can I write this with Metastock

    Hi ,

    How can I write a code that gives me a continuous value if condition A is continuing true.lets try this by using volume with condition ( value remains max ):
    day --------- volume
    1---------------- 5
    2---------------- 2
    3---------------- 3
    4---------------- 6

    At day 1 value is 5
    day 2 value is 5
    day 3 value is 5
    day 4 valye is 6

    How can I write this with metastock?

    Thank you
  •  10-31-2009, 20:05 31055 in reply to 31049

    Re: How can I write this with Metastock

     How about:

     a1:=If(H>PREV,H,PREV);
     a1
     

  •  11-01-2009, 2:09 31060 in reply to 31055

    Re: How can I write this with Metastock

    Thank you johnl. It is working.
View as RSS news feed in XML