[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Param Function



PureBytes Links

Trading Reference Links




The ^NDX o/b, o/s signals for 2004 are 
in the att. gif.
 
//Arithmetic, Geometric and 
Harmonic Mean :o/b and o/s conditions<FONT 
face=Verdana size=1>
Plot(C,"",1,64<FONT 
face=Verdana size=1>) 
;
function<FONT 
face=Verdana size=1> 
ArithmeticMean(array,n)
{<FONT face=Verdana 
size=1>
return MA<FONT 
face=Verdana size=1>(array,n);
}<FONT face=Verdana 
size=1>
function<FONT 
face=Verdana size=1> 
GeometricMean(array,n)
{<FONT face=Verdana 
size=1>
return exp(MA(log<FONT 
face=Verdana size=1><FONT face="Times New Roman" 
size=2>(array),n));
}<FONT face=Verdana 
size=1>
function<FONT 
face=Verdana size=1> 
HarmonicMean(array,n)
{<FONT face=Verdana 
size=1>
return 1/MA(1<FONT 
face=Verdana size=1>/array,n);
}
array=StochD();n=8<FONT 
face=Verdana size=1>;
<FONT face="Times New Roman" 
size=2>A1=ArithmeticMean(array,n);
G1=GeometricMean(array,n);
H1=HarmonicMean(array,n);
<FONT face="Times New Roman" 
size=2>OverboughtCondition=100*A1/G1<100.15 AND A1>70<FONT 
face=Verdana size=1><FONT face="Times New Roman" 
size=2>;
PlotShapes<FONT 
face=Verdana size=1><FONT face="Times New Roman" 
size=2>(shapeDownArrow*OverboughtCondition,colorRed);
array=100-StochD<FONT 
face=Verdana size=1>();
<FONT face="Times New Roman" 
size=2>A1=ArithmeticMean(array,n);
G1=GeometricMean(array,n);
H1=HarmonicMean(array,n);
<FONT face="Times New Roman" 
size=2>OversoldCondition=100*A1/G1<100.15 AND A1>70<FONT 
face=Verdana size=1><FONT face="Times New Roman" 
size=2>;
<FONT face="Times New Roman" 
size=2>PlotShapes(shapeUpArrow*OversoldCondition,colorBrightGreen);
GraphXSpace=5<FONT face="Times New Roman" 
size=2>;
<FONT face="Times New Roman" 
size=2> 
Dimitris 
Tsokakis


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.







Attachment:
00AGH.gif

Attachment: Description: "Description: GIF image"