커뮤니티

검토부탁드립니다

프로필 이미지
뉴스타트
2015-01-20 11:05:22
171
글번호 82414
답변완료
안녕하세요 39726 답변내용에 사용된 단,장기 이평을 fcstVBE_ma과 fcstVBE_ma1로 대체하여 예스글로벌에서 적용하니 교차가 발생했음에도 지표가 PLOT되지 않는곳이 많습니다.검토부탁드립니다. input : Left(3),Right(3); var : SL(0),SH(0),T(0),cross(0),AA(0); var : Line1(0),Line2(0),Line3(0),Line4(0); Var:chng_rt(0),j(0),ma_val(0),rawVBE_ma(0); Var:chng_rt1(0),j1(0),ma_val1(0),rawVBE_ma1(0); Array:len[6](0),VBE_ma[6](0), ma_chg[6](0),ma_cor[6](0), fcstVBE_ma[6](0); Array:len1[11](0),VBE_ma1[11](0), ma_chg1[11](0),ma_cor1[11](0), fcstVBE_ma1[11](0); len[0] = 21; len[1] = 17; len[2] = 13; len[3] = 9; len[4] = 5; len[5] = 2; chng_rt = (C/C[1]-1); //가격 변동률 ma_val = ma(chng_rt,len[0]); //가격변동률의 평균 rawVBE_ma = C * (1 + ma_val); //원시VBE for j = 0 to 5 { VBE_ma[j] = wma(rawVBE_ma,len[j]); //원시VBE를 가중이평으로 평활화 if VBE_ma[j][1] > 0 then ma_chg[j] = (VBE_ma[j]-VBE_ma[j][1])/VBE_ma[j][1]; //VBE의 변동률 } fcstVBE_ma[0] = VBE_ma[0]; plot1(fcstVBE_ma[0]); len1[0] = 41; len1[1] = 37; len1[2] = 33; len1[3] = 29; len1[4] = 25; len1[5] = 21; len1[6] = 17; len1[7] = 13; len1[8] = 9; len1[9] = 5; len1[10] =2; chng_rt1 = (C/C[1]-1); //가격 변동률 ma_val1 = ma(chng_rt1,len1[0]); //가격변동률의 평균 rawVBE_ma1 = C * (1 + ma_val1); //원시VBE for j1 = 0 to 10 { VBE_ma1[j1] = wma(rawVBE_ma1,len1[j1]); //원시VBE를 가중이평으로 평활화 if VBE_ma1[j1][1] > 0 then ma_chg1[j1] = (VBE_ma1[j1]-VBE_ma1[j1][1])/VBE_ma1[j1][1]; //VBE의 변동률 } fcstVBE_ma1[0] = VBE_ma1[0]; plot2(fcstVBE_ma1[0]); var1 = fcstVBE_ma[0]; var2 = fcstVBE_ma1[0]; if SwingLow(1,L,Left,Right,left+right+1) != -1 Then SL = L[right]; if SwingHigh(1,H,Left,Right,left+right+1) != -1 Then SH = H[right]; if crossup(var1,var2) and SL > 0 Then{ T = 1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross+AA*0.618; Line2 = cross+AA*1.000; Line3 = cross+AA*1.618; Line4 = cross+AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if CrossDown(var1,var2) and SH > 0 Then{ T = -1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross-AA*0.618; Line2 = cross-AA*1.000; Line3 = cross-AA*1.618; Line4 = cross-AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if T == 1 Then{ if H >= Line1 Then Condition1 = true; if H >= Line2 Then Condition2 = true; if H >= Line3 Then Condition3 = true; if H >= Line4 Then Condition4 = true; if Condition1 == False Then plot3(Line1,"0.618"); if Condition1 == False Then plot4(Line2,"1.000"); if Condition1 == False Then plot5(Line3,"1.618"); if Condition1 == False Then plot6(Line4,"2.000"); } if T == -1 Then{ if L <= Line1 Then Condition1 = True; if L <= Line2 Then Condition2 = true; if L <= Line3 Then Condition3 = true; if L <= Line4 Then Condition4 = true; if Condition1 == False Then plot7(Line1,"0.618"); if Condition1 == False Then plot8(Line2,"1.000"); if Condition1 == False Then plot9(Line3,"1.618"); if Condition1 == False Then plot10(Line4,"2.000"); }
지표
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2015-01-20 17:35:12

