PureBytes Links
Trading Reference Links
|
Here it is. It won't work if there is an array anywehre in the code:
.... AND LastValue(C) >= Ref(LastValue(C),-1) ....
Can you get the formula below working?
Filter = C >= 0.25 AND C <= 0.35 AND C >= Ref(C,-1);
SetOption("NoDefaultColumns", True);
AddTextColumn(Name(), "Ticker");
AddColumn(Volume, "Volume", 1.0);
AddColumn(Close, "Close", 1.3);
AddTextColumn(Date(), "Date");
CategoryRemoveSymbol( "", categoryWatchlist, 61 );
if( LastValue(C) >= 0.25 AND LastValue(C) <= 0.35 AND LastValue(C) >=
Ref(LastValue(C),-1) )
{
CategoryAddSymbol( "", categoryWatchlist, 61 );
}
/************************************************/
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> It works ok for me
> If you wanted to empty the watchlist first instead of adding more
> symbols to it every time use this before the categoryadd lines
>
> CategoryRemoveSymbol( "", categoryWatchlist, 61 );
>
>
> On 4/19/05, Lesmond V <ebsn247@xxxx> wrote:
> >
> >
> > Graham, thanks for your suggestions.
> >
> > Here is the test code that adds all symbols from exploration list
to
> > Watch List #61. When I was experimenting with it at some point I
got
> > error messages about the need to use Boolean characters so I'm not
> > sure if the formula is correct (although it works). The code is
> > executed from AA window with "Explore" button.
> >
> > Filter = C >= 0.25 AND C <= 0.35;
> >
> > SetOption("NoDefaultColumns", True);
> > AddTextColumn(Name(), "Ticker");
> > AddColumn(Volume, "Volume", 1.0);
> > AddColumn(Close, "Close", 1.3);
> > AddTextColumn(Date(), "Date");
> >
> > if( LastValue(C) >= 0.25 AND LastValue(C) <= 0.35 )
> > {
> > CategoryAddSymbol( "", categoryWatchlist, 61 );
> > }
> >
> > Lesmond
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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 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/
<*> 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/
|