커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

지표로 변환 부탁드려요

선은 필요없구요 매수 매도 삼각형 표시 부탁드려요 건강하세요 // This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International // https://creativecommons.org/licenses/by-nc-sa/4.0/ // © BigBeluga //@version=6 indicator("TrendWave Bands [BigBeluga]", overlay = true) // INPUTS ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ int length = input(33) float factor = input.float(1.0, "Factor", step = 0.1) // Color color col_up = input(color.lime, "", inline = "col") color col_dn = input(color.rgb(221, 26, 26), "", inline = "col") color col_ul = input(color.aqua, "", inline = "col") // } // CALCULATIONS――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ trend(length)=> var direction = 0 var count_up = 0. var count_dn = 0. float volatility = ta.sma(high-low, 70) * factor float upper = ta.highest(ta.sma(close, 25) + volatility, int(length/2)) float lower = ta.lowest(ta.sma(close, length) - volatility, int(length/2)) bool sig_up = ta.crossover(hlc3, upper) and barstate.isconfirmed bool sig_dn = ta.crossunder(hlc3, lower) and barstate.isconfirmed switch sig_up => direction := 1 sig_dn => direction := -1 upper := direction == 1 ? float(na) : upper lower := direction == -1 ? float(na) : lower // Trends Duration if direction == 1 count_up += 0.5 count_dn := 0 if direction == -1 count_dn += 0.5 count_up := 0 count_up := count_up > 70 ? 70 : count_up count_dn := count_dn > 70 ? 70 : count_dn [upper, lower, direction, count_up, count_dn] [upper, lower, direction, count_up, count_dn] = trend(length) float upper_band = lower + ta.atr(100)*5 float lower_band = upper - ta.atr(100)*5 color upper_col = color.new(col_dn, int(count_dn)) color lower_col = color.new(col_up, int(count_up)) color upper_band_col = color.new(col_ul, 70 - int(count_up)) color lower_band_col = color.new(col_ul, 70 - int(count_dn)) // } // PLOT ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ plot(upper_band, "Upper Wave", style = plot.style_linebr, color = bar_index % 2 == 0 ? na : upper_band_col, linewidth = 1) plot(lower_band, "Lower Wave", style = plot.style_linebr, color = bar_index % 2 == 0 ? na : lower_band_col, linewidth = 1) plot(upper, "Upper Band", style = plot.style_linebr, color = upper_col, linewidth = 2) plot(lower, "Lower Band", style = plot.style_linebr, color = lower_col, linewidth = 2) plot(upper, "Upper Band Shadow", style = plot.style_linebr, color = color.new(col_dn, int(count_dn*2)), linewidth = 6) plot(lower, "Lower Band Shadow", style = plot.style_linebr, color = color.new(col_up, int(count_up*2)), linewidth = 6) plotshape(direction != direction[1] and direction == 1 ? lower : na, "Trend Up", shape.circle, location.absolute, size = size.tiny, color = col_up) plotshape(direction != direction[1] and direction == 1 ? lower : na, "Trend Up", shape.circle, location.absolute, size = size.small, color = color.new(col_up, 70)) plotshape(direction != direction[1] and direction == -1 ? upper : na, "Trend Down", shape.circle, location.absolute, size = size.tiny, color = col_dn) plotshape(direction != direction[1] and direction == -1 ? upper : na, "Trend Down", shape.circle, location.absolute, size = size.small, color = color.new(col_dn, 70)) // Trend Duration (70 max) // if barstate.islast // if direction == 1 // label.delete(label.new(bar_index, lower, str.tostring(count_up), color = color(na), style = label.style_label_left, textcolor = chart.fg_color)[1]) // if direction == -1 // label.delete(label.new(bar_index, upper, str.tostring(count_dn), color = color(na), style = label.style_label_left, textcolor = chart.fg_color)[1]) // } 바쁘시더라도 꼭 살펴주시길 기원함미다 매수 매도 삼각형 표시 부탁드려요 선 필요없어요
프로필 이미지
뽀스뽀스
2025-06-02
311
글번호 191302
지표
답변완료

