커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

종목 검색 부탁드립니다.

AA=(H+L+C)/3; BB=AA*V; X1=SUM(BB,기간); X2=SUM(V,기간); dev1 = mult1 * stdev(AA, 기간); dev2 = mult2 * stdev(AA, 기간); dev3 = mult3 * stdev(AA, 기간); CT=X1/X2; CT+dev2; 기간: 120 mult1:1 mult2:2 mult3:3 라인을 돌파시 종목 검색식 부탁드립니다
프로필 이미지
골든도라도
2025-05-28
238
글번호 191251
종목검색
답변완료

문의드립니다

안녕하세요? 현재신호가 발생하는봉보다 1봉 이전봉에 신호가 발생하게 할수있는지?궁금합니다 감사합니다 if signal_up == true Then Buy(); { tx = Text_New_Self(sDate[1],sTime[1],base[1],"◆"); Text_SetColor(tx,Orange); Text_SetStyle(tx,2,2); } if signal_dn == true Then Sell(); { tx = Text_New_Self(sDate[1],sTime[1],base[1],"◆"); Text_SetColor(tx,Orange); Text_SetStyle(tx,2,2); }
프로필 이미지
새벽에
2025-05-28
239
글번호 191248
시스템
답변완료

수식작성 부탁드립니다

아래 수식을 초 단위로 나타낼수 있도록 부탁 드립니다 (예시 nput : n(60); var : S1(0),D1(0),sTM(0),et(0),ets(0),eTM(0); Var : SS(0),TS(0),second(0),ii(0),cnt(0); if Bdate != Bdate[1] Then { stm = TimeToMinutes(stime); D1 = Bdate; ii = 0; } if D1 > 0 then { ii = ii +1; if date == D1 Then eTM = TimeToMinutes(time)-S1; Else eTM = TimeToMinutes(time)+1440-S1; ss = sTM*60; et= eTM*60; ets = FracPortion(time/100)*100; TS = et+ets; Second = TS-SS; . . . } 아래 수식 변경 부탁 드립니다. Input : long(34),signal(9),Po(2); var : hlc(0),hi0(0),lo0(0),Ema5(0),Ema6(0),mi0(0); var : IMACD(0),sig(0),histo(0),IMACD색(0); hlc = (h+l+c)/3; hi0 = iff(IsNan(hi0[1]) == true, ma(high,long), hi0[1]*(long-1)+high)/long; lo0 = iff(IsNan(lo0[1]) == true, ma(low,long), lo0[1]*(long-1)+low)/long; Ema5 = ema(hlc, long); Ema6 = ema(Ema5, long); mi0 = Ema5+(Ema5-Ema6); IMACD = iff((mi0>hi0), (mi0-hi0) , iff((mi0<lo0) , (mi0 - lo0) , 0)); sig = ma(IMACD, signal); histo = IMACD-sig; var1 = po; Var2 = -po; plot1(IMACD,"ImpulseMACD"); plot2(sig,"Signal"); plot3(histo,"Histo"); plot10(0,"0"); plot20(var1,"2"); plot30(Var2,"2");
프로필 이미지
뎅이요
2025-05-28
300
글번호 191245
지표
답변완료

수식수정

Inputs : Period(20), Sence(1.5), CC_DN(Yellow); Vars: VLineUp(0), VLineDn(0), HHighest(0), LLowest(0), JustChanged(FALSE), VLine(0), DBN(0),T(0); Array: Highs[35](0), Lows[35](0), RRange[35](0), UpWave[1](FALSE), DnWave[1](FALSE); If STime == 180000 Then DBN = 0; DBN = DBN + 1; Var1 = Period; Var2 = Var1 - 1; Var3 = Var1 - 2; Var5 = Sence; Var6 = H-L; JustChanged = FALSE; if CurrentBar <= Var2 then begin Highs[CurrentBar] = Close; Lows[CurrentBar] = Close; RRange[CurrentBar] = (H-L) /2; end; if CurrentBar == Var1 then begin if Highs[Var2] >= Highs[Var3] then begin UpWave[1] = TRUE; HHighest = Highs[Var2]; VLineUp = HHighest - (Var5 * MA(Var6,Var2)); #Plot1(VLineUp,"VLineUp"); end; if Highs[Var2] < Highs[Var3] then begin DnWave[1] = TRUE; LLowest = Lows[Var2]; VLineDn = LLowest + (Var5 * MA(Var6,Var2)); #Plot2(VLineDn,"VLineDn"); end; end; if CurrentBar > Var1 then begin if DnWave[1] and Close > VLineDn then begin DnWave[1] = FALSE; UpWave[1] = TRUE; JustChanged = TRUE; HHighest = Close; LLowest = 0; end; if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin UpWave[1] = FALSE; DnWave[1] = TRUE; JustChanged = TRUE; LLowest = Close; HHighest = 0; end; if JustChanged == FALSE then begin if Close > HHighest then HHighest = Close; else if Close < LLowest then LLowest = Close; end; VLineUp = HHighest - (Var5 * MA(Var6,Var2)); VLineDn = LLowest + (Var5 * MA(Var6,Var2)); if UpWave[1] then T = 1; else if DnWave[1] then T = -1; end; Input : BBP(20), MultiD(2),P(30); var : BBmd(0),BBup(0),BBdn(0),mav(0); BBmd = ma(C,Period); BBup = BollBandUp(BBP,MultiD); BBdn = BollBandDown(BBP,MultiD); mav = ma(C,P); if CrossDown(C,BBup) and t == -1 and c > mav Then sell(); if crossup(C,BBdn) and t == 1 and c < mav Then buy(); 안녕하세요 수식수정부탁드려요 위식에서 신호 발생후 진입 조건을 -500틱이상 손실시 진입하는 조건으로 부탁드림니다
프로필 이미지
아트정
2025-05-28
228
글번호 191240
시스템
답변완료

종목 검색 부탁드립니다.

1. 캔들의 모양이 윗꼬리가 달린 양봉 캔들 종목 검색식 부탁드려요 2. 캔들모양이 윗꼬리가 있고, 아랫꼬리가 캔들몸통의 3/1 이하인 양봉 캔들 종목 검색식 3. 캔들의 모양이 도지 인 양봉 음봉 캔들 검색식
프로필 이미지
일지매7
2025-05-28
281
글번호 191238
종목검색

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

프로필 이미지
살빼고싶다
2025-05-28
21
글번호 191235
검색
답변완료

수식수정

안녕하세요 아래수식에서 당일 시가선을 전일종가나 전일 정산가 기준으로 변경해 주세요 input : Period(20),dv(2); var : BBup(0),BBmd(0),BBdn(0),T(0); BBup = BollBandUp(Period,dv); BBmd = ma(c,Period); BBdn = BollBandDown(Period,dv); if CrossUp(c,bbup) Then T = 3; if CrossDown(c,bbup) Then T = -3; if CrossUp(c,bbmd) Then T = 2; if CrossDown(c,bbmd) Then T = -2; if CrossUp(c,bbdn) Then T = 1; if CrossDown(c,bbdn) Then T = -1; if C <= DayOpen-PriceScale*100 and T != T[1] and T == 2 and T[1] == 1 Then Buy(); if MarketPosition == 1 and T != T[1] and T == -1 Then ExitLong(); if C >= DayOpen+PriceScale*100 and T != T[1] and T == 3 and T[1] == -3 Then Sell(); if MarketPosition == 1 and CrossUp(C,bbmd) Then ExitShort(
프로필 이미지
아트정
2025-05-28
194
글번호 191234
시스템
답변완료

문의드립니다.

음봉이 연속(2봉이상)되어 있을 때 음봉들 중 최고고가를 "상단", 연속된 음봉들 중 최저 저가를 "하단"으로 했을 때 상단대비 하단이 -20% 이하인 종목의 검색식을 부탁드립니다. 하단/상단 <= 0.80 * 수정, 보완을 해야 해서 주석도 같이 부탁드립니다.
프로필 이미지
이심전심
2025-05-28
241
글번호 191233
종목검색
답변완료

지표식 부탁드립니다

지표식 변환 부탁합니다. 미리 감사드립니다. //@version=6 indicator('Trendlines with Breaks', overlay = true) length = input.int(14) k = input.float(1., 'Slope', minval = 0, step = .1) method = input.string('Atr', 'Slope Calculation Method', options = ['Atr', 'Stdev', 'Linreg']) show = input(false, 'Show Only Confirmed Breakouts') //---- upper = 0. lower = 0. slope_ph = 0. slope_pl = 0. src = close n = bar_index //---- ph = ta.pivothigh(length, length) pl = ta.pivotlow(length, length) slope = switch method 'Atr' => ta.atr(length) / length * k 'Stdev' => ta.stdev(src, length) / length * k 'Linreg' => math.abs(ta.sma(src * bar_index, length) - ta.sma(src, length) * ta.sma(bar_index, length)) / ta.variance(n, length) / 2 * k slope_ph := bool(ph) ? slope : slope_ph[1] slope_pl := bool(pl) ? slope : slope_pl[1] upper := bool(ph) ? ph : upper[1] - slope_ph lower := bool(pl) ? pl : lower[1] + slope_pl //---- single_upper = 0 single_lower = 0 single_upper := src[length] > upper ? 0 : bool(ph) ? 1 : single_upper[1] single_lower := src[length] < lower ? 0 : bool(pl) ? 1 : single_lower[1] //upper_breakout = single_upper[1]==1 and src[length] > upper and (show ? src > src[length] : 1) //lower_breakout = single_lower[1]==1 and src[length] < lower and (show ? src < src[length] : 1) upper_breakout = bool(single_upper[1]) and src[length] > upper and (show ? src > src[length] : true) // my modify lower_breakout = bool(single_lower[1]) and src[length] < lower and (show ? src < src[length] : true) // my modify plotshape(upper_breakout ? low[length] : na, 'Upper Break', shape.labelup, location.absolute, #ef5350, -length, text = 'B↑', textcolor = color.white, size = size.tiny) plotshape(lower_breakout ? high[length] : na, 'Lower Break', shape.labeldown, location.absolute, #26a69a, -length, text = 'B↓', textcolor = color.white, size = size.tiny) //---- var line up_l = na var line dn_l = na var label recent_up_break = na var label recent_dn_break = na if bool(ph[1]) // my modify line.delete(up_l[1]) label.delete(recent_up_break[1]) up_l := line.new(n - length - 1, ph[1], n - length, upper, color = #ef5350, extend = extend.right, style = line.style_dashed) up_l if bool(pl[1]) // my modify line.delete(dn_l[1]) label.delete(recent_dn_break[1]) dn_l := line.new(n - length - 1, pl[1], n - length, lower, color = #26a69a, extend = extend.right, style = line.style_dashed) dn_l if ta.crossover(src, upper - slope_ph * length) label.delete(recent_up_break[1]) recent_up_break := label.new(n, low, 'B', color = #ef5350, textcolor = color.white, style = label.style_label_up, size = size.small) recent_up_break if ta.crossunder(src, lower + slope_pl * length) label.delete(recent_dn_break[1]) recent_dn_break := label.new(n, high, 'B', color = #26a69a, textcolor = color.white, style = label.style_label_down, size = size.small) recent_dn_break //---- plot(upper, 'Upper', color = bool(ph) ? na : #ef5350, offset = -length) plot(lower, 'Lower', color = bool(pl) ? na : #26a69a, offset = -length) alertcondition(ta.crossover(src, upper - slope_ph * length), 'Upper Breakout', 'Price broke upper trendline') alertcondition(ta.crossunder(src, lower + slope_pl * length), 'Lower Breakout', 'Price broke lower trendline')
프로필 이미지
고도산
2025-05-28
304
글번호 191232
지표
답변완료

차트 설치 오류

차트 설치하는데 오류가납니다.. 포맷하고 다시 설치하는건데 ㅠㅠ
프로필 이미지
이신기
2025-05-27
217
글번호 191231
시스템