Absolute Strength Index System |
//www.aflcode.com n=Optimize("period",10,1,100,1);/*period*/ A=0; M=0; D=0; diff = Close - Ref(Close, -1); ratio = Close / Ref(Close, -1); A = EMA(IIf(diff > 0, ratio - 1, 0), n); M = EMA(IIf(diff == 0, 1 / n, 0), n); D = EMA(IIf(diff < 0, 1 / ratio - 1, 0), n); ASI=IIf (D+M/2==0, 100, 100-100/(1+(A+M/2)/(D+M/2))); Plot(ASI,"ASI10",colorDarkBlue); Plot(50,"",colorBlack,styleLine); Plot(70,"",colorGreen,styleLine); Plot(30,"",colorRed,styleLine); GraphXSpace = 3;
Sign up here with your email
ConversionConversion EmoticonEmoticon