키움종목검색식변환이요...

지표 내용 A [일]거래량:100000이상 999999999이하 B 검색시간: 09:02 ~ 09:06 C 주가범위:0일전 시가가 5000 이상 20000 이하 O [당일] 전고점 <= 1분 0 봉전 종가 D 주가이평돌파:[1분]0봉전 (종가 1)이평 (종가 3)이평 골든크로스 E 주가이평돌파:[1분]1봉전 (종가 1)이평 (종가 3)이평 골든크로스 F 주가이평돌파:[1분]2봉전 (종가 1)이평 (종가 3)이평 골든크로스 G 주가등락률:[일]1봉전(중) 종가대비 0봉전 시가등락률 1%이상 10%이하 J 기간내 등락률:[1분]0봉전 3봉이내에서 시가대비종가 -0.1% 이하 K 최근 2분간 평균 체결건수 100건 이상 L 기간내 등락률:[1분]0봉전 7봉이내에서 시가대비종가 10% 이상 M 기간내 등락봉수:[1분]0봉전 3봉이내 1봉 포프라이스 도지발생 N 상한가에 5%이내 근접 P 기간내 등락률:[1분]0봉전 7봉이내에서 시가대비종가 -1% 이하 A and B and C and O and (D or E or F) and G and !J and K and !L and !M and !N and !P ---------------------------------------------------- 키움검색식을 변환부탁드립니다... 미리 감사합니다... 수고하세요...ㅎ
프로필 이미지
시온사랑
2025-05-30
320
글번호 191301
종목검색
답변완료

수식문의

안녕하십니까. 항상 감사드립니다. 첨부된 그립을 참고하여 하기의 조건으로 시스템식 문의 드립니다. 1. 공통조건 1) 장운영시간 : 09:10 ~ 15:30 2) 진입금지 : 15:10 이후 진입금지 3) 강제청산 : 15:30 3) 손실청산 : 10틱 2. 매도진입 1) MACD sig가 상승진행 -> 하락전환 후 2번째 봉에서 and (1) 일목균형표 전환선이 하락추세 일것 and (2) DMI Minus > DMI Plus일것 3. 매도청산 조건 : MACD선이 MACD Sig선을 상향 돌파 시 청산 2. 매수진입 1) MACD sig가 하락진행 -> 상승전환 후 2번째 봉에서 and (1) 일목균형표 전환선이 상승추세 일것 and (2) DMI Minus < DMI Plus일것 3. 매수청산 조건 : MACD선이 MACD Sig선을 하향 돌파 시 청산 미리 감사드립니다.
프로필 이미지
나도부자1
2025-05-30
249
글번호 191300
시스템
답변완료

문의 드립니다.

