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

Re: [amibroker] How to filter during scan?



PureBytes Links

Trading Reference Links

yes, you just include whatever conditions you require
One suggestion is to only have price conditions for the buy and short
as the exits do not require this condition. especially shorting hwere
you want the exit to be much lower than the entry price

Filter is only used for explorations, nothing else

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


On 17/09/2007, Pete <dryheat3@xxxxxxx> wrote:
> Can someone please explain to me how to select criteria for my scans?
> The Filter keyword is only working during Explore. It took me over an
> hour of screaming at the computer to figure out 'Filter' just wasn't
> programed to work in scan mode.
> Example:
> Buy = Close > 60;
> Filter = LastValue(Close) > 70 ;
> AddColumn( Close, "Close", 1.3 ) ;
> AddColumn( MA(Close, 45), "MA 45" ) ;
>
> Pressing the Explore button omits all stock less then 70. Pressing the
> Scan button includes all stocks greater then 60. Someone might think
> about changing that...
>
> So, here's what I've come up with so far:
> Cond1 = UTrnd > DTrnd AND Cross(sht,lng) ;
> Cond2 = DTrnd > UTrnd AND Cross(lng,sht) ;
> fltr = Close > 50;
> Buy = Cond1 AND fltr;
> Sell = Cond2 AND fltr;
> Cover = Cond1 AND fltr;
> Short = Cond2 AND fltr;
>
> This is the only way I've been able to restrict the results of my scans
> to stocks greater then 50. I have to add the clause "AND Close > 50;" at
> the end of every buy, sell, cover, and short statement. Is there any
> other way to accomplish this? Just looking for a sanity check.
>
>
>
>
> 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

<*> 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/