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

[amibroker] Fibs - Am I doing Something Wrong?



PureBytes Links

Trading Reference Links

John,

Thanks for your comments, I never yet used any of these codes. You're right,
this problem was corrected. However I still don't get what I need. ok more
work for now.

Herbert


----- Original Message ----- 
From: "john gibb" <jgibb1@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, April 12, 2004 8:47 PM
Subject: Re: [amibroker] Basics


> Hi Herbert,
>
> Apparently,the coordinates can't be an arrays. So you need to use
LastValue
> around them; something like:
>
>     OOHi=LastValue(1.1*H);
>     y0=OOHi; /* OOHi is 1.1*High say */
>     y1=LastValue(Ref(OOHi,-1));
>     x0=BarCount-1;
>     x1=BarCount-1;
>     HiZone=LineArray(x0,y0,x1,y1,0,0); /* "Bad arguments" error gone. */
>     Plot(HiZone," ",colorBlue);
>
> BTW, the Help file says x0 must be smaller than x1 although, for some
> reason, you don't get an error here, despite their equivalency.
>
> Regarding your 'what is difference' question, there is NO numeric
difference
> between the two as evidenced when you use code something like this in
> Indicator Builder:
>
>     Title="Diff Between= "+WriteVal(LastValue(H)-H[BarCount-1],1.2);
>
> However, I have heard a rumor that BarCount is designed only for use in
FOR
> loops.
>
> -john
>
> ----- Original Message ----- 
> From: "hertyil" <herty@xxxxxxxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, April 12, 2004 9:21 AM
> Subject: [amibroker] Basics
>
>
> Hi,
>
> My thanks to who'll pull me out of these.
> I'm trying to plot a vertical line between y0 and y1. Where is the
> mistake ?
>
> y0=OOHi;    /* OOHi is 1.1*High say */
> y1=Ref(OOHi,-1);
> x0=BarCount-1;
> x1=BarCount-1;
>
> HiZone=LineArray(x0,y0,x1,y1,0,0); /* I get a "Bad arguments" error
> here.  */
> Plot(HiZone," ",colorBlue);
>
> And also what's the difference between these two:
> Lastvalue(x) and x[barcount-1]?
>
> Herbert
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/