in Search

Plotting discrete values - Please help!

Last post 02-06-2007, 15:08 by matt678. 2 replies.
Sort Posts: Previous Next
  •  02-06-2007, 7:50 22830

    Plotting discrete values - Please help!

    Hi,

    Does anyone know of a way to plot discrete values with a custom indicator? Or more precisely, is there a way to force Metastock into not plotting anything when a given condition is false, as apposed to Metastock plotting 0, so as to create an indicator with discontinuities?

    Thanking you in advance for your help,
    Matt
  •  02-06-2007, 10:59 22834 in reply to 22830

    Re: Plotting discrete values - Please help!

    hey matt..... you can trick meta into not plotting the 0 if false ...... or at least a long as no negative numbers are involved.....

    we can have indicators where we see nothing more than dashes/trues.... create your indicator first, set style to histogram dots , size to 4 and then limit the window to something like a minimum of .2   .......  

     quick example below will give ya an idea of how.....h

     

    ------------------------------

    {set style to histogram dots, size to 4  and set window minimum to .2}

    a:= If(C>Mov(C,3,S),1,0);
    aa:=If(C>Mov(C,10,S),2,0);
    aaa:=If(C>Mov(C,10,S),3,0);
    aaaa:=If(C>Mov(C,20,S),4,0);

    a;aa;aaa;aaaa;

    ------------------------------

  •  02-06-2007, 15:08 22835 in reply to 22834

    Re: Plotting discrete values - Please help!

    It works! Fortunately I don’t need to plot negative numbers,

    Thanks for your help,
    Matt

View as RSS news feed in XML