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

[amibroker] Re: controlling exploration output



PureBytes Links

Trading Reference Links

Andrew,
you may also enjoy a series of RSI columns per stock, by exploring 
for the n=1[or more] last quotations with

SetOption("NoDefaultColumns",True);
List = "MSFT,INTC,BEAS,CSCO";
myorder = 1000;Z1=0;CU=0;
for( i = 0; ( sym = StrExtract( List, i ) ) != ""; i++ )
{
if(Name()==SYM)
{
SetForeign(SYM);
Z1=RSI();
}
AddColumn(IIf(Z1!=0 AND SYM==Name(),Z1,-1E10),"#"+WriteVal(I,1.0)
+" : "+SYM);
CU=CU+1;
}
Filter = Z1!=0;

Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Andrew" <a.perrin@xxxx> wrote:
> Same concept, another option.
> 
> List = "MSFT,INTC,IBM";
> myorder = 1000;
> for( i = 0; ( sym = StrExtract( List, i ) ) != ""; i++ )
> {
> if(Name()==sym){myorder = i+1;}
> }
> Filter = 1;
> AddColumn(myorder,"My Order");
> 
> Just type your list in the order you want
> 
> Andrew
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
> <TSOKAKIS@xxxx> wrote:
> > Dave,
> > How many clicks ? This is the question.
> > If it is important, please accept one more click, it takes a few 
> > seconds.
> > You may add in the body of the exploration an
> > 
> > Z=IIf(Name()=="MSFT",1,IIf(Name()=="INTC",2,IIf(Name()
> > =="IBM",3,100)));
> > Filter=1;
> > AddColumn(Z,"My order");
> > AddColumn(C,"");
> > and hit "My order" once.
> > Is it enough, or you want something more automated ?
> > If this click is the problem, please let me know.
> > Dimitris Tsokakis
> > --- In amibroker@xxxxxxxxxxxxxxx, "Dave Merrill" <dmerrill@xxxx> 
> > wrote:
> > > Don't think so. 
> > > 
> > > I'd love it if there was an AFL function SortResults
> (ColumnNumber) 
> > that was
> > > the equivalent of clicking on a column header in the result 
> list. 
> > Negative
> > > ColumnNumber would sort descending. Ideally, multiple 
> ColumnNumbers 
> > could be
> > > passed to sort on multiple levels.
> > > 
> > > Maybe some day...
> > > 
> > > Dave
> > > 
> > > 
> > > > Is there a way to force tickers to appear in an order that I 
> > specify?
> > > > 
> > > > For example, if ticker 8511 is in the report output (passes 
the
> > > > filter), that ticker would be the first symbol on the list, 
> and if
> > > > ticker 7944 was in the output, it would be second symbol.
> > > > 
> > > > I have a preferred ticker order that I would like to see on 
> some
> > > > outputs, regardless of any other data one might sort by after 
> the
> > > > output is generated.
> > > > 
> > > > Yuki


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/