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

Re: [amibroker] Buy and Sell procedures in backtester



PureBytes Links

Trading Reference Links

Hello,

Of course you can. 

function Fun1
{
   return MA( C, 10 ) > C;
}


Buy = Fun1();


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "dralexchambers" <dralexchambers@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, January 11, 2007 10:39 PM
Subject: [amibroker] Buy and Sell procedures in backtester


> Hi,
> 
> I'm new to AB and am planning to backtest some ideas. Is there a way 
> of grouping BUY and SELL functions into a procedure in the backtester 
> - like this:
> 
> Buy = If Procedure 1 is met
> Sell = If Procedure 2 is met
> 
> Procedure 1{
> MA must be > x
> other lines of code
> }
> 
> I would like to do it like this rather than a long line for the Buy 
> statment. Is it possible?
> 
> Thanks,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.16.9/623 - Release Date: 1/11/2007 3:33 PM