PureBytes Links
Trading Reference Links
|
=============
SlopePeriod = Param("SlopePeriod", 4,0,300,1);
function SlopeinDegree( Array )
{
SelectedBar = SelectedValue( BarIndex() );
if ( selectedBar < BarCount-1 )
CurrentBar = selectedBar;
else
CurrentBar = BarCount-1;
End = CurrentBar;
Start = Max(CurrentBar-SlopePeriod,1);
Y1=ARRAY[End];
Y0=ARRAY[Start];
AngleinDegree = atan( (Y1-Y0)/(End-Start) )*45/atan(1);
return AngleinDegree;
}
======
Awaiting you guys feedback.
Thanks
Chcoco
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|