커뮤니티

문의드립니다

프로필 이미지
장군
2017-09-05 11:12:07
118
글번호 112496
답변완료
1)Input: Period(20),dv(2); Var : SumSqrt(0), Emav(0), Counter(0),AVGV(0),Stdv(0),BBmd(0),BBup(0),BBdn(0); If index >= Period Then{ BBmd = (Highest(H, Period) + Lowest(L, Period)) / 2; SumSqrt = 0; For Counter = 0 To Period - 1 Begin SumSqrt = SumSqrt + (C[Counter] - BBmd) * (C[Counter] - BBmd); End; Stdv = SquareRoot(SumSqrt / Period); BBup = BBmd + (Dv * stdv); BBdn = BBmd - (Dv * stdv); plot1(BBmd,"중단"); plot2(BBup,"상단"); plot3(BBdn,"하단"); } 중단1틱이상,상승시레드색, 1틱이하하락시,블루색강조식부탁드립니다~~ 2)주간피보나치 23.6프로76.4프로 상승하락시 (레드색,블루색강조식도 부탁드립니다~~
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-09-05 11:23:59

안녕하세요 예스스탁입니다. 1. Input: Period(20),dv(2); Var : SumSqrt(0), Emav(0), Counter(0),AVGV(0),Stdv(0),BBmd(0),BBup(0),BBdn(0); If index >= Period Then{ BBmd = (Highest(H, Period) + Lowest(L, Period)) / 2; SumSqrt = 0; For Counter = 0 To Period - 1 Begin SumSqrt = SumSqrt + (C[Counter] - BBmd) * (C[Counter] - BBmd); End; Stdv = SquareRoot(SumSqrt / Period); BBup = BBmd + (Dv * stdv); BBdn = BBmd - (Dv * stdv); if C >= BBmd+PriceScale*1 Then PlotPaintBar(H,L,"강조",RED); if C <= BBmd-PriceScale*1 Then PlotPaintBar(H,L,"강조",blue); } 2 if DayOfWeek(bdate) < DayOfWeek(bdate[1]) Then{ var1 = h; var2 = l; Condition1 = true; } if Condition1 == true then{ if h > var1 Then var1 = H; if L < var2 Then var2 = l; var3 = (var1+var2)/2; if c >= var1-(var1-var2)*0.236 Then PlotPaintBar(H,L,"강조",RED); if c <= var1-(var1-var2)*0.764 Then PlotPaintBar(H,L,"강조",RED); } 즐거운 하루되세요 > 장군 님이 쓴 글입니다. > 제목 : 문의드립니다 > 1)Input: Period(20),dv(2); Var : SumSqrt(0), Emav(0), Counter(0),AVGV(0),Stdv(0),BBmd(0),BBup(0),BBdn(0); If index >= Period Then{ BBmd = (Highest(H, Period) + Lowest(L, Period)) / 2; SumSqrt = 0; For Counter = 0 To Period - 1 Begin SumSqrt = SumSqrt + (C[Counter] - BBmd) * (C[Counter] - BBmd); End; Stdv = SquareRoot(SumSqrt / Period); BBup = BBmd + (Dv * stdv); BBdn = BBmd - (Dv * stdv); plot1(BBmd,"중단"); plot2(BBup,"상단"); plot3(BBdn,"하단"); } 중단1틱이상,상승시레드색, 1틱이하하락시,블루색강조식부탁드립니다~~ 2)주간피보나치 23.6프로76.4프로 상승하락시 (레드색,블루색강조식도 부탁드립니다~~