안녕하세요 항상 감사드립니다. 아래의 서식에서 추가 서식 부탁드립니다. *진입조건 1. 진입신호시 전 고점과 전 저점의 차이가 5포인트 이상 일때 (input) (고점(저점)을 돌파할때 진입을 하는데, 이때 고점과 저점의 차이가 5포인트 이상일때, 너무 낮은 변동폭에 진입하는 경우를 예방) 2. ADX 25 이상일 경우에만 진입 (INPUT) 3. 기존에 있는 진입조건 "이격도 100이상 일때" 진입한다는 내용도 최적화를 할 수 있도록 input에 넣어주시면 감사하겠습니다. 1,2,3번 모두 최적화를 위해 input에 넣어주세요 감사합니다. # KOSPI 선물 10분봉 input: 당일진입횟수(3),Period(20); input: chkP(5), reChkP(10), stopChk(20); var: HH(0), LL(0), BS(0), SS(0); var: dayChk(0); var : TotalCount(0),PreDay(0),DayEntry(0),Dis(0); dis = Disparity(Period); TotalCount = TotalTrades; if Bdate != Bdate[1] Then PreDay = TotalCount[1]; DayEntry = (TotalCount-PreDay)+IFF(MarketPosition != 0,1,0); if BarIndex == 0 then ClearDebug(); if dayindex == chkP then { HH = Highest(Max(C,O), chkP+1); LL = Lowest(Min(C,O), chkP+1); #if date == 20240612 then messageLog("--HH %.2f, LL: %.2f", HH, LL); } #if High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then messageLog("HH %.2f, High: %.2f", HH, High); if DayIndex >= chkP # and Time < 95000 and sDate == NextBarSdate and EntryDate(0) < Date and EntryDate(1) < Date and DayEntry < 당일진입횟수 and dis >= 100 Then { Buy("B1", AtStop, HH); Sell("S1", AtStop, LL); } //if dayChk == 0 and High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then { // messageLog("HH %.2f, High: %.2f", HH, High); // dayChk = 1; //} if ExitDate(1) == Date and Time < 150000 // and LatestEntryName(1) != "B2" // and LatestEntryName(1) != "S2" // and LatestEntryName(0) != "B2" // and LatestEntryName(0) != "S2" Then { if DayIndex < reChkP Then { HH = Highest(Max(C,O), DayIndex+1); LL = Lowest(Min(C,O), DayIndex+1); } Else { HH = Highest(Max(C,O), reChkP); LL = Lowest(Min(C,O), reChkP); } if DayEntry < 당일진입횟수 and dis >= 100 Then { Buy("B2", AtStop, HH); Sell("S2", AtStop, LL); } } if (MarketPosition == 1) Then { if DayIndex < stopChk Then { BS = Lowest(Min(C,O), DayIndex+1); } Else { BS = Lowest(Min(C,O), stopChk); } ExitLong("EL", AtStop, BS); } if (MarketPosition == -1) Then { if DayIndex < stopChk Then { SS = Highest(Max(C,O), DayIndex+1); } Else { SS = Highest(Max(C,O), stopChk); } #messageLog(" SS %.2f", SS); ExitShort("ES", AtStop, SS); } var : month(0),nday(0),week(0),X(False); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; Week = DayOfWeek(date); #만기일 if (month%3 == 0 and nday >= 8 and nday <= 14 and week == 4) then { X = true; SetStopEndofday(151500); } Else#만기일아닐때 { X = False; SetStopEndofday(152000); }
프로필 이미지
가자아이
2025-06-02
295
글번호 191299
지표
답변완료

수식부탁드립니다

NH트레이더 주식 통합(K+N) 1분차트에서 전일종가를 나타내는 지표를 만들고 싶습니다 8시 ~ 15시 40분 전일종가 하루전 KRX 15시40분 종가 15시40분 ~ 20시 전일종가 당일 KRX 15시40분 종가 감사합니다
프로필 이미지
여름가을
2025-06-01
208
글번호 191298
지표

살빼고싶다 님에 의해서 삭제되었습니다.

프로필 이미지
살빼고싶다
2025-05-30
14
글번호 191297
검색

우유 님에 의해서 삭제되었습니다.

프로필 이미지
우유
2025-05-30
25
글번호 191294
시스템

알리섬 님에 의해서 삭제되었습니다.

프로필 이미지
알리섬
2025-05-30
37
글번호 191288
지표
답변완료

안녕하세요..

수고하십니다. 매수 진입후 30분 후 에 현재가가 당일 고가를 넘어서면 청산 할 때 즉시청산과 분봉종가 두가지 방법중 (1) 수익이 1포 넘으면 즉시청산하고 (2) 1포이하면 분봉종가 청산을하고 싶네요 매도 또한 마찬가지입니다.
프로필 이미지
구름달
2025-05-30
211
글번호 191287
시스템
답변완료

문의 드립니다.

안녕하세요 ~ RSI(5)가 70 이상이고, 아래의 수식/이평선을 돌파할 때 종목 검색식 부탁드립니다. A=avg(c,17); ATR=avg(max(max(h-L,abs(c(1)-h)),abs(c(1)-L)),17); B=ATR; D=A+B; 감사합니다
프로필 이미지
ikksoo
2025-05-30
230
글번호 191283
검색