• Australian (ASX) Stock Market Forum

Hello and welcome to Aussie Stock Forums!

To gain full access you must register. Registration is free and takes only a few seconds to complete.

Already a member? Log in here.

Most liked posts in thread: Formula for Darvas box system?

  1. tech/a

    tech/a No Ordinary Duck

    Posts:
    19,123
    Likes Received:
    3,069
    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;