PureBytes Links
Trading Reference Links
|
Have anyone written a script that would find LLV or HHV for a given
day and calculate the percentage of the last trading day of the week
between the too.
Basically looking for a percentage change for I can find stock that
is either trending up or down.
I would like to use this in (AA) using addcolumn.
I was using this script that i copied of the board.
x=Cum(1);
z=IIf(Low<Ref(LLV(Low,5), -1),1,0);
zz=ValueWhen(z,x);
y=IIf (High>Ref(HHV(High,5), -1),1,0);
yy=ValueWhen(y,x);
Filter=1;
AddColumn(ValueWhen(z,DateNum()),"date Z",1);
AddColumn(ValueWhen(y,DateNum()),"date Y",1);
AddColumn(abs(zz-yy),"Bars between");
x = Cum(1);
firstvalue = LastValue( x ); Daysback = 130; Cc= LastValue(
LinRegIntercept( Close, Daysback) );
b = LastValue( LinRegSlope( Close, Daysback ) );
Aa=L<Ref(LLV(L,130),-1);
b=Ref(L,-130);
Cc=L;
Buy=Aa;
Ab=H>Ref (HHV(H,130),-1);
d=Ref(H,-130);
Ch=H;
AddColumn(Cc,"6mo low");
AddColumn(Ch,"6mo High");
AddColumn(b,"LLv 6Months Ago");
AddColumn(d,"hhv 6months ago");
AddColumn(,"Cc");
Filter=Buy;
Plot(aA,"",1,1);
Plot(Ab,"",1,1);
,format=1.2,fgcolor=colorDefault,bkcolor=colorDefault);
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get a FREE REFINANCE QUOTE - click here!
http://us.click.yahoo.com/2CXtTB/ca0FAA/i5gGAA/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/
|