안녕하세요 예스스탁입니다. 각 Line을 저가나 고가가 터치하면 그려지지 않습니다. 모든선이 condition1이 false로 지정이 되오 line1만 터치하면 모두 그려지지 않게 되어 있었습니다. 각 라인별로 따로 condition을 지정했습니다. input : Left(3),Right(3); var : SL(0),SH(0),T(0),cross(0),AA(0); var : Line1(0),Line2(0),Line3(0),Line4(0); Var:chng_rt(0),j(0),ma_val(0),rawVBE_ma(0); Var:chng_rt1(0),j1(0),ma_val1(0),rawVBE_ma1(0); Array:len[6](0),VBE_ma[6](0), ma_chg[6](0),ma_cor[6](0), fcstVBE_ma[6](0); Array:len1[11](0),VBE_ma1[11](0), ma_chg1[11](0),ma_cor1[11](0), fcstVBE_ma1[11](0); len[0] = 21; len[1] = 17; len[2] = 13; len[3] = 9; len[4] = 5; len[5] = 2; chng_rt = (C/C[1]-1); //가격 변동률 ma_val = ma(chng_rt,len[0]); //가격변동률의 평균 rawVBE_ma = C * (1 + ma_val); //원시VBE for j = 0 to 5 { VBE_ma[j] = wma(rawVBE_ma,len[j]); //원시VBE를 가중이평으로 평활화 if VBE_ma[j][1] > 0 then ma_chg[j] = (VBE_ma[j]-VBE_ma[j][1])/VBE_ma[j][1]; //VBE의 변동률 } fcstVBE_ma[0] = VBE_ma[0]; plot1(fcstVBE_ma[0]); len1[0] = 41; len1[1] = 37; len1[2] = 33; len1[3] = 29; len1[4] = 25; len1[5] = 21; len1[6] = 17; len1[7] = 13; len1[8] = 9; len1[9] = 5; len1[10] =2; chng_rt1 = (C/C[1]-1); //가격 변동률 ma_val1 = ma(chng_rt1,len1[0]); //가격변동률의 평균 rawVBE_ma1 = C * (1 + ma_val1); //원시VBE for j1 = 0 to 10 { VBE_ma1[j1] = wma(rawVBE_ma1,len1[j1]); //원시VBE를 가중이평으로 평활화 if VBE_ma1[j1][1] > 0 then ma_chg1[j1] = (VBE_ma1[j1]-VBE_ma1[j1][1])/VBE_ma1[j1][1]; //VBE의 변동률 } fcstVBE_ma1[0] = VBE_ma1[0]; plot2(fcstVBE_ma1[0]); var1 = fcstVBE_ma[0]; var2 = fcstVBE_ma1[0]; if SwingLow(1,L,Left,Right,left+right+1) != -1 Then SL = L[right]; if SwingHigh(1,H,Left,Right,left+right+1) != -1 Then SH = H[right]; if crossup(var1,var2) and SL > 0 Then{ T = 1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross+AA*0.618; Line2 = cross+AA*1.000; Line3 = cross+AA*1.618; Line4 = cross+AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if CrossDown(var1,var2) and SH > 0 Then{ T = -1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross-AA*0.618; Line2 = cross-AA*1.000; Line3 = cross-AA*1.618; Line4 = cross-AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if T == 1 Then{ if H >= Line1 Then Condition1 = true; if H >= Line2 Then Condition2 = true; if H >= Line3 Then Condition3 = true; if H >= Line4 Then Condition4 = true; if Condition1 == False Then plot3(Line1,"0.618"); if Condition2 == False Then plot4(Line2,"1.000"); if Condition3 == False Then plot5(Line3,"1.618"); if Condition4 == False Then plot6(Line4,"2.000"); } if T == -1 Then{ if L <= Line1 Then Condition1 = True; if L <= Line2 Then Condition2 = true; if L <= Line3 Then Condition3 = true; if L <= Line4 Then Condition4 = true; if Condition1 == False Then plot7(Line1,"0.618"); if Condition2 == False Then plot8(Line2,"1.000"); if Condition3 == False Then plot9(Line3,"1.618"); if Condition4 == False Then plot10(Line4,"2.000"); } 즐거운 하루되세요 > 뉴스타트 님이 쓴 글입니다. > 제목 : 검토부탁드립니다 > 안녕하세요 39726 답변내용에 사용된 단,장기 이평을 fcstVBE_ma과 fcstVBE_ma1로 대체하여 예스글로벌에서 적용하니 교차가 발생했음에도 지표가 PLOT되지 않는곳이 많습니다.검토부탁드립니다. input : Left(3),Right(3); var : SL(0),SH(0),T(0),cross(0),AA(0); var : Line1(0),Line2(0),Line3(0),Line4(0); Var:chng_rt(0),j(0),ma_val(0),rawVBE_ma(0); Var:chng_rt1(0),j1(0),ma_val1(0),rawVBE_ma1(0); Array:len[6](0),VBE_ma[6](0), ma_chg[6](0),ma_cor[6](0), fcstVBE_ma[6](0); Array:len1[11](0),VBE_ma1[11](0), ma_chg1[11](0),ma_cor1[11](0), fcstVBE_ma1[11](0); len[0] = 21; len[1] = 17; len[2] = 13; len[3] = 9; len[4] = 5; len[5] = 2; chng_rt = (C/C[1]-1); //가격 변동률 ma_val = ma(chng_rt,len[0]); //가격변동률의 평균 rawVBE_ma = C * (1 + ma_val); //원시VBE for j = 0 to 5 { VBE_ma[j] = wma(rawVBE_ma,len[j]); //원시VBE를 가중이평으로 평활화 if VBE_ma[j][1] > 0 then ma_chg[j] = (VBE_ma[j]-VBE_ma[j][1])/VBE_ma[j][1]; //VBE의 변동률 } fcstVBE_ma[0] = VBE_ma[0]; plot1(fcstVBE_ma[0]); len1[0] = 41; len1[1] = 37; len1[2] = 33; len1[3] = 29; len1[4] = 25; len1[5] = 21; len1[6] = 17; len1[7] = 13; len1[8] = 9; len1[9] = 5; len1[10] =2; chng_rt1 = (C/C[1]-1); //가격 변동률 ma_val1 = ma(chng_rt1,len1[0]); //가격변동률의 평균 rawVBE_ma1 = C * (1 + ma_val1); //원시VBE for j1 = 0 to 10 { VBE_ma1[j1] = wma(rawVBE_ma1,len1[j1]); //원시VBE를 가중이평으로 평활화 if VBE_ma1[j1][1] > 0 then ma_chg1[j1] = (VBE_ma1[j1]-VBE_ma1[j1][1])/VBE_ma1[j1][1]; //VBE의 변동률 } fcstVBE_ma1[0] = VBE_ma1[0]; plot2(fcstVBE_ma1[0]); var1 = fcstVBE_ma[0]; var2 = fcstVBE_ma1[0]; if SwingLow(1,L,Left,Right,left+right+1) != -1 Then SL = L[right]; if SwingHigh(1,H,Left,Right,left+right+1) != -1 Then SH = H[right]; if crossup(var1,var2) and SL > 0 Then{ T = 1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross+AA*0.618; Line2 = cross+AA*1.000; Line3 = cross+AA*1.618; Line4 = cross+AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if CrossDown(var1,var2) and SH > 0 Then{ T = -1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross-AA*0.618; Line2 = cross-AA*1.000; Line3 = cross-AA*1.618; Line4 = cross-AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if T == 1 Then{ if H >= Line1 Then Condition1 = true; if H >= Line2 Then Condition2 = true; if H >= Line3 Then Condition3 = true; if H >= Line4 Then Condition4 = true; if Condition1 == False Then plot3(Line1,"0.618"); if Condition1 == False Then plot4(Line2,"1.000"); if Condition1 == False Then plot5(Line3,"1.618"); if Condition1 == False Then plot6(Line4,"2.000"); } if T == -1 Then{ if L <= Line1 Then Condition1 = True; if L <= Line2 Then Condition2 = true; if L <= Line3 Then Condition3 = true; if L <= Line4 Then Condition4 = true; if Condition1 == False Then plot7(Line1,"0.618"); if Condition1 == False Then plot8(Line2,"1.000"); if Condition1 == False Then plot9(Line3,"1.618"); if Condition1 == False Then plot10(Line4,"2.000"); }
프로필 이미지

