Where's the definition of Condition5 & Condition6...?
--- In [email protected], "Carl Vanhaes" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am still a newbie switching from easylanguage to AFL and am trying
> to plot double bottoms that are separated only by a few bars.
> Something must be wrong with my coding below because no signal is
> generated despite I can see those patterns on the charts.
> Basically the idea is: Price tries to break down a recent low but
> fails and rebounds on or just after the breakdown bar (think it is
> sometimes called a Vic2B pattern).
>
> Can you please help me correct this code:
>
> Condition1= Low = LLV(L,25);
> Condition2= Ref(Sum(Condition1,7),-1)==0 AND Ref(Sum(Condition1,13),-
> 1)>0 AND Cross(Ref(ValueWhen(Condition1, L, 1),-1),L);
> Condition3= (Cross(C, ValueWhen(Condition2, H, 1))) AND (ValueWhen
> (Condition2,L,1) == LLV(L,30));
>
> PlotShapes( IIf( Condition5, shapeUpArrow, shapeNone ), colorGreen );
>
> Filter = Condition5 OR Condition6;
> AddTextColumn(FullName(), "Company Name");
> AddColumn(Condition5, "Dble_bot", 1);
> AddColumn(C, "Close", 1.3);
>
> Thank you in advance,
> Carl
>