커뮤니티

문의 드립니다.

프로필 이미지
신대륙발견
2025-03-14 09:57:57
341
글번호 189160
답변완료

첨부 이미지

input : fib1(1.618); input : fib2(2.618); input : dev(150); var : debut(False); var : addsource(0),addvol(0),VWAP(0),sn(0),sd(0); var : Fibp2(0),Fibp1(0),Fibm1(0),Fibm2(0),tx(0); debut = DayOfWeek(Bdate) < DayOfWeek(Bdate[1]); addsource = (h+l+c)/3 * volume; addvol = volume; if debut == true Then { var1 = addsource; var2 = addvol; } Else { var1 = var1 + addsource; var2 = var2 + addvol; } VWAP = var1/var2; if debut Then sn = 0; sn = iff(debut , sn , sn[1] + volume * ((h+l+c)/3 - VWAP[1]) * ((h+l+c)/3 - VWAP)); sd = sqrt(sn / addvol); Fibp2 = VWAP + fib2 * sd; Fibp1 = VWAP + fib1 * sd; Fibm1 = VWAP - fib1 * sd; Fibm2 = VWAP - fib2 * sd; plot1(VWAP, "VWAP",orange); plot2(Fibp2,"Fibp2",red); plot3(Fibp1,"Fibp1",red); plot4(Fibm1,"Fibm1",lime); plot5(Fibm2,"Fibm2",lime); var : bull(False),bear(False); bull = CrossDown(low[1],Fibm1[1]) and low[1]>=Fibm2[1] and low>Fibm2 and low<Fibm1 and sd>dev; bear = CrossUp(high[1],Fibp1[1]) and high[1]<=Fibp2[1] and high<Fibp2 and high>Fibp1 and sd>dev; if bull == true Then { tx = Text_New(sDate,sTime,L,"▲"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Red); Text_SetSize(tx,20); } if bear == true Then { tx = Text_New(sDate,sTime,H,"▼"); Text_SetStyle(tx,2,1); Text_SetColor(tx,Blue); Text_SetSize(tx,20); } 위 지표를 사용하면 올린 이미지처럼 나옵니다. 캔들이 정상적으로 나오게 하려면 어떻게 해야 되나요?
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-03-14 14:21:27

안녕하세요 예스스탁입니다. input : fib1(1.618); input : fib2(2.618); input : dev(150); var : debut(False),hlc3(0); var : addsource(0),addvol(0),VWAP(0),sn(0),sd(0); var : Fibp2(0),Fibp1(0),Fibm1(0),Fibm2(0),tx(0); debut = DayOfWeek(Bdate) < DayOfWeek(Bdate[1]); hlc3 = (h+L+C)/3; addsource = iff(debut , hlc3* volume , hlc3* volume + addsource[1]); addvol = iff(debut , volume , volume + addvol[1]); VWAP = addsource / addvol; sn = 0; sn = iff(debut , sn , sn[1] + volume * (hlc3 - VWAP[1]) * (hlc3 - VWAP)); sd = sqrt(sn / addvol); Fibp2 = VWAP + fib2 * sd; Fibp1 = VWAP + fib1 * sd; Fibm1 = VWAP - fib1 * sd; Fibm2 = VWAP - fib2 * sd; plot1(VWAP, "VWAP",orange); plot2(Fibp2,"Fibp2",red); plot3(Fibp1,"Fibp1",red); plot4(Fibm1,"Fibm1",lime); plot5(Fibm2,"Fibm2",lime); var : bull(False),bear(False); bull = CrossDown(low[1],Fibm1[1]) and low[1]>=Fibm2[1] and low>Fibm2 and low<Fibm1 and sd>dev; bear = CrossUp(high[1],Fibp1[1]) and high[1]<=Fibp2[1] and high<Fibp2 and high>Fibp1 and sd>dev; if bull == true Then { tx = Text_New(sDate,sTime,L,"▲"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Red); Text_SetSize(tx,20); } if bear == true Then { tx = Text_New(sDate,sTime,H,"▼"); Text_SetStyle(tx,2,1); Text_SetColor(tx,Blue); Text_SetSize(tx,20); } 즐거운 하루되세요 > 신대륙발견 님이 쓴 글입니다. > 제목 : 문의 드립니다. > input : fib1(1.618); input : fib2(2.618); input : dev(150); var : debut(False); var : addsource(0),addvol(0),VWAP(0),sn(0),sd(0); var : Fibp2(0),Fibp1(0),Fibm1(0),Fibm2(0),tx(0); debut = DayOfWeek(Bdate) < DayOfWeek(Bdate[1]); addsource = (h+l+c)/3 * volume; addvol = volume; if debut == true Then { var1 = addsource; var2 = addvol; } Else { var1 = var1 + addsource; var2 = var2 + addvol; } VWAP = var1/var2; if debut Then sn = 0; sn = iff(debut , sn , sn[1] + volume * ((h+l+c)/3 - VWAP[1]) * ((h+l+c)/3 - VWAP)); sd = sqrt(sn / addvol); Fibp2 = VWAP + fib2 * sd; Fibp1 = VWAP + fib1 * sd; Fibm1 = VWAP - fib1 * sd; Fibm2 = VWAP - fib2 * sd; plot1(VWAP, "VWAP",orange); plot2(Fibp2,"Fibp2",red); plot3(Fibp1,"Fibp1",red); plot4(Fibm1,"Fibm1",lime); plot5(Fibm2,"Fibm2",lime); var : bull(False),bear(False); bull = CrossDown(low[1],Fibm1[1]) and low[1]>=Fibm2[1] and low>Fibm2 and low<Fibm1 and sd>dev; bear = CrossUp(high[1],Fibp1[1]) and high[1]<=Fibp2[1] and high<Fibp2 and high>Fibp1 and sd>dev; if bull == true Then { tx = Text_New(sDate,sTime,L,"▲"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Red); Text_SetSize(tx,20); } if bear == true Then { tx = Text_New(sDate,sTime,H,"▼"); Text_SetStyle(tx,2,1); Text_SetColor(tx,Blue); Text_SetSize(tx,20); } 위 지표를 사용하면 올린 이미지처럼 나옵니다. 캔들이 정상적으로 나오게 하려면 어떻게 해야 되나요?