Hi,

Your code is a bit meaningless. Assigning an expression to Filter will dictate 
which symbols cause something to get printed out as part of the exploration. 
Since MA will always return a non zero value, your Filter is always accepting 
all symbols.

Also, it is pointless to set Filter more than once, since only the last setting 
will have any effect.

Finally, your usage of AddColumn is just causing the same value to be printed 
out twice (i.e. Close).

Unfortunately, AFL is not a quick cut, paste and you're ready to go type of 
language.

You need to read up on how AFL works:
http://www.amibroker.com/guide/h_understandafl.html

Go through the tutorials:
http://www.amibroker.com/guide/tutorial.html

Read up on all the functions:
http://www.amibroker.com/guide/AFL.html


Mike

--- In [email protected], Rasheed Momoh <rashmo...@...> wrote:
>
> Please whats the full formula for MA. i put in Filter=MA(Close, 15);
> 
> Filter=MA(Close, 65);
> 
> 
> 
> AddColumn( Close,"M15" );
> 
> AddColumn( Close,"M65" );
> changing parameters and the both give me the same figures. really need help 
> herethanks
> --- On Fri, 10/9/09, Ara Kaloustian <a...@...> wrote:
> 
> From: Ara Kaloustian <a...@...>
> Subject: Re: [amibroker] Re: HELP!!! ON MOVING AVERAGES
> To: [email protected]
> Date: Friday, October 9, 2009, 12:17 PM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
> 
>     
>                   MA1 = MA(Close,15) ;
> 
> MA2 = MA(Close,65) ;
> 
> 
> 
> Buy  = Close < MA1 and Close > MA2
> 
> 
> 
> ----- Original Message ----- 
> 
> From: "mishphar" <mishp...@gmail. com>
> 
> To: <amibro...@yahoogrou ps.com>
> 
> Sent: Friday, October 09, 2009 12:12 PM
> 
> Subject: [amibroker] Re: HELP!!! ON MOVING AVERAGES
> 
> 
> 
> --- In amibro...@yahoogrou ps.com, "Rasheed M" <rashmo_70@ ..> wrote:
> 
> >
> 
> > HI Guys
> 
> > Please I need a MA formula where I can scan stocks that are within
> 
> different moving averages. E.G 15 day,65 days 100- 200 days MA or where
> 
> i can set my own parameters
> 
> 
> 
> >
> 
> 
> 
> Hi Rasheed M try this u can add as much as MA like this and explore 
> 
> 
> 
> Filter=MA(Close, 15);
> 
> Filter=MA(Close, 65);
> 
> 
> 
> AddColumn( Close,"M15" );
> 
> AddColumn( Close,"M65" );
> 
> 
> 
> ------------ --------- --------- ------
> 
> 
> 
> **** IMPORTANT PLEASE READ ****
> 
> This group is for the discussion between users only.
> 
> This is *NOT* technical support channel.
> 
> 
> 
> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> 
> SUPPORT {at} amibroker.com
> 
> 
> 
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> 
> http://www.amibroke r.com/feedback/
> 
> (submissions sent via other channels won't be considered)
> 
> 
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> 
> http://www.amibroke r.com/devlog/
> 
> 
> 
> Yahoo! Groups Links
>


Reply via email to