Because the code is without your BUY SELL RULES. You need to specify buy/sell rules.
If you are after simple "buy and hold" you can use single-liner. netprofit = ROC( C, 1 ); Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "dralexchambers" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, February 08, 2007 2:19 PM Subject: [amibroker] Re: Determine "NetProfit" for each bar > Thanks - I tried this: > > e = Equity(); > netprofit = ROC( e, 1 ); > > for (i=1; i<BarCount; i++) > { > xxx = netprofit[i]; > } > > > And only get zero's for xxx! > > What is going wrong? > Alex > > > > 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 > > > > >
