PureBytes Links
Trading Reference Links
|
Well, suppose
y=(x+1)*x and z=(x-10)*(x-20), x integer
and you want to plot y=f(z).
Select a ticker from your symbol tree and paste in IB the
x=Cum(1);L1=LastValue(Cum(1));
g=0;y=0;z=0;
for(i=0;i<L1;i++)
{
y[i]=(x[i]+1)*(x[i]);z[i]=(x[i]-10)*(x[i]-20);
if(y[i]<=L1)
{
g[y[i]]=z[i];
}}
Plot(g,"g",colorRed,2);
Title="y="+WriteVal(Cum(1)-1,1.0)+", z="+WriteVal(g,1.0);
The AFL result is what you get from MSEXCEL respective bar graph.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
wrote:
> ed,
> the x-axis has, by default, integer values, since it is aligned
> to "time" and the unit of the time, in any EOD function, is equal
to
> 1 bar.
> If your x-function has integer values, we could do something
> [perhaps].
> A x-value=35 may be assigned the the 35th bar.
> A x-value=35.24 has no place in the x-axis.
> So, is your x-variable an integer array ?
> [or it may be rounded to an integer ?]
> Please advise.
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "ed2000nl" <pablito@xxxx> wrote:
> > hi,
> >
> > is it possible to plot one measure against another?
> >
> > e.g. I have 2 arrays of the same length. In the 1-st one (xx) I
> have
> > numbers from 0 to 99 and in the second one (yy) I have also
numbers
> > from 0 to 99. Plotting xx against yy in one graph is what I want.
> Is
> > that possible?
> >
> > regards, Ed
------------------------ 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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|