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

[amibroker] Re: Potential new formula ?



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "jmbruegge" <jmbruegge@xxxx> wrote:
> Does anyone have any idea how to write the following formula? 
> 
> "Find all stocks, indices, etc..  whose price is above it's 20 day 
> simple moving average, AND whose 20 day simple moving average is 
> above its 35 day simple moving average AND whose 35 day simple 
moving 
> average is above its 50 day simple moving average"
> 
> or an earlier indicator "all stocks whose price has crossed above 
the 
> 20 day simple moving average and whose 20 day simple moving average 
> has crossed above the 35 day simple moving average" ??
> 
> Morgan Stanley's head technician uses this religiously.

You forgot to mention what they do after finding the stocks.
Do they buy ? Do they sell ? Or something else ?
And another question : Whatever they do, they do it all time long ?
Because for IBM, for example, the condition was true from Apr14 till 
May16 2003. Try the
Cond=C>MA(C,20) AND MA(C,20)>MA(C,35) AND MA(C,35)>MA(C,50);
Plot(Cond,"",1,8);
to see in your IB what I mean.
Dimitris Tsokakis
> 
> Thank you in advance. 
> 
> jgcbruegge


------------------------ 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/