PureBytes Links
Trading Reference Links
|
I use the following Ind. builder code for a rough idea
of the measure of existing trends.
X=MA(<FONT
size=2>StochD(60<FONT
size=2>),50);<FONT
size=2>Plot(Prec<FONT
size=2>(X,2),<FONT
size=2>"",1<FONT
size=2>,8<FONT face=Verdana
size=2><FONT
face="Times New Roman">);<FONT
face="Times New Roman">
COND0=Ref(X,-<FONT
size=2>1)==LLV<FONT
size=2>(X,3);Z0=<FONT
size=2>1+BarsSince<FONT
face=Verdana size=2><FONT
face="Times New Roman">(COND0);<FONT
face="Times New Roman">
AREA0=IIf(X><FONT
size=2>Ref(X,-1<FONT
size=2>),Sum(X,Z0),<FONT
size=2>0<FONT
face="Times New Roman">);<FONT
face="Times New Roman">
Y0=AREA0;Plot<FONT
size=2>(Y0/10,<FONT
size=2>"",5<FONT
size=2>,2<FONT face=Verdana
size=2><FONT
face="Times New Roman">);<FONT
face="Times New Roman">
COND1=Ref(X,-<FONT
size=2>1)==HHV<FONT
size=2>(X,3);Z1=<FONT
size=2>1+BarsSince<FONT
face=Verdana size=2><FONT
face="Times New Roman">(COND1);<FONT
face="Times New Roman">
AREA1=IIf(X<<FONT
size=2>Ref(X,-1<FONT
size=2>),Sum(X,Z1),<FONT
size=2>0<FONT
face="Times New Roman">);
<FONT
face="Times New Roman">Y1=AREA1;<FONT face=Verdana
size=2>
Plot(Prec<FONT
size=2>(-Y1/10,<FONT
size=2>1),""<FONT
size=2>,4,<FONT
size=2>2<FONT
face="Times New Roman">);<FONT
face="Times New Roman">
Title="INDICATOR = "+<FONT
size=2>WriteVal(X)+", BULLISH
MEASURE = "+WriteVal<FONT
size=2>(Y0)+", BEARISH MEASURE = "<FONT
size=2>+WriteVal<FONT face=Verdana
size=2><FONT
face="Times New Roman">(Y1);<FONT
face="Times New Roman">
GraphXSpace=5<FONT face=Verdana
size=2><FONT
face="Times New Roman">;
Dimitris
Tsokakis
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:
measure.gif
Attachment:
Description: "Description: GIF image"
|