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

[amibroker] Re: exploration for top performers



PureBytes Links

Trading Reference Links

It looks as though this formula is missing a comma in the "Ref" 
function:

AddColumn((C / Ref(C,-252) -1) * 100,"Pct. Px. Chg.", format = 1.2);

Instead:
AddColumn((C / Ref(C,-252), -1) * 100,"Pct. Px. Chg.", format = 1.2);


S.





--- In amibroker@xxxxxxxxxxxxxxx, "imresident2001" 
<imresident2001@xxxx> wrote:
>
> hey Yuki i tried what you said, but in the results each stock gets 
> multiple results. for eg i got more than 10 for omni and more than 
> 10 for iiji. seems like i got multiple results for every single 
> stock. also the percen changes seems to be inaccurate. heres the 
> formula i tried to use
> SetOption("NoDefaultColumns", True);
> 
> Filter=Close > 0 AND Name() != "^IXJ AND Name() != @..." AND
> Name() != "^225" AND StrLeft(Name(),1) != "~";
> 
> AddTextColumn(Name(), "Symbol" ,format=1.0, -1, -1);
> AddTextColumn(Date(), "Date" ,format=1.0, -1, -1);
> AddTextColumn(FullName(), "Full Name" ,format=1.0, -1, -1);
> AddColumn (V, "Volume", format = 1.0, -1, -1);
> AddColumn((V / MA(V,50)) * 100, "50 day MA %", 1.0);
> AddColumn(C,"Last Price ",format = 1.0);
> AddColumn((C / Ref(C,-252) -1) * 100,"Pct. Px. Chg.", format = 1.2);
> 
> I also tried to use
> 
> 
> AddColumn((C / Ref(C,-1) -252) * 100,"Pct. Px. Chg.", format = 1.2);
> 
> I tried changing 252 to different number again same problem. would 
> appreciate it if u could tell me what im doing wrong. thanks
> 
> 
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> >
> > Hi imresident2001,
> > 
> > Monday, November 21, 2005, 4:09:08 PM, you wrote:
> > 
> > i> Does anyone have a good way to explore for the top 100 stocks
> > i> performance wise (percent gain) for 1year. I know lots of 
> websites 
> > i> have that info and was wondering if there was a wat to do it 
in 
> > i> amibroker. I tried playing around with rsi but didnt work. I 
> also 
> > i> spent hours searching the previous posts without any luck. any 
> help 
> > i> would be appreciated thanks.
> > 
> > This would be quite easy with a simple modification of the 
formula 
> I
> > posted for you earlier.
> > 
> > AddColumn((C / Ref(C,-1) -1) * 100,"Pct. Px. Chg.", format = 1.2);
> > 
> > Change the lookback period (-1) to whatever you think makes a 
year.
> > (It varies from country to country, depending on the number of
> > trading days and holidays.)
> > 
> > Explore on all symbols and rank according to percent.
> > 
> > Then short the top 10 and wait about six months.  ^_-
> > 
> > Yuki
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/