커뮤니티

부탁드립니다

프로필 이미지
크라켄
2022-02-15 08:30:46
1107
글번호 156282
답변완료
$,안녕하세요 아래식을 일봉,주봉,월봉에 적용 가능하도록 도움 부탁드립니다 Input:비율(0); var : aa(0),lc(0),hc(0); aa = ema(ema(ema(c,10),10),10); if aa[2]<=aa[1] and aa[1] > aa Then { lc = c; } Else { if lc > 0 and C < lc Then lc = C; } if aa[2]>=aa[1] and aa[1] < aa Then { hc = c; } Else { if hc > 0 and C > hc Then hc = C; } if lc > 0 Then { var1 = lc+(lc*비율/100); Plot1(var1); } if hc > 0 Then { var2 = hc-(hc*비율/100); plot2(Var2); } 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-02-15 11:29:24

안녕하세요 예스스탁입니다. 1 일 Input : P(10),비율(0); var : DD(0),Ep(0); var : emav1(0),Pre1(0),emav2(0),Pre2(0); Var : emav3(0),Pre3(0),pre31(0),Pre32(0); var : tLC(0),LC(0),thc(0),HC(0); Ep = 2/(P+1); if bdate != bdate[1] then { DD = DD + 1; Pre1 = emav1[1]; Pre2 = emav2[1]; Pre3 = emav3[1]; Pre31 = Pre3[1]; Pre32 = Pre31[1]; if Pre32 <= Pre31 and Pre31 > Pre3 Then { tLC = C[1]; } Else { if tLC > 0 and C[1] < tLC Then tLC = C[1]; } if Pre32 >= Pre31 and Pre31 < Pre3 Then { thc = c[1]; } Else { if thc > 0 and C[1] > thc Then thc = C[1]; } } if DD <= 1 then { emav1 = C; emav2 = C; emav3 = C; } else { emav1 = C * EP + Pre1 * (1-EP); emav2 = emav1 * EP + Pre2 * (1-EP); emav3 = emav2 * EP + Pre3 * (1-EP); } if tlc > 0 Then { LC = min(C,tlc); var1 = lc+(lc*비율/100); Plot1(var1); } if hc > 0 Then { HC = max(C,thc); var2 = hc-(hc*비율/100); plot2(Var2); } 2 주 Input : P(10),비율(0); var : DD(0),Ep(0); var : emav1(0),Pre1(0),emav2(0),Pre2(0); Var : emav3(0),Pre3(0),pre31(0),Pre32(0); var : tLC(0),LC(0),thc(0),HC(0); Ep = 2/(P+1); if dayofweek(bdate) < DayOfWeek(bdate[1]) then { DD = DD + 1; Pre1 = emav1[1]; Pre2 = emav2[1]; Pre3 = emav3[1]; Pre31 = Pre3[1]; Pre32 = Pre31[1]; if Pre32 <= Pre31 and Pre31 > Pre3 Then { tLC = C[1]; } Else { if tLC > 0 and C[1] < tLC Then tLC = C[1]; } if Pre32 >= Pre31 and Pre31 < Pre3 Then { thc = c[1]; } Else { if thc > 0 and C[1] > thc Then thc = C[1]; } } if DD <= 1 then { emav1 = C; emav2 = emav1; emav3 = emav2; } else { emav1 = C * EP + Pre1 * (1-EP); emav2 = emav1 * EP + Pre2 * (1-EP); emav3 = emav2 * EP + Pre3 * (1-EP); } if tlc > 0 Then { LC = min(C,tlc); var1 = lc+(lc*비율/100); Plot1(var1); } if thc > 0 Then { HC = max(C,thc); var2 = hc-(hc*비율/100); plot2(Var2); } 3 월 Input : P(10),비율(0); var : DD(0),Ep(0); var : emav1(0),Pre1(0),emav2(0),Pre2(0); Var : emav3(0),Pre3(0),pre31(0),Pre32(0); var : tLC(0),LC(0),thc(0),HC(0); Ep = 2/(P+1); if bdate > bdate[1]+30 then { DD = DD + 1; Pre1 = emav1[1]; Pre2 = emav2[1]; Pre3 = emav3[1]; Pre31 = Pre3[1]; Pre32 = Pre31[1]; if Pre32 <= Pre31 and Pre31 > Pre3 Then { tLC = C[1]; } Else { if tLC > 0 and C[1] < tLC Then tLC = C[1]; } if Pre32 >= Pre31 and Pre31 < Pre3 Then { thc = c[1]; } Else { if thc > 0 and C[1] > thc Then thc = C[1]; } } if DD <= 1 then { emav1 = C; emav2 = emav1; emav3 = emav2; } else { emav1 = C * EP + Pre1 * (1-EP); emav2 = emav1 * EP + Pre2 * (1-EP); emav3 = emav2 * EP + Pre3 * (1-EP); } if tlc > 0 Then { LC = min(C,tlc); var1 = lc+(lc*비율/100); Plot1(var1); } if thc > 0 Then { HC = max(C,thc); var2 = hc-(hc*비율/100); plot2(Var2); } 즐거운 하루되세요 > 크라켄 님이 쓴 글입니다. > 제목 : 부탁드립니다 > $,안녕하세요 아래식을 일봉,주봉,월봉에 적용 가능하도록 도움 부탁드립니다 Input:비율(0); var : aa(0),lc(0),hc(0); aa = ema(ema(ema(c,10),10),10); if aa[2]<=aa[1] and aa[1] > aa Then { lc = c; } Else { if lc > 0 and C < lc Then lc = C; } if aa[2]>=aa[1] and aa[1] < aa Then { hc = c; } Else { if hc > 0 and C > hc Then hc = C; } if lc > 0 Then { var1 = lc+(lc*비율/100); Plot1(var1); } if hc > 0 Then { var2 = hc-(hc*비율/100); plot2(Var2); } 감사합니다.