Jump to content

yuvraj2005

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by yuvraj2005

  1. DEAR BUNTY or anybody else who know the metastock formula language i have got hurst cycle analysis formula in metastock but it has some problem and it is not working ,please if some body able to correct it then please do it as it is looking very much profitable as i am using it in the excel and it is giving good result

     

    D:=Input("Day of month",1,31,1);

    M:=Input("Month",1,12,1);

    Y:=Input("Year",1900,2100,2008);

     

    WA2:=Input("wave2",0,10,3);

     

    wavelength:=Input("Wavelength (bars)",1,9999,243);

     

    {bars}

    start:=***(

    (DayOfMonth()>=D AND Month()=M AND Year()=Y) OR

    (Month()>M AND Year()=Y) OR

    Year()>Y)=1;

    start:=LastValue(ValueWhen(1,start,***(1)));

     

    {x axis values}

    x:=360/wavelength * (***(1)-start);

     

    {sine waves}

    phase:=-90;

    w1:=Sin(8*x+phase);

    w2:=2*Sin(4*x+phase);

    w3:=wa2*Sin(2*x+phase);

    w4:=4*Sin(x+phase);

     

    {hurst cycle}

     

    CYCLE:= (W1+W2+W3+W4);

     

    {plot}

    w1;w2;w3;w4;CYCLE;

×
×
  • Create New...