• Australian (ASX) Stock Market Forum

Formula for Darvas box system?

Discussion in 'Trading Strategies/Systems' started by porkpie324, Jul 1, 2006.

  1. porkpie324

    porkpie324

    Posts:
    465
    Likes Received:
    0
    Joined:
    Aug 24, 2005
    Hello all, does anyone know where I can get the formula for the "darvas box" system? My software is Metastock 9.1, porkpie
     
  2. tech/a

    tech/a No Ordinary Duck

    Posts:
    17,107
    Likes Received:
    522
    Joined:
    Oct 14, 2004
    This is the original Darvas box formula:
    LL:=If(L=LLV(L,5),L,If(Ref(L,-1)=LLV(L,5),Ref(L,-1),If(Ref(L,-2)=LLV(L,5),Ref(L,-2),If(Ref(L,-3)=LLV(L,5),Ref(L,-3),If(Ref(L,-4)=LLV(L,5),Ref(L,-4),0)))));

    NH:=ValueWhen(1,H>Ref(HHV(H,5),-1),H);

    Set1:=HHV(H,3)<HHV(H,4);

    Val1:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,NH);

    Val2:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,LL);


    TB:=Val1;
    BB:=Val2;
     
Loading...

Share This Page