커뮤니티

문의드립니다

프로필 이미지
장군
2020-02-04 13:21:24
310
글번호 135595
답변완료
input : ntime1(60),P(20); var : S1(0),D1(0),TM(0),TF(0),cnt(0),TL1(0),TL2(0); Array : HH[10](0),LL[10](0),CC[10](0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%ntime1; if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then { TL_Delete(TL1); TL_Delete(TL2); HH[0] = c; LL[0] = c; for cnt = 1 to 9 { CC[cnt] = CC[cnt-1][1]-PriceScale*2; HH[cnt] = LL[cnt-1][1]-PriceScale*2; LL[cnt] = LL[cnt-1][1]+PriceScale*2; } if HH[1] > 0 and LL[1] > 0 then { TL1 = TL_New(sdate[1],stime[1],CC[1]+PriceScale*1,sdate,stime,CC[1]+PriceScale*1); TL_SetColor(TL1,GREEN); TL_SetSize(TL1,2); TL_SetExtRight(Tl1,true); } } else { TL_SetEnd(TL1,sdate,stime,CC[1]); } CC[0] = C; if c > HH[0] Then HH[0] = c; if c < LL[0] Then LL[0] = c; } 위수식으로 사용해보니1분봉으로 사용시 1분이지나서 수평선이 나옵니다 60분수평선이 1분이되어서 나오는데 바로 60분봉시작시 나오게 수정부탁드립니다~~항상감사드립니다 2)vars: xClose(0),xOpen(0),xHigh(0),xLow(0),t(0); if index == 0 then { xOpen = open; xClose = (O+H+L+C)/4; xHigh = MaxList( high, xOpen, xClose); xLow = MinList( low, xOpen,xClose); } else { xClose = (O+H+L+C)/4; xOpen = (xOpen [1] + xClose [1])/2 ; xHigh = MaxList(High, xOpen, xClose) ; xLow = MinList(Low, xOpen, xClose) ; } if xClose > xOpen then PlotPaintBar(Xhigh,Xlow,Xopen,Xclose,"강조",MAGENTA); else if xClose < xOpen then PlotPaintBar(Xhigh,Xlow,Xopen,Xclose,"강조",BLUE); else PlotPaintBar(Xhigh,Xlow,Xopen,Xclose,"강조",GREEN); 하이네켄 챠트입니다 모양을 봉챠트모양으로 하고십습니다 가능하다면 수정부탁드립니다~~`
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-02-05 11:23:49

안녕하세요 예스스탁입니다. 1 가능하지 않습니다. if문은 봉완성입니다. 시간 경계를 넘어가는것을 확인해야 하므로 해당 첫봉은 완성이 되어야 합니다. 또한 해당 내용은 추세선으로 그려야 하는데 추세선은 봉완성시에만 동작을 합니다. 2 랭귀지로 차트의 봉의 모양을 형태로 만들수는 없습니다. 즐거운 하루되세요 > 장군 님이 쓴 글입니다. > 제목 : 문의드립니다 > input : ntime1(60),P(20); var : S1(0),D1(0),TM(0),TF(0),cnt(0),TL1(0),TL2(0); Array : HH[10](0),LL[10](0),CC[10](0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%ntime1; if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then { TL_Delete(TL1); TL_Delete(TL2); HH[0] = c; LL[0] = c; for cnt = 1 to 9 { CC[cnt] = CC[cnt-1][1]-PriceScale*2; HH[cnt] = LL[cnt-1][1]-PriceScale*2; LL[cnt] = LL[cnt-1][1]+PriceScale*2; } if HH[1] > 0 and LL[1] > 0 then { TL1 = TL_New(sdate[1],stime[1],CC[1]+PriceScale*1,sdate,stime,CC[1]+PriceScale*1); TL_SetColor(TL1,GREEN); TL_SetSize(TL1,2); TL_SetExtRight(Tl1,true); } } else { TL_SetEnd(TL1,sdate,stime,CC[1]); } CC[0] = C; if c > HH[0] Then HH[0] = c; if c < LL[0] Then LL[0] = c; } 위수식으로 사용해보니1분봉으로 사용시 1분이지나서 수평선이 나옵니다 60분수평선이 1분이되어서 나오는데 바로 60분봉시작시 나오게 수정부탁드립니다~~항상감사드립니다 2)vars: xClose(0),xOpen(0),xHigh(0),xLow(0),t(0); if index == 0 then { xOpen = open; xClose = (O+H+L+C)/4; xHigh = MaxList( high, xOpen, xClose); xLow = MinList( low, xOpen,xClose); } else { xClose = (O+H+L+C)/4; xOpen = (xOpen [1] + xClose [1])/2 ; xHigh = MaxList(High, xOpen, xClose) ; xLow = MinList(Low, xOpen, xClose) ; } if xClose > xOpen then PlotPaintBar(Xhigh,Xlow,Xopen,Xclose,"강조",MAGENTA); else if xClose < xOpen then PlotPaintBar(Xhigh,Xlow,Xopen,Xclose,"강조",BLUE); else PlotPaintBar(Xhigh,Xlow,Xopen,Xclose,"강조",GREEN); 하이네켄 챠트입니다 모양을 봉챠트모양으로 하고십습니다 가능하다면 수정부탁드립니다~~`