[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Help coding double bottom



PureBytes Links

Trading Reference Links

Where's the definition of Condition5 & Condition6...? 

--- In amibroker@xxxxxxxxxxxxxxx, "Carl Vanhaes" <carl.van@xxx> 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
>



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/