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

RE: [amibroker] Stock list reduction???



PureBytes Links

Trading Reference Links

Sure

 

buy = ma(v*c,250)>500000;if( buy )

--------------------------------^

 

Error 6.

Condition in IF, WHILE, FOR statements

has to be Numeric or Boolean type.

You can not use array here,

please use [] (array subscript operator)

to access array elements

 

 

 

 

Mark

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Graham
Sent: Tuesday, June 28, 2005 10:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Stock list reduction???

 

Mark can you give some hint as to where the rror is occuring. The line
is normally highlighted

On 6/29/05, Mark Keitel <mkeitel@xxxxxxxxxxxxxxx> wrote:
>
>
> Must be doing something wrong here
>
> Still getting a AFL error when I run scan
>

>
> Mark
>

>
>

>
>
>

>

> ________________________________
>
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of Wilson
> Sent: Tuesday, June 28, 2005 9:33 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Stock list reduction???
>

>
>
> of course, watchlist is one of the best features in Amibroker, my orignal
> code is in watchlist, but as per requested by Mark, I changed the
> "watchlist" to "group" to suit his purpose.
>
>

>
>
> i think the error he mention in the reply came from this.. if ( buy ) <=
> "if" cant be used with array, that's why i add LastValue to your code.. =>
> if( LastValue(Buy)>5000 000 )
>

>
> Wilson
>
>
>
>

>
>
> On 6/29/05, Graham <kavemanperth@xxxxxxxxx> wrote:
>
> of course the basic way is to just run the scan and add the results to
> a watchlist, then all future explorations for traidng can run with the
> watchlist selected
>
> On 6/29/05, Wilson <wiz899@xxxxxxxxx> wrote:
> >
> >
> > functionClearGrouplist(First, Last)
> >
> > {
> >
> > for(i=First; i<Last+1; i++)
> >
> > CategoryRemoveSymbol( "", categoryGroup, i );
> >
> > }
> >
> > ClearGrouplist(55, 55); // clear the group first
> >
> > Buy= MA(V*C,2 50); // set your condition
> >
> > if( LastValue(Buy)>5000 000 ) // if the last value is greater than 5M
> >
> > {
> >
> > CategoryAddSymbol("",categoryGroup,55); // add to group
> 55
> >
> > }
> >
> > 
> >
> > Do a Scan in the AA Window
> > 
> > Wilson
> >
> > 
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
> ________________________________
> YAHOO! GROUPS LINKS
>
>  Visit your group "amibroker" on the web.
>  
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>  
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>  
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> ________________________________
>


--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


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 other support material please check also:
http://www.amibroker.com/support.html






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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS