PureBytes Links
Trading Reference Links
|
A lot of traders are expecting the markets to
turn down any day now, so I made an CRUDE AA scan that
is designed to find stocks that have been trending up
for awhile, but which have recently started trending
down. Although I have posted the code below, I am
not looking for suggestions for improving this CRUDE
scan. I am still struggling with AFL, so I am not yet able to create
the AA scan that will look for exactly the conditions that I want to scan
for. I really want a scan that will find
those symbols that meet the Weinstein definition of the ending of an
uptrend and the entering of a downtrend. I am aware that DT is a
little suspicious of Weinstein because he wears a ring on his
pinkie. It bothers me a little also, but at least he doesn't
wear a ring in his nose, at least not yet, as far as I know . I
am thinking that a lot of Amibroker users would like to have a scan which will
find the conditions which are necessary for finding a Weinstein change
from uptrend to downtrend. My understanding of Weinstein trends is
that after a series of higher highs and higher lows, we suddenly see a lower
low, then we need to be worried. After the appearance of this first lower
low, we need to keep watching till the next high occurs. If this next high
is lower than the previous high, then we are officially in a Weinstein
downtrend. The attached chart that resulted from my CRUDE coding is
approximately the kind of results that will result from a precise coding of the
Weinstein change of trend definition. Since an AA scan for these Weinstein
change of trend conditions will be useful to a lot of Amibroker users, I
would greatly appreciate it if some experienced Amibroker coders would post the
code for that looks for these precise condtions. Ron D
itema=C;
Sell= MA<FONT
size=1>(itema,40<FONT
size=1>)>=MA<FONT
size=1>(itema,20)
AND MA<FONT
size=1>(itema,5<FONT
size=1>)<=MA<FONT
size=1>(itema,10<FONT
size=1>)/* AND MA(itema,10)>= MA(itema,4)
AND MA(itema,4)>= MA(itema,5) AND MA(itema,5)>=MA(itema,6)AND
MA(itema,6)>=MA(itema,7) AND MA(itema,7)>=MA(itema,9) AND MA(itema,10)
>= MA(itema,12) AND MA(itema,20)>=MA(itema,10) */<FONT
size=1>AND Ref<FONT
size=1>(Cross(<FONT
color=#0000ff size=1>StochD(<FONT color=#ff00ff
size=1>14),<FONT color=#0000ff
size=1>StochK(<FONT color=#ff00ff
size=1>14)),-1<FONT
size=1>);/* AND StochK(14)>=80;
*/
Buy=(0<FONT
size=1>);
PlotShapes( shapeUpArrow * Buy +
shapeDownArrow * Sell, <FONT color=#0000ff
size=1>IIf( Buy, colorGreen, colorRed )
)
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.
Attachment:
Lower highs, lower lows.JPG
Attachment:
Description: "Description: JPEG image"
|