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

[amibroker] Re: Potential new formula ?



PureBytes Links

Trading Reference Links

Establish your 'Apply To' for your preferred group of stocks, indexes,
mutual funds, etc., then Explore using:

Cond = C > MA(C,20);
Cond = Cond AND MA(C,20) > MA(C,35);
Cond = Cond AND MA(C,35) > MA(C,50);
LastBar = Cum(1)==LastValue(Cum(1));

Filter = Cond AND LastBar;
AddColumn(C,"Close",1.4);

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