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

Re: [amibroker] Use of Exclude statement



PureBytes Links

Trading Reference Links

Hello,

Two things:
1. Exclude works in backtest only
2. Exclude needs to be scalar (it excludes given symbol, not individual trades)

IF you want to exclude individual signals/trades use AND NOT in your rule

Buy = Cross( C< 20 ) AND NOT Exclude;

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "serkhoshian777" <serkhoshian777@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, March 05, 2007 2:03 AM
Subject: [amibroker] Use of Exclude statement


> Hello,
> 
> Does anyone have a snipit of example code which uses Exclude? I can't 
> get AFL to exclude buy signals for symbols which have Exclude as true.
> 
> Thanks.
> 
> Filter = 1;
> Exclude = C >0;
> Buy = Cross(C, 20);
> 
> AddColumn(C, "Close", 5.2);
> AddColumn(Exclude, "Exclude", 5.2);
> 
> AddColumn(Buy, "Buy", 5.2);
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> 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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/