커뮤니티

수식 부탁드립니다

프로필 이미지
사노소이
2025-06-27 04:07:51
197
글번호 192131
답변완료
자표식 부탁 드립니다. 시작 시간이 00시 날짜가 아니라 07시 전자거래시간(ETH) 기준입니다. study(title="Opening-Range", shorttitle="Opening-Range", overlay=true) up60on = input(true, title="60 Minute Opening Range High") down60on = input(true, title="60 Minute Opening Range Low") is_newbar(res) => change(time(res)) != 0 adopt(r, s) => security(tickerid, r, s) high_range = valuewhen(is_newbar('D'),high,0) low_range = valuewhen(is_newbar('D'),low,0) up = plot(up60on ? adopt('60', high_range):na, color = lime, style=circles, linewidth=4) down = plot(down60on ? adopt('60', low_range): na, color = #DC143C, style=circles, linewidth=4) trans60 = up60on ? 75 : 100 fill(up, down, color = white, transp=trans60)
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-06-27 10:36:51

안녕하세요 예스스탁입니다. var : s1(0),d1(0),TM(0),hh(0),ll(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; hh = 0; ll = 0; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; if tm < 60 Then { if hh == 0 or (hh > 0 and h > hh) Then hh = h; if ll == 0 or (ll > 0 and l < ll) Then ll = l; } Plot1(hh); plot2(ll); } 즐거운 하루되세요 > 사노소이 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다 > 자표식 부탁 드립니다. 시작 시간이 00시 날짜가 아니라 07시 전자거래시간(ETH) 기준입니다. study(title="Opening-Range", shorttitle="Opening-Range", overlay=true) up60on = input(true, title="60 Minute Opening Range High") down60on = input(true, title="60 Minute Opening Range Low") is_newbar(res) => change(time(res)) != 0 adopt(r, s) => security(tickerid, r, s) high_range = valuewhen(is_newbar('D'),high,0) low_range = valuewhen(is_newbar('D'),low,0) up = plot(up60on ? adopt('60', high_range):na, color = lime, style=circles, linewidth=4) down = plot(down60on ? adopt('60', low_range): na, color = #DC143C, style=circles, linewidth=4) trans60 = up60on ? 75 : 100 fill(up, down, color = white, transp=trans60)