PureBytes Links
Trading Reference Links
|
<span
>Ron,
<span
>
<span
>Just saw
the other reply and your response.
The error arises because you haven’t defined a period for the PDI or MDI
to use. The proper code is PDI()
for the default of 14, or PDI(8) for an 8 period pdi. Or you can declare a variable, say X, as X= 13; and then use
PDI(X) in your expression.
<span
>
<span
>Peace and
Justice ---<span
> Patrick
<span
>
<font size=2 color=black
face=Tahoma>-----Original
Message-----
From: Ron Morton
[mailto:mortonr003@xxxxxxxxxxxxx]
Sent: Thursday, September 11, 2003
11:28 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] help with
adx/dmi
<span
>
<font size=2 color=black
face=Arial>I get a
syntax error 23 pointing to the comma after pdi, what do I need to do to fix
this?
<font size=2 color=black
face=Arial>ron<font
color=black>
<font size=2 color=black
face=Arial>-----
Original Message ----- <span
>
<font size=2 color=black
face=Arial>
From:<font size=2 color=black
face=Arial> <a
href="" title="mrdavis9@xxxxxxxxxx">mrdavis9
<font size=2 color=black
face=Arial>To:<span
> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx
<font size=2 color=black
face=Arial>Sent:<span
> Thursday, September 11,
2003 8:18 PM<span
>
<font size=2 color=black
face=Arial>Subject:<font size=2 color=black
face=Arial> Re:
[amibroker] help with adx/dmi<span
>
<font size=3 color=black
face="Times New Roman"> <font
color=black>
<font size=2 color=black
face=Arial>Try
this: Buy=cross(pdi,mdi); < the pdi crosses mdi from
below as it moves upward. <font
color=black>
<font size=2 color=black
face=Arial> Sell=cross(mdi,pdi);
<pdi crosses mdi from above.<span
>
<font size=2 color=black
face=Arial>Ron D<font
size=2 color=black face=Arial>
<font size=2 color=black
face=Arial> <font
size=2 color=black face=Arial>
<font size=2 color=black
face=Arial>-----
Original Message ----- <span
>
<font size=2 color=black
face=Arial>
From:<font size=2 color=black
face=Arial> <a
href="" title="mortonr003@xxxxxxxxxxxxx">rmortonmd
<font size=2 color=black
face=Arial>To:<span
> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx
<font size=2 color=black
face=Arial>Sent:<span
> Friday, September 12,
2003 1:08 AM<span
>
<font size=2 color=black
face=Arial>Subject:<font size=2 color=black
face=Arial>
[amibroker] help with adx/dmi<span
>
<font size=3 color=black
face="Times New Roman"> <font
color=black>
<font size=3 color=black
face="Times New Roman">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
------------------------ 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. <a
href="">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: <a
href="">amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to <a
href="">http://docs.yahoo.com/info/terms/ <font
color=black>
<font size=3 color=black
face="Times New Roman">
<span
>Send BUG REPORTS
to bugs@xxxxxxxxxxxxx<font size=2 color=black
face="Courier New">
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: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black>
<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
>
<font size=3 color=black
face="Times New Roman"><br
>
<font size=2 color=black
face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
size=2 color=black face="Courier New">
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: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black>
<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
>
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|