커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

변환 부탁드립니다.

트레이딩뷰 수식입니다. 변환 부탁 드립니다. //@version=6 strategy("Triangular Hull Moving Average [BigBeluga X PineIndicators]", "THMA [BigBeluga X PineIndicators]", overlay = true, commission_value = 0.01, slippage = 2, initial_capital = 1000, margin_long = 0, margin_short = 0, default_qty_value = 1) // INPUTS int len_ = input.int(40, "Length") float source = input.source(close, "Source") bool volat = input.bool(true, "Volatility", inline = "vola"), len_vol = input.int(15, "", inline = "vola") color_u = input.color(#16e5a0, "", inline = "colors") color_d = input.color(#741ddd, "", inline = "colors") // Neue Option: Entry Direction Auswahl entry_mode = input.string("Long & Short", "Trade Direction", options = ["Only Long", "Only Short", "Long & Short"]) // CALCULATIONS float volatility = ta.hma(high - low, len_vol) var string trend = "" vv = ta.percentile_nearest_rank(volatility, 1000, 100) vol = volatility / vv // THMA-Funktion thma(_src, _length) => ta.wma(ta.wma(_src, _length / 3) * 3 - ta.wma(_src, _length / 2) - ta.wma(_src, _length), _length) float thma = thma(source, len_) float thma1 = thma[2] bool signal_up = ta.crossover(thma, thma1) bool signal_dn = ta.crossunder(thma, thma1) switch signal_up => trend := "🢁" signal_dn => trend := "🢃" color = thma > thma1 ? color_u : color_d color1 = color atr = ta.atr(200) // PLOT plotcandle(thma, thma + volatility, thma1 - volatility, thma1, "", color.new(color1, volat ? 40 : 0), color.new(color1, volat ? 40 : 100), bordercolor = color.new(color1,0)) plotshape(signal_up ? thma1 - atr : na, "Up", shape.triangleup, location.absolute, color = color.new(color, 60), size = size.small, force_overlay = true) plotshape(signal_up ? thma1 - atr : na, "Up", shape.triangleup, location.absolute, color = color.new(color, 0), size = size.tiny, force_overlay = true) plotshape(signal_dn ? thma1 + atr : na, "Dn", shape.triangledown, location.absolute, color = color.new(color, 60), size = size.small, force_overlay = true) plotshape(signal_dn ? thma1 + atr : na, "Dn", shape.triangledown, location.absolute, color = color.new(color, 0), size = size.tiny, force_overlay = true) if barstate.islast dash = table.new(position.bottom_right, 10, 10, bgcolor = color.new(chart.fg_color, 90), border_color = chart.bg_color, border_width = 5) dash.cell(0, 0, "Trend: " + trend, text_color = trend == "🢃" ? color_d : color_u) dash.cell(0, 1, "Volatility: " + str.tostring(vol * 100, format.percent), text_color = chart.fg_color) // Entry- und Close-Logik bool allow_long = entry_mode == "Only Long" or entry_mode == "Long & Short" bool allow_short = entry_mode == "Only Short" or entry_mode == "Long & Short" // Long & Short-Modus: Positions eröffnen if signal_up and allow_long strategy.entry("Long", strategy.long) if signal_dn and allow_short strategy.entry("Short", strategy.short) // Spezielle Schließlogik für "Only Long" und "Only Short" if entry_mode == "Only Long" // Bei Short-Signal bestehende Long-Position schließen if signal_dn strategy.close("Long") if entry_mode == "Only Short" // Bei Long-Signal bestehende Short-Position schließen if signal_up strategy.close("Short")
프로필 이미지
다올
2025-09-04
272
글번호 193735
지표
답변완료

문의 드립니다

1일의 전일저가라인이 3일에도 그대로 적용되는데 3일에 2일의 저가라인 표시를 정확히 하는 법 부탁드립니다. 지표는 시고저라인 n(1)로 적용했읍니다.
프로필 이미지
lacl
2025-09-04
163
글번호 193734
지표
답변완료

증권사 이동시 예스트레이더 이전설치문의

