답변완료
수식 부탁합니다.
안녕하세요.수식 변환 작업 부탁합니다.//Parameters requiredfastEmaPeriod = input(5, minval=1, title="Fast TEMA")slowEmaPeriod = input(20, minval=1, title="Slow TEMA")triple_ema(src, time_period) => ema1 = rsi(src, time_period) ema2 = rsi(ema1, time_period) ema3 = rsi(ema2, time_period) TEMA_cal = 0.0 TEMA_cal := 3 * (ema1 - ema2) + ema3 TEMA_cal//fastTEMA = triple_ema(high,fastEmaPeriod)slowTEMA = triple_ema(low,slowEmaPeriod)plot(fastTEMA, title = 'fast TEMA',color=color.blue, linewidth=2) plot(slowTEMA, title = 'slow TEMA',color=color.red, linewidth=2)//showZones = input(true, title="Show Bullish/Bearish Zones")// bullish signal rule: bullishRule = fastTEMA >= slowTEMA// bearish signal rule: bearishRule = fastTEMA <= slowTEMA// current trading StateruleState = 0ruleState := bullishRule ? 1 : bearishRule ? -1 : nz(ruleState[1])bgcolor(showZones ? ruleState == 1 ? color.lime : ruleState == -1 ? color.red : color.yellow : na, title=" Bullish/Bearish Zones", transp=90)//
2026-02-02
165
글번호 230272
지표
답변완료
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}}')
2026-02-02
256
글번호 230268
지표
답변완료
문의 드립니다.
안녕하세요 ~ 평소 많은 도움 주심에 감사드립니다. 아래의 1라인이 2라인을 돌파하는 종목의 검색식을 부탁 드립니다. 1라인.(MA(종가, A1, 이평종류)+MA(종가, A2, 이평종류)+MA(종가, A6, 이평종류)+MA(종가, A7, 이평종류))/2-(MA(종가, A4, 이평종류)+MA(종가, A5, 이평종류))/22라인.MA(종가, A6, 이평종류)+MA(종가, A7, 이평종류)-(MA(종가, A3, 이평종류)+MA(종가, A5, 이평종류))/2지표조건 A1 : 13A2 : 21A3 : 34A4 : 55A5 : 89감사합니다.
2026-02-02
101
글번호 230265
종목검색