PureBytes Links
Trading Reference Links
|
Hi Ron,
Yes such a cross can be a good indicator (along with some others) at least
going up. And try some other time periods for the ADX besides the default
14. I've written a separate AA and indicator, but it is not on this machine
so I'll have to give you just the crossover code. Try this:
Buy = Cross(PDI(),MDI());
Sell = Cross(MDI(),PDI());
I'm a fib fan, so I've done some optimization using fib numbers with ADX()
and its components. Good luck and let us know if you find the Holy Grail.
Peace and Justice --- Patrick
-----Original Message-----
From: rmortonmd [mailto:mortonr003@xxxxxxxxxxxxx]
Sent: Thursday, September 11, 2003 11:08 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] help with adx/dmi
I've been trying to work with the built in adx/dmi line and have
found that the +cross (+DI going above -DI) has been rather
predictive of stocks that I have made money on. Conversely, when
there is a -cross (-DI going above +DI) I have routinely lost money
despite the fact that other indicators had not recommended a sell.
What I would like is to be able to do a scan for times when there is
a cross. I tried to modify the built in file with:
Buy = cross (pd, md)
Sell = cross (md, pd)
and I kept getting a syntax error pointing to the second "l"
in "sell".
I then tried:
Buy = ValueWhen( Cross( pd, md ))
Sell = ValueWhen( Cross( md, pd ));
again, getting the same syntax error.
Any help in automating this process would be much appreciated as I
think that this may be a very effective tool for narrowing down my
stock list for potentially high profit buys.
Thanks,
ron
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/
------------------------ 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/l.m7sD/LIdGAA/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/
|