PureBytes Links
Trading Reference Links
|
Sorry I can't help you but did you try clicking on the AFL check mark in
the formula editor then press F1 for an
explantion?
dom
ckinsey2003 wrote:
>
> --- In amibroker@xxxxxxxxxxxxxxx, kris45mar <kris45mar@xxxx> wrote:
> Wish I could help, I am getting the same error. It is the first time I
> have tried to use LINEARRAY so that learning curve thing.
>
> My following code generates the same error. Hope some one can help..
> I calc my own CCI Peaks, so have array CCIPeak..
>
> y0 = HighestSince(CCIPeak, CCI(12), 2 );
> y1 = HighestSince(CCIPeak, CCI(12), 1 );
> x0 = HighestSinceBars(CCIPeak, CCI(12), 2 );
> x1 = HighestSinceBars(CCIPeak, CCI(12), 1 );
>
> Line = LineArray( x0, y0, x1, y1, 0, 1);
>
> Plot( Line, "Trend line", colorBlue );
>
> Thanks in advance, Jack
>
> > Could someone please check I am using Linearray
> > correctly?
> >
> > I want to plot a line from the buyprice indicating a
> > certain annualised percent gain, eg 10 % gain after
> > 260 bars.
> >
> > If I use this code
> >
> > ******************
> >
> > Buy = Cross ( Close, EMA(C,30));
> >
> > //price = ValueWhen(Buy,1);
> >
> >
> > x0 = ValueWhen(Buy,BarIndex(),1);
> > y0 = BuyPrice;
> > x1 = BarsSince(Buy) == 260;
> > //x1 = x0 + 260;
> > y1 = BuyPrice * 1.1;
> >
> > Line = LineArray(x0,y0,x1,y1, 0, 1);
> >
> > Plot(C,"",1,64);
> > Plot(EMA(C,30),"",1,1);
> > PlotShapes(shapeUpArrow * Buy,colorBlue,0,L,-15);
> >
> > Plot(Line, "line", colorGreen,1);
> >
> > *******************
> >
> > I get the following error:
> >
> > x1 = BarsSince(Buy) == 260;
> > y1 = BuyPrice * 1.1;
> >
> > Line = LineArray(x0,y0,x1,y1, 0, 1);
> > -------------------------------------------^
> >
> > Error 2.
> > Bad argument(s)
> >
> > I think I am using the LineArray function correctly.
> > Is there an error in my x0,x1,y0,y1 initialising?
> >
> > Regards
> >
> > ChrisB
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - Find what you need with new enhanced search.
> > http://info.mail.yahoo.com/mail_250
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
> ------------------------------------------------------------------------
> Yahoo! Groups Links
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> * To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|