PureBytes Links
Trading Reference Links
|
Hi,
If someone has the time could they please see what I am doing wrong.
I would like to backtest this formula.
This what I am trying to do.
Long Trade
When a single price bar has its high trading below the SMA-4,
ADX-10 >= 30
and + DI above - DI or + DI-14 >= 30 enter the market tomorrow if
price
trades above the prior days high.
Cond1=Ref (Cross(MA(C,4),High),-1);
Cond2=Cross(H,MA(C,4);
ADXabove30=ADX(10)>30;
ADXaboveDI = ADX( 14 ) > PDI( 14 ) AND ADX( 14 ) > MDI( 14 ) OR ADX
(14)>=30;
Buy=cond1 AND Cond2 AND ADXabove30 AND ADXaboveDI;
Thank you in advance,
Dennis
------------------------ 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/
|