in Search

Countback Lines Expert

Last post 10-25-2009, 12:28 by minnamor. 3 replies.
Sort Posts: Previous Next
  •  04-17-2005, 0:29 1265

    Countback Lines Expert

    To create this expert, you have to create 2 custom indicators first
    {Countbacklines buy}
    Days:=10;
    BV:=If(L>LLV(L,Days),PREV,
    If(Ref(H,-2)>Ref(H,-1) AND Ref(H,-1)>H,Ref(H,-2),
    If(Ref(H,-3)>HHV(H,3) AND Alert(Ref(H,-1)>H,2),Ref(H,-3),
    If(Ref(H,-4)>HHV(H,4) AND Alert(Ref(H,-1)>H,3),Ref(H,-4),
    If(Ref(H,-5)>HHV(H,5) AND Alert(Ref(H,-1)>H,4),Ref(H,-5),
    PREV)))));
    BV;

    {Countbacklines Sell}
    Days:=10;
    SV:=If(H<HHV(H,Days),PREV,
    If(Ref(L,-2)<Ref(L,-1) AND Ref(L,-1)<L,Ref(L,-2),
    If(Ref(L,-3)<LLV(L,3) AND Alert(Ref(L,-1)<L,2),Ref(L,-3),
    If(Ref(L,-4)<LLV(L,4) AND Alert(Ref(L,-1)<L,3),Ref(L,-4),
    If(Ref(L,-5)<LLV(L,5) AND Alert(Ref(L,-1)<L,4),Ref(L,-5),
    PREV)))));
    SV;

    Now for the expert
    under the highlight tab

    Long

    Buy:=Cross(C, Fml( "Countbacklines buy"));
    Sell:=Cross(Fml( "Countbacklines Sell"),C);
    D:=If(BarsSince(Buy)<BarsSince(Sell),-1, If(BarsSince(Buy)>BarsSince(Sell),1,0));
    D=-1

    Short

    Buy:=Cross(C, Fml( "Countbacklines buy"));
    Sell:=Cross(Fml( "Countbacklines Sell"),C);
    D:=If(BarsSince(Buy)<BarsSince(Sell),-1, If(BarsSince(Buy)>BarsSince(Sell),1,0));
    D=1

    now under the symbol tab

    EL

    Buy:=Cross(C, Fml( "Countbacklines buy"));
    Sell:=Cross(Fml( "Countbacklines Sell"),C);
    D:=If(BarsSince(Buy)<BarsSince(Sell),-1, If(BarsSince(Buy)>BarsSince(Sell),1,0));
    D=-1 AND Ref(D,-1)>-1

    ES

    Buy:=Cross(C, Fml( "Countbacklines buy"));
    Sell:=Cross(Fml( "Countbacklines Sell"),C);
    D:=If(BarsSince(Buy)<BarsSince(Sell),-1, If(BarsSince(Buy)>BarsSince(Sell),1,0));
    D=1 AND Ref(D,-1)<1
  •  10-17-2008, 23:38 28056 in reply to 1265

    Re: Countback Lines Expert

    When I try the explorer or System tester with the above formulae I receive the message: "Internal compiler error. Insufficient memory for binary." What does it mean? Is there a way around this error message? Thanks

  •  05-28-2009, 16:55 29813 in reply to 28056

    Re: Countback Lines Expert

    Did you ever figure out what that error message was?....
  •  10-25-2009, 12:28 31001 in reply to 29813

    Re: Countback Lines Expert

    No.
View as RSS news feed in XML