تحلیل تکنیکال jimi0007 درباره نماد MKR در تاریخ ۱۴۰۲/۲/۲۵
jimi0007

//@نسخه=5 نشانگر('خروج لوستر'، shorttitle='CE MTF', overlay=true,timeframe = ",timeframe_gaps = true) طول = ورودی (عنوان = 'دوره ATR'، defval=22) mult = input.float(title='ATR Multiplier', step=0.1, defval=3.0) showLabels = ورودی (title='نمایش برچسبهای خرید/فروش؟'، defval=true) useClose = input(title='Use Close Price for Extremums ?', defval=true) highlightState = ورودی (title='Highlight State ?', defval=true) atr = چند * ta.atr (طول) longStop = (useClose ? ta.highest(close, length) : ta.highest(طول)) - atr longStopPrev = nz (longStop، longStop) longStop := بستن > longStopPrev ? math.max(longStop، longStopPrev): longStop shortStop = (useClose ? ta.lowest(close, length) : ta.lowest(طول)) + atr shortStopPrev = nz (shortStop، shortStop) shortStop := بستن < shortStopPrev ? math.min (shortStop، shortStopPrev): shortStop var int dir = 1 dir := close > shortStopPrev ? 1 : بستن < longStopPrev ? -1: کارگردان رنگ var longColor = رنگ.سبز var color shortColor = color.red longStopPlot = plot (dir == 1 ? longStop : na, title='Long Stop', style=plot.style_linebr, linewidth=2, color=color.new (longColor, 0)) buySignal = dir == 1 و dir == -1 plotshape(buySignal ? longStop: na، title='Long Stop Start'، location=location.absolute، style=shape.circle، size=size.tiny، color=color.new(longColor، 0)) plotshape(buySignal and showLabels ? longStop : na، title='Buy Label', text='Buy', location=location.absolute, style=shape.labelup, size=size.tiny, color=color.new(longColor, 0 ، textcolor=color.new(color.white, 0)) shortStopPlot = plot (dir == 1 ? na : shortStop، title='Stop Short', style=plot.style_linebr, linewidth=2, color=color.new (shortColor, 0)) sellSignal = dir == -1 و dir == 1 plotshape(sellSignal ? shortStop: na، title='شروع توقف کوتاه'، location=location.absolute، style=shape.circle، size=size.tiny، color=color.new(shortColor، 0)) plotshape(sellSignal and showLabels ? shortStop : na، title='Sell Label'، text='Sell', location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(shortColor, 0 ، textcolor=color.new(color.white, 0)) midPricePlot = طرح (ohlc4، عنوان=''، style=plot.style_circles، linewidth=0، display=display.none، قابل ویرایش=نادرست) longFillColor = highlightState ? dir == 1 ? longColor : na : na shortFillColor = highlightState ? dir == -1 ? کوتاهرنگ : na : na fill(midPricePlot, longStopPlot, title='Long State Filling', color=color.new(longFillColor,90)) fill(midPricePlot, shortStopPlot, title='Short State Filling', color=color.new(shortFillColor,90)) changeCond = dir != dir alertcondition(changeCond, title='Alert: CE Direction Change', message='Chandelier Exit تغییر جهت داده است!') alertcondition(buySignal، title='Alert: CE Buy', message='Chandelier Exit Buy!') alertcondition(sellSignal، title='Alert: CE Sell', message='Chandelier Exit Sell!')