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

Re: [amibroker] Use of Exclude statement



PureBytes Links

Trading Reference Links

Graham:
 
Using the original example, the way that I have used Exclude (perhaps wrong) is:
 
Exclude = C > 1600;
Buy = C > 1400 And Exclude == 0;//Buy between 1400 and 1600
 
Of course, this could be written as:
 
Buy = C > 1400 and C < 1600;//exclude used for simplification?
 
Maybe Exclude has other properties that are not evident to me.
 
Bill
 
----- Original Message -----
From: "Graham" <kavemanperth@xxxxxxxxx>
Sent: Sunday, March 04, 2007 10:49 PM
Subject: Re: [amibroker] Use of Exclude statement

> Tomasz, can you expand on what to write in the statement for Exclude
>
> Exclude = ?
>
> Also from the help files shows can be used for scan and exploration as
> well as backtest. This explanation in the files makes its use a bit
> confusing for me
>
> "exclude If defined, a true (or 1) value of this variable excludes
> current symbol from scan/exploration/back test. They are also not
> considered in buy and hold calculations. Useful when you want to
> narrow your analysis to certain set of symbols. "
>
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
>
http://www.aflwriting.com
>
>
> On 04 Mar 2007 17:36:09 -0800, Tomasz Janeczko <
groups@xxxxxxxxxxxxx> wrote:
>> 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
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>> 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/

>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM
>
>
__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___