[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

Assuming I understand your query, you can do this like this

Procedure1 = conditions1 and etc;
Procedure2 = conditions2 and etc;
buy = Procedure1 or Procedure2;


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com


On 12/01/07, dralexchambers <dralexchambers@xxxxxxxxx> wrote:
>
> 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