Please read the most fundamental doc regarding AFL: http://www.amibroker.com/guide/h_understandafl.html
Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "bty450077" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, October 20, 2006 2:13 PM Subject: [amibroker] Re: Problem with array? > that fixed it - not sure why the original doesn't work but anyway > thanks Rakesh > > --- In [email protected], "Rakesh Sahgal" <[EMAIL PROTECTED]> > wrote: >> >> try >> >> O-ref(O,-3) >> >> On 10/20/06, bty450077 <[EMAIL PROTECTED]> wrote: >> > >> > I am trying to plot the following: >> > >> > ROC_CUST = O-O[BarCount-3]; >> > >> > that is the value of the current bar open minus the open from the >> > bar two bars earlier. >> > >> > The problem is that the values are simply wrong - if I manually > do >> > the calculation I get something diffent to what appears in the >> > graph... very confusing... >> > >> > I tried using >> > >> > O1 = O[BarCount-1] >> > O2 = O[BarCount-3] >> > >> > ROC_CUST = O1 - O2 >> > >> > But of course I get a simple flat line that changs wih each new > bar - >> > this is because it no longer calculates as an array. >> > >> > If anyone has an idea on how to get this graph to plot I would be >> > much appreciated. >> > >> > Thanks, >> > Simone >> > >> > >> > >> > >> > 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 other support material please check also: >> > http://www.amibroker.com/support.html >> > >> > >> > Yahoo! Groups Links >> > >> > >> > >> > >> > >> > > > > > > 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 other support material please check also: > http://www.amibroker.com/support.html > > > Yahoo! Groups Links > > > > > > 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 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
