커뮤니티

수식 부탁드립니다.

프로필 이미지
라떼처럼
2018-07-03 00:59:43
209
글번호 120239
답변완료

첨부 이미지

아래 지표식에서 과열권, 침체권 평균값들의 이동평균 그래프를 표현하고 싶습니다. 감사합니다. Input : Period(12), Period1(5), Period2(5); var : H1(0),L1(0),H2(0),L2(0); Value1 = StochasticsD(Period,Period1,PEriod2); Condition1 = value1 > 80; Condition2 = value1 < 20; if Condition1 == true and Condition1[1] == false Then{ H1 = H; L1 = L; } if Condition1 == true then { if h > H1 Then H1 = h; if l < L1 Then L1 = l; } if Condition1 == false and Condition1[1] == true Then var1 = (H1+L1)/2; if Condition2 == true and Condition2[1] == false Then{ H2 = H; L2 = L; } if Condition2 == true then { if h > H2 Then H2 = h; if l < L2 Then L2 = l; } if Condition2 == false and Condition2[1] == true Then var2 = (H2+L2)/2; plot1(var1); plot2(var2);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-07-03 09:58:15

안녕하세요 예스스탁입니다. input : Period(12), Period1(5), Period2(5); var : H1(0),L1(0),H2(0),L2(0); Value1 = StochasticsD(Period,Period1,PEriod2); Condition1 = value1 > 80; Condition2 = value1 < 20; if Condition1 == true and Condition1[1] == false Then{ H1 = H; L1 = L; } if Condition1 == true then { if h > H1 Then H1 = h; if l < L1 Then L1 = l; } if Condition1 == false and Condition1[1] == true Then { var1 = (H1+L1)/2; var11 = var11+var1; var12 = var12+1; var13 = (var11/var12); } if Condition2 == true and Condition2[1] == false Then{ H2 = H; L2 = L; } if Condition2 == true then { if h > H2 Then H2 = h; if l < L2 Then L2 = l; } if Condition2 == false and Condition2[1] == true Then { var2 = (H2+L2)/2; var21 = var21+var2; var22 = var22+1; var23 = (var21/var22); } plot1(var1); plot2(var2); plot3(var13); plot4(var23); 즐거운 하루되세요 > 라떼처럼 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 아래 지표식에서 과열권, 침체권 평균값들의 이동평균 그래프를 표현하고 싶습니다. 감사합니다. Input : Period(12), Period1(5), Period2(5); var : H1(0),L1(0),H2(0),L2(0); Value1 = StochasticsD(Period,Period1,PEriod2); Condition1 = value1 > 80; Condition2 = value1 < 20; if Condition1 == true and Condition1[1] == false Then{ H1 = H; L1 = L; } if Condition1 == true then { if h > H1 Then H1 = h; if l < L1 Then L1 = l; } if Condition1 == false and Condition1[1] == true Then var1 = (H1+L1)/2; if Condition2 == true and Condition2[1] == false Then{ H2 = H; L2 = L; } if Condition2 == true then { if h > H2 Then H2 = h; if l < L2 Then L2 = l; } if Condition2 == false and Condition2[1] == true Then var2 = (H2+L2)/2; plot1(var1); plot2(var2);