커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

시스템함수에 식을 만들려고 합니다.

안녕하세요항상 고생이 많으십니다^^식을 2개 만들려고 합니다.1) 1분봉상 최근 100분동안 최고점과 최저점을 계산해서최저점으로부터 최고점의 상승률2) 분봉상에서 5일선과 10일선의 이격률 차이부탁 드립니다.감사합니다!!
프로필 이미지
째국
2025-11-20
55
글번호 228277
시스템
답변완료

글번호 228177

예스랭귀지는 질문올리면 만 하루 정도면 답을 해주시는데 예스스팟은 18일 질문을 올렸는데 답이 없어서 확인 좀 부탁드립니다. 예스스팟Q&A 글번호 228177 입니다.스팟을 처음 사용하는 거라 비교적 간단한 질문입니다. 부탁드립니다.
프로필 이미지
산수유
2025-11-20
41
글번호 228276
시스템
답변완료

진입후 최고가를 찾아주세요.

시스템수식 중 진입후 최고가 기준 청산수식이 아래와 같이 있는데if MarketPosition<>0 Then{ if Highest(c,BarsSinceEntry+1) > EntryPrice *(1+(손절*1)) Then ExitLong("R0청산",AtStop,EntryPrice*(1+0.01));수식중 Highest(c,BarsSinceEntry+1)가 최대봉수 1024 에 걸려 신호가 발생하지 않는 문제가 있네요.진입후 최고가를 다른방법으로 표현해 주시면 감사하겠습니다.
프로필 이미지
eel
2025-11-20
50
글번호 228269
시스템
답변완료

문의 드립니다.

안녕하세요 ~예전에 수식이 안된다고 했는데, 현재는 가능한지 재 확인 요청 드립니다. RSI(5) 70이상일때, 현재가격이 아래의 수식을 돌파하는 종목 검색식 입니다. A=avg(c,2);B=A+AvgIf(c-A,1,0.0)+1.4*Stdevif(c-A,1,0.0);D=Bbandsup(9,2);d1=crossup(D,B);d2=crossdown(D,B);valuewhen(1, d1 or d2,o)감사합니다.
프로필 이미지
ikksoo
2025-11-20
73
글번호 228268
종목검색
답변완료

Chandelier Exit 코딩을 부탁드립니다.

//@version=6// Copyright (c) 2019-present, Alex Orekhov (everget)// Chandelier Exit script may be freely distributed under the terms of the GPL-3.0 license.indicator('Chandelier Exit', shorttitle = 'CE', overlay = true)const string calcGroup = 'Calculation'length = input.int(22, title = 'ATR Period', group = calcGroup)mult = input.float(3.0, step = 0.1, title = 'ATR Multiplier', group = calcGroup)useClose = input.bool(true, title = 'Use Close Price for Extremums', group = calcGroup)const string visualGroup = 'Visuals'showLabels = input.bool(true, title = 'Show Buy/Sell Labels', group = visualGroup)highlightState = input.bool(true, title = 'Highlight State', group = visualGroup)const string alertGroup = 'Alerts'awaitBarConfirmation = input.bool(true, title = 'Await Bar Confirmation', group = alertGroup)//---atr = mult * ta.atr(length)longStop = (useClose ? ta.highest(close, length) : ta.highest(length)) - atrlongStopPrev = nz(longStop[1], longStop)longStop := close[1] > longStopPrev ? math.max(longStop, longStopPrev) : longStopshortStop = (useClose ? ta.lowest(close, length) : ta.lowest(length)) + atrshortStopPrev = nz(shortStop[1], shortStop)shortStop := close[1] < shortStopPrev ? math.min(shortStop, shortStopPrev) : shortStopvar int dir = 1dir := close > shortStopPrev ? 1 : close < longStopPrev ? -1 : dirconst color textColor = color.whiteconst color longColor = color.greenconst color shortColor = color.redconst color longFillColor = color.new(color.green, 85)const color shortFillColor = color.new(color.red, 85)buySignal = dir == 1 and dir[1] == -1longStopPlot = plot(dir == 1 ? longStop : na, title = 'Long Stop', style = plot.style_linebr, linewidth = 2, color = longColor)plotshape(buySignal ? longStop : na, title = 'Long Stop Start', location = location.absolute, style = shape.circle, size = size.tiny, color = longColor)plotshape(buySignal and showLabels ? longStop : na, title = 'Buy Label', text = 'Buy', location = location.absolute, style = shape.labelup, size = size.tiny, color = longColor, textcolor = textColor)sellSignal = dir == -1 and dir[1] == 1shortStopPlot = plot(dir == 1 ? na : shortStop, title = 'Short Stop', style = plot.style_linebr, linewidth = 2, color = shortColor)plotshape(sellSignal ? shortStop : na, title = 'Short Stop Start', location = location.absolute, style = shape.circle, size = size.tiny, color = shortColor)plotshape(sellSignal and showLabels ? shortStop : na, title = 'Sell Label', text = 'Sell', location = location.absolute, style = shape.labeldown, size = size.tiny, color = shortColor, textcolor = textColor)midPricePlot = plot(ohlc4, title = '', display = display.none, editable = false)fill(midPricePlot, longStopPlot, title = 'Long State Filling', color = (highlightState and dir == 1 ? longFillColor : na))fill(midPricePlot, shortStopPlot, title = 'Short State Filling', color = (highlightState and dir == -1 ? shortFillColor : na))await = awaitBarConfirmation ? barstate.isconfirmed : truealertcondition(dir != dir[1] and await, title = 'CE Direction Change', message = 'Chandelier Exit has changed direction, {{exchange}}:{{ticker}}')alertcondition(buySignal and await, title = 'CE Buy', message = 'Chandelier Exit Buy, {{exchange}}:{{ticker}}')alertcondition(sellSignal and await, title = 'CE Sell', message = 'Chandelier Exit Sell, {{exchange}}:{{ticker}}')
프로필 이미지
jhs0713
2025-11-20
55
글번호 228262
지표
답변완료

ZLSMA 지표를 만들고자 합니다.

안녕하세요? 트레이딩뷰에 있는 ZLSMA 지표를 만들고자 합니다. 변환에 에러가 발생하여 부탁드립니다.// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © veryfid//@version=4study(title = "ZLSMA - Zero Lag LSMA", shorttitle="ZLSMA", overlay=true, resolution="")length = input(title="Length", type=input.integer, defval=32)offset = input(title="Offset", type=input.integer, defval=0)src = input(close, title="Source")lsma = linreg(src, length, offset)lsma2 = linreg(lsma, length, offset)eq= lsma-lsma2zlsma = lsma+eqplot(zlsma, color=color.yellow, linewidth=3)
프로필 이미지
jhs0713
2025-11-20
50
글번호 228261
지표
답변완료

질문 있습니다.

안녕하세요.제 시스템을 마이크로 크루드 오일에 적용 중인데,Text_New로 손익을 표시하려고 하는데 차트에 나타나지 않습니다.【현재 상황】- 진입/청산 신호(▲매수, ▼매도)는 정상 표시됨- 손익 표시(+100pt, -50pt)만 나타나지 않음- ShowProfit = 1로 설정되어 있음【코드】var : CurrentProfit(0);if MarketPosition == 1 Then { CurrentProfit = (PositionProfit / PriceScale) / PointScale; ExitLong("Trend_ExitL"); if ShowProfit == 1 Then { if CurrentProfit >= 0 Then Text_New(sDate, sTime, H + 50.0, "+" + NumToStr(CurrentProfit, 1) + "pt"); Else Text_New(sDate, sTime, L - 50.0, NumToStr(CurrentProfit, 1) + "pt"); }}【종목 정보】- 마이크로 크루드 오일- TickSize = 0.01- TickValue = 0.1- PointScale = 1【궁금한 점】1. Text_New 위치가 차트 밖으로 나가서 안 보이는 건가요?2. PositionProfit / PriceScale 계산이 크루드 오일에서 다른가요?3. Exit 명령과 Text_New의 타이밍 문제인가요?다시 말해서Text_New로 차트에 텍스트 표시하는데 안 나타납니다.- 진입 신호는 나옴- 손익 표시만 안 나옴- ShowProfit = 1- H + 50.0, L - 50.0 위치크루드 오일 차트 범위가 58~62인데 텍스트 위치 때문인가요?마이크로 골드에서는 동일한 코드가 정상 작동했는데,크루드 오일에서만 안 나타나서 문의드립니다.그리고 유로, 파운드, 호주달러는 어떻게 하면 될까요?감사합니다.
프로필 이미지
스오어스
2025-11-20
52
글번호 228260
시스템
답변완료

조건검색색식 부탁드립니다

안녕하세요장 마감후에 오늘중 또는 장 마감전에 오늘의 1분봉 차트에서 특정시간 예를 들어 오늘 10시16분을 조건식으로 순위를 변수로 지정시간을 입력하여 검색하면 10시16분의 순위가 나오는 종목검색되는 검색식을 부탁드립니다
프로필 이미지
감땡
2025-11-20
54
글번호 228250
종목검색
답변완료

고가저가 세로선 그리기

늘 감사하고 잘 쓰고 있습니다.수식은 data2용으로 만들어 주세요.당일의 최고가, 최저가에 세로선이 그려 지는 수식입니다.당일의 최고가 1개, 최저가에 1개, 전부 2개의 세로선이 그려 지는 수식입니다.굵기와 색상을 변경 가능하도록 해 주세요.마이너스에도 표현되도록 0선 시작이 아니라 -99999999에서 +99999999 까지감사합니다.
프로필 이미지
상암동
2025-11-20
34
글번호 228247
지표
답변완료

검색식 부탁드립니다

A=BBandsUp(Period,D1);B=BBandsUp(Period1,D2);crossup(A,B(1))지표변수Period 5D1 1D2 3Period1 7
프로필 이미지
님이랑
2025-11-20
43
글번호 228244
종목검색