PureBytes Links
Trading Reference Links
|
Hello to all.
I'm trying to code this Swing Trade system by Dave Landry...any
comments on my code (at the bottom)will be appreciated.
Thanks, EdM
Buy alert: If today's low and yesterday's low is greater than the 20-
day EMA. This signal remains valid until the low touches or falls
below the 20-day EMA.
Long exit: Place a stop equal to the 20-day EMA. Continue to update
this stop daily to form a trailing stop.
Sell alert: If today's high and yesterday's high is less than the 20-
day EMA. This signal remains valid until the high touches or rises
above the 20-day EMA.
Short exit: Place a stop equal to the 20-day EMA. Continue to update
this stop daily to form a trailing stop.
This is my code so far:
Buy = Ref( Low, -1 ) > Ref( EMA( Close, 20 ), -1 )
AND Low > EMA( Close, 20 );
Sell = Ref( High, -1 ) < Ref( EMA( Close, 20 ), -1 )
AND High < EMA( Close, 20 );
Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
Filter=Buy OR Sell;
AddTextColumn( FullName(), "Full name", 77 , colorDefault, IIf( Close
< 10, colorLightBlue, colorDefault ) );
AddColumn (Buy,"Buy");
AddColumn (Sell, "Sell");
AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );
Comments/ Criticism?
Thanks again.
------------------------ 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/
|