사용증권사 변경으로 변경전에 증권사에서 작성한 모든 프로그램을 변경후 증권사에 설치하는 방법을 알려 주세요. 1. 주요이관대상 : 예스트레이더/YesLang 폴더에 저장된 사용자가 작성한 모든 프로그램 2. 주요 질의 내용 ㅇ 이관전에 사용하던 예스트레이더 환경으로 이관된 증권사에서 그대로 사용하는 방법이 있는지요? ㅇ 이관전에 예스트레이더/YesLang에 저장된 사용자 프로그램들을 모두 복사하여 이관되는 증권사의 예스트레이더/YesLang에 모두 복사하면 되는지 여부? ㅇ 아님 프로그램 건별로 이관되는 증권사 yesLang 폴더에 복사 해야 되는지요? 항상 신속하고 정확한 답변에 감사 드려요.
프로필 이미지
장병록
2025-09-04
220
글번호 193733
시스템
답변완료

안녕하세요. 수식 문의 드립니다.

지표에 다음과 같이 숫자를 보이게 하고 싶네요..
프로필 이미지
구름달
2025-09-04
247
글번호 193728
지표
답변완료

지표식 부탁드립니다.

안녕하세요. 예스차트에서 차트데이터 툴팁 표시는 캔들에 마우스 커서를 두어야만 표시가능한데 캔들 클릭시 그 캔들의 시고저 가격을 차트의 좌측 상단 또는 우측 상단에 표시가능한가요?
프로필 이미지
부활
2025-09-04
188
글번호 193727
지표
답변완료

검색식 부탁 드립니다

input : n(4); var : A(0),S(0),T(0),dd(0); A = ma(C,20); if (CrossUP(c,A) or L<=A*1.03) and (c[1]*1.02<=c and o*1.01 <= c ) Then S = o; if S > S[1] Then T = 1; if S < S[1] Then T = -1; if T == -1 and T != T[1] Then dd = Index; if T == 1 and T != T[1] Then { if dd > 0 and Index >= dd+n Then Find(1); } 1.S값이 하락만하고 상승하지 않은지 N일되 종목 검색식 부탁 드립니다 2,1일봉전 상한가 종목 검색 하지 않는다 검색식도 부탁 드립니다
프로필 이미지
님이랑
2025-09-04
197
글번호 193726
종목검색
답변완료

지표 변환 부탁드립니다

키움 신호수식인데 예스 신호로 부탁드립니다 a=ma(c,5); a1=ref(a,1); e=(a-a1)*100/a1; f=atan(e)*180/3.141592; f>=35&&a>a(1)&&a(1)>a(2)&&a(2)>a(3)
프로필 이미지
삼손감자
2025-09-04
199
글번호 193725
지표
답변완료

부탁드립니다^^

아래 수식은 캔들 강조 수식을 작성한 것인데 차트에 표시가 되지를 않습니다. 골든, 데드가 난 자리의 캔들에 표시되게 수정 부탁드립니다. Input : Period(5),Period1(20); var : WMa1(0), WMa2(0); wma1 = Period; wma2 = Period1; Condition1 = CrossUp(WMa1,wma2); if Condition1 == True Then PlotPaintBar(O,C,"강조식",Yellow); Condition1 = CrossDown(WMa1,wma2); if Condition1 == True Then PlotPaintBar(O,C,"강조식",Cyan);
프로필 이미지
체리피커
2025-09-04
190
글번호 193721
강조
답변완료

지표 수식 부탁드립니다

기간(10) AA=(H+L+C)/3; BB=AA*V; X1=SUM(BB,기간); X2=SUM(V,기간); S1=X1/X2; 지표 수식 부탁드립니다
프로필 이미지
골든도라도
2025-09-03
178
글번호 193720
지표
답변완료

거래량 관련 검색식 질문 드립니다

5일 이평선을 돌파하면서, 당일 거래량이 "20일 거래량 이평선을 돌파"하는 검색식을 만들고 싶습니다 가능하다면 당일 거래량을 "20일 거래 이평선의 N배(예컨대 2배)" 같은 그런 조건을 검색할 수 있다면 더 좋겠습니다 도움을 부탁 드립니다~^^
프로필 이미지
만경25
2025-09-03
159
글번호 193719
검색