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

Re: [amibroker] Re: Determine "NetProfit" for each bar



PureBytes Links

Trading Reference Links

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" <dralexchambers@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
> 
> 
> 
> 
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 3:33 PM