뉴스타트

2015-01-21 09:33:45

감사합니다. 한가지만 수정해 주십시요 교차가 발생되어 PLOT 조건이 되면 일단 한번은 네군데 지점 모두에 PLOT(위치표시)이 되고 그런상태에서 위의 답변주신 내용대로 PLOT되게 수정부탁드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 검토부탁드립니다 > 안녕하세요 예스스탁입니다. 각 Line을 저가나 고가가 터치하면 그려지지 않습니다. 모든선이 condition1이 false로 지정이 되오 line1만 터치하면 모두 그려지지 않게 되어 있었습니다. 각 라인별로 따로 condition을 지정했습니다. input : Left(3),Right(3); var : SL(0),SH(0),T(0),cross(0),AA(0); var : Line1(0),Line2(0),Line3(0),Line4(0); Var:chng_rt(0),j(0),ma_val(0),rawVBE_ma(0); Var:chng_rt1(0),j1(0),ma_val1(0),rawVBE_ma1(0); Array:len[6](0),VBE_ma[6](0), ma_chg[6](0),ma_cor[6](0), fcstVBE_ma[6](0); Array:len1[11](0),VBE_ma1[11](0), ma_chg1[11](0),ma_cor1[11](0), fcstVBE_ma1[11](0); len[0] = 21; len[1] = 17; len[2] = 13; len[3] = 9; len[4] = 5; len[5] = 2; chng_rt = (C/C[1]-1); //가격 변동률 ma_val = ma(chng_rt,len[0]); //가격변동률의 평균 rawVBE_ma = C * (1 + ma_val); //원시VBE for j = 0 to 5 { VBE_ma[j] = wma(rawVBE_ma,len[j]); //원시VBE를 가중이평으로 평활화 if VBE_ma[j][1] > 0 then ma_chg[j] = (VBE_ma[j]-VBE_ma[j][1])/VBE_ma[j][1]; //VBE의 변동률 } fcstVBE_ma[0] = VBE_ma[0]; plot1(fcstVBE_ma[0]); len1[0] = 41; len1[1] = 37; len1[2] = 33; len1[3] = 29; len1[4] = 25; len1[5] = 21; len1[6] = 17; len1[7] = 13; len1[8] = 9; len1[9] = 5; len1[10] =2; chng_rt1 = (C/C[1]-1); //가격 변동률 ma_val1 = ma(chng_rt1,len1[0]); //가격변동률의 평균 rawVBE_ma1 = C * (1 + ma_val1); //원시VBE for j1 = 0 to 10 { VBE_ma1[j1] = wma(rawVBE_ma1,len1[j1]); //원시VBE를 가중이평으로 평활화 if VBE_ma1[j1][1] > 0 then ma_chg1[j1] = (VBE_ma1[j1]-VBE_ma1[j1][1])/VBE_ma1[j1][1]; //VBE의 변동률 } fcstVBE_ma1[0] = VBE_ma1[0]; plot2(fcstVBE_ma1[0]); var1 = fcstVBE_ma[0]; var2 = fcstVBE_ma1[0]; if SwingLow(1,L,Left,Right,left+right+1) != -1 Then SL = L[right]; if SwingHigh(1,H,Left,Right,left+right+1) != -1 Then SH = H[right]; if crossup(var1,var2) and SL > 0 Then{ T = 1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross+AA*0.618; Line2 = cross+AA*1.000; Line3 = cross+AA*1.618; Line4 = cross+AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if CrossDown(var1,var2) and SH > 0 Then{ T = -1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross-AA*0.618; Line2 = cross-AA*1.000; Line3 = cross-AA*1.618; Line4 = cross-AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if T == 1 Then{ if H >= Line1 Then Condition1 = true; if H >= Line2 Then Condition2 = true; if H >= Line3 Then Condition3 = true; if H >= Line4 Then Condition4 = true; if Condition1 == False Then plot3(Line1,"0.618"); if Condition2 == False Then plot4(Line2,"1.000"); if Condition3 == False Then plot5(Line3,"1.618"); if Condition4 == False Then plot6(Line4,"2.000"); } if T == -1 Then{ if L <= Line1 Then Condition1 = True; if L <= Line2 Then Condition2 = true; if L <= Line3 Then Condition3 = true; if L <= Line4 Then Condition4 = true; if Condition1 == False Then plot7(Line1,"0.618"); if Condition2 == False Then plot8(Line2,"1.000"); if Condition3 == False Then plot9(Line3,"1.618"); if Condition4 == False Then plot10(Line4,"2.000"); } 즐거운 하루되세요 > 뉴스타트 님이 쓴 글입니다. > 제목 : 검토부탁드립니다 > 안녕하세요 39726 답변내용에 사용된 단,장기 이평을 fcstVBE_ma과 fcstVBE_ma1로 대체하여 예스글로벌에서 적용하니 교차가 발생했음에도 지표가 PLOT되지 않는곳이 많습니다.검토부탁드립니다. input : Left(3),Right(3); var : SL(0),SH(0),T(0),cross(0),AA(0); var : Line1(0),Line2(0),Line3(0),Line4(0); Var:chng_rt(0),j(0),ma_val(0),rawVBE_ma(0); Var:chng_rt1(0),j1(0),ma_val1(0),rawVBE_ma1(0); Array:len[6](0),VBE_ma[6](0), ma_chg[6](0),ma_cor[6](0), fcstVBE_ma[6](0); Array:len1[11](0),VBE_ma1[11](0), ma_chg1[11](0),ma_cor1[11](0), fcstVBE_ma1[11](0); len[0] = 21; len[1] = 17; len[2] = 13; len[3] = 9; len[4] = 5; len[5] = 2; chng_rt = (C/C[1]-1); //가격 변동률 ma_val = ma(chng_rt,len[0]); //가격변동률의 평균 rawVBE_ma = C * (1 + ma_val); //원시VBE for j = 0 to 5 { VBE_ma[j] = wma(rawVBE_ma,len[j]); //원시VBE를 가중이평으로 평활화 if VBE_ma[j][1] > 0 then ma_chg[j] = (VBE_ma[j]-VBE_ma[j][1])/VBE_ma[j][1]; //VBE의 변동률 } fcstVBE_ma[0] = VBE_ma[0]; plot1(fcstVBE_ma[0]); len1[0] = 41; len1[1] = 37; len1[2] = 33; len1[3] = 29; len1[4] = 25; len1[5] = 21; len1[6] = 17; len1[7] = 13; len1[8] = 9; len1[9] = 5; len1[10] =2; chng_rt1 = (C/C[1]-1); //가격 변동률 ma_val1 = ma(chng_rt1,len1[0]); //가격변동률의 평균 rawVBE_ma1 = C * (1 + ma_val1); //원시VBE for j1 = 0 to 10 { VBE_ma1[j1] = wma(rawVBE_ma1,len1[j1]); //원시VBE를 가중이평으로 평활화 if VBE_ma1[j1][1] > 0 then ma_chg1[j1] = (VBE_ma1[j1]-VBE_ma1[j1][1])/VBE_ma1[j1][1]; //VBE의 변동률 } fcstVBE_ma1[0] = VBE_ma1[0]; plot2(fcstVBE_ma1[0]); var1 = fcstVBE_ma[0]; var2 = fcstVBE_ma1[0]; if SwingLow(1,L,Left,Right,left+right+1) != -1 Then SL = L[right]; if SwingHigh(1,H,Left,Right,left+right+1) != -1 Then SH = H[right]; if crossup(var1,var2) and SL > 0 Then{ T = 1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross+AA*0.618; Line2 = cross+AA*1.000; Line3 = cross+AA*1.618; Line4 = cross+AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if CrossDown(var1,var2) and SH > 0 Then{ T = -1; cross = (var1+var2)/2; AA = abs(cross-SL); Line1 = cross-AA*0.618; Line2 = cross-AA*1.000; Line3 = cross-AA*1.618; Line4 = cross-AA*2.000; Condition1 = false; Condition2 = false; Condition3 = false; Condition4 = false; } if T == 1 Then{ if H >= Line1 Then Condition1 = true; if H >= Line2 Then Condition2 = true; if H >= Line3 Then Condition3 = true; if H >= Line4 Then Condition4 = true; if Condition1 == False Then plot3(Line1,"0.618"); if Condition1 == False Then plot4(Line2,"1.000"); if Condition1 == False Then plot5(Line3,"1.618"); if Condition1 == False Then plot6(Line4,"2.000"); } if T == -1 Then{ if L <= Line1 Then Condition1 = True; if L <= Line2 Then Condition2 = true; if L <= Line3 Then Condition3 = true; if L <= Line4 Then Condition4 = true; if Condition1 == False Then plot7(Line1,"0.618"); if Condition1 == False Then plot8(Line2,"1.000"); if Condition1 == False Then plot9(Line3,"1.618"); if Condition1 == False Then plot10(Line4,"2.000"); }