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

Re: [Metastockusers] MS Code ?



PureBytes Links

Trading Reference Links




Hi,
 
Here is a Tradestation  function code ;Can anyone translate 
into MS code ?Any help appreciated,KarileInputs: 
Len(Numeric);Vars: Mean(0), j(0), k(1.253314), SumSqr(0), Scale(0), 
MaxY(0),MinY(0), Rng(0);Arrays: X[100](0), Y[100](0);Mean = 
Average(C, Len);SumSqr = 0;for j = 0 to Len - 1 beginX[j] = C[j] - 
Mean;SumSqr = SumSqr + X[j] * X[j];end;Scale = SquareRoot(SumSqr / 
Len);Y[0] = X[0];MaxY = X[0];MinY = X[0];for j = 1 to Len - 1 
beginY[j] = Y[j - 1] + X[j];if Y[j] > MaxY then MaxY = Y[j];if 
Y[j] < MinY then MinY = Y[j];end;Rng = MaxY - 
MinY;FunctionMMar = Log(Rng/(k * Scale)) / 
Log(Len);






Yahoo! Groups Sponsor


<font face=arial
size=-2>ADVERTISEMENT<img src="http://ad.doubleclick.net/ad/N879.ameritrade.yahoo/B1054521.11;sz=300x250;adc=ZHS;ord=1034545263?"; alt="" width="300" height="250"
border="0">









To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.