커뮤니티

부탁합니다

프로필 이미지
안전
2012-01-18 21:53:51
481
글번호 46801
답변완료
볼린저밴드 ~ 부탁합니다 avg((c+h+l)/3,20) +(-) 2*stdev((c+h+l)/3,20) eavg((c+h+l)/3,20) +(-) 2*stdev((c+h+l)/3,20)
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-01-19 09:56:01

안녕하세요 예스스탁입니다. 지수이평을 이용한 볼린져밴드식은 풀어서 작성하셔야 합니다. #avg((c+h+l)/3,20) +(-) 2*stdev((c+h+l)/3,20) plot1(ma((c+h+l)/3,20)); plot2(ma((c+h+l)/3,20)+2*std((c+h+l)/3,20)); plot3(ma((c+h+l)/3,20)-2*std((c+h+l)/3,20)); #eavg((c+h+l)/3,20) +(-) 2*stdev((c+h+l)/3,20) Input: Period(20),dv(2); Var : SumSqrt(0), Emav(0), Counter(0),AVGV(0),Stdv(0),bollup(0),bollDn(0); var1 = (c+h+l)/3; EMAV = ema(var1,Period); If Period != 0 Then Begin Avgv = EMAV; SumSqrt = 0; For Counter = 0 To Period - 1 Begin SumSqrt = SumSqrt + (var1[Counter] - Avgv) * (var1[Counter] - Avgv); End; Stdv = SquareRoot(SumSqrt / Period); End Else Stdv = 0; bollup = EMAV + (Dv * stdv); bolldn = EMAV - (Dv * stdv); plot4(EMAV); plot5(bollup); plot6(bolldn); 즐거운 하루되세요 > 안전 님이 쓴 글입니다. > 제목 : 부탁합니다 > 볼린저밴드 ~ 부탁합니다 avg((c+h+l)/3,20) +(-) 2*stdev((c+h+l)/3,20) eavg((c+h+l)/3,20) +(-) 2*stdev((c+h+l)/3,20)