ترافیک
morteza_neisi2020

مشخصات معامله
قیمت در زمان انتشار:
۸۰,۴۱۳.۸۶
توضیحات
//@version=6
indicator("Traffic Light Market System", overlay = true)
//━━━━━━━━━━━━━━━━━━━
// INPUTS
//━━━━━━━━━━━━━━━━━━━
// Trend
emaFastLen = input.int(50, "EMA Fast Length", minval = 1)
emaSlowLen = input.int(200, "EMA Slow Length", minval = 1)
// Momentum
cciLen = input.int(20, "CCI Length", minval = 1)
cciBullLvl = input.int(50, "CCI Bull Level")
cciBearLvl = input.int(-50, "CCI Bear Level")
// Volume
volLen = input.int(20, "Volume SMA Length", minval = 1)
volMultiplier = input.float(1.0, "Volume Strength Multiplier", step = 0.1)
// Acceleration
adxLen = input.int(14, "ADX Length", minval = 1)
adxStrong = input.int(20, "ADX Strong Trend Level")
//━━━━━━━━━━━━━━━━━━━
// TREND
//━━━━━━━━━━━━━━━━━━━
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
bullTrend = emaFast > emaSlow
bearTrend = emaFast < emaSlow
//━━━━━━━━━━━━━━━━━━━
// MOMENTUM
//━━━━━━━━━━━━━━━━━━━
cci = ta.cci(close, cciLen)
bullMomentum = cci > cciBullLvl
bearMomentum = cci < cciBearLvl
//━━━━━━━━━━━━━━━━━━━
// VOLUME
//━━━━━━━━━━━━━━━━━━━
volSma = ta.sma(volume, volLen)
strongVolume = volume > (volSma * volMultiplier)
//━━━━━━━━━━━━━━━━━━━
// MARKET ACCELERATION
//━━━━━━━━━━━━━━━━━━━
adx = ta.adx(adxLen)
strongAcceleration = adx > adxStrong
//━━━━━━━━━━━━━━━━━━━
// FINAL LOGIC
//━━━━━━━━━━━━━━━━━━━
// BUY
buySignal =
bullTrend and
bullMomentum and
strongVolume and
strongAcceleration
// SELL
sellSignal =
bearTrend and
bearMomentum and
strongVolume and
strongAcceleration
// RANGE
rangeSignal = not buySignal and not sellSignal
//━━━━━━━━━━━━━━━━━━━
// TRAFFIC LIGHT COLORS
//━━━━━━━━━━━━━━━━━━━
trafficColor =
buySignal ? color.lime :
sellSignal ? color.red :
color.gray
//━━━━━━━━━━━━━━━━━━━
// VISUALS
//━━━━━━━━━━━━━━━━━━━
// Background
bgcolor(color.new(trafficColor, 88))
// EMAs
plot(emaFast, color = color.orange, linewidth = 2, title = "EMA Fast")
plot(emaSlow, color = color.blue, linewidth = 2, title = "EMA Slow")
// Traffic Light
plotshape(
buySignal,
title = "BUY",
style = shape.circle,
location = location.top,
color = color.lime,
size = size.large)
plotshape(
sellSignal,
title = "SELL",
style = shape.circle,
location = location.top,
color = color.red,
size = size.large)
plotshape(
rangeSignal,
title = "RANGE",
style = shape.circle,
location = location.top,
color = color.gray,
size = size.large)
//━━━━━━━━━━━━━━━━━━━
// ALERTS
//━━━━━━━━━━━━━━━━━━━
alertcondition(buySignal, title = "BUY Signal", message = "Traffic Light = GREEN")
alertcondition(sellSignal, title = "SELL Signal", message = "Traffic Light = RED")
alertcondition(rangeSignal,title = "RANGE Signal",message = "Traffic Light = GRAY")
indicator("Traffic Light Market System", overlay = true)
//━━━━━━━━━━━━━━━━━━━
// INPUTS
//━━━━━━━━━━━━━━━━━━━
// Trend
emaFastLen = input.int(50, "EMA Fast Length", minval = 1)
emaSlowLen = input.int(200, "EMA Slow Length", minval = 1)
// Momentum
cciLen = input.int(20, "CCI Length", minval = 1)
cciBullLvl = input.int(50, "CCI Bull Level")
cciBearLvl = input.int(-50, "CCI Bear Level")
// Volume
volLen = input.int(20, "Volume SMA Length", minval = 1)
volMultiplier = input.float(1.0, "Volume Strength Multiplier", step = 0.1)
// Acceleration
adxLen = input.int(14, "ADX Length", minval = 1)
adxStrong = input.int(20, "ADX Strong Trend Level")
//━━━━━━━━━━━━━━━━━━━
// TREND
//━━━━━━━━━━━━━━━━━━━
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
bullTrend = emaFast > emaSlow
bearTrend = emaFast < emaSlow
//━━━━━━━━━━━━━━━━━━━
// MOMENTUM
//━━━━━━━━━━━━━━━━━━━
cci = ta.cci(close, cciLen)
bullMomentum = cci > cciBullLvl
bearMomentum = cci < cciBearLvl
//━━━━━━━━━━━━━━━━━━━
// VOLUME
//━━━━━━━━━━━━━━━━━━━
volSma = ta.sma(volume, volLen)
strongVolume = volume > (volSma * volMultiplier)
//━━━━━━━━━━━━━━━━━━━
// MARKET ACCELERATION
//━━━━━━━━━━━━━━━━━━━
adx = ta.adx(adxLen)
strongAcceleration = adx > adxStrong
//━━━━━━━━━━━━━━━━━━━
// FINAL LOGIC
//━━━━━━━━━━━━━━━━━━━
// BUY
buySignal =
bullTrend and
bullMomentum and
strongVolume and
strongAcceleration
// SELL
sellSignal =
bearTrend and
bearMomentum and
strongVolume and
strongAcceleration
// RANGE
rangeSignal = not buySignal and not sellSignal
//━━━━━━━━━━━━━━━━━━━
// TRAFFIC LIGHT COLORS
//━━━━━━━━━━━━━━━━━━━
trafficColor =
buySignal ? color.lime :
sellSignal ? color.red :
color.gray
//━━━━━━━━━━━━━━━━━━━
// VISUALS
//━━━━━━━━━━━━━━━━━━━
// Background
bgcolor(color.new(trafficColor, 88))
// EMAs
plot(emaFast, color = color.orange, linewidth = 2, title = "EMA Fast")
plot(emaSlow, color = color.blue, linewidth = 2, title = "EMA Slow")
// Traffic Light
plotshape(
buySignal,
title = "BUY",
style = shape.circle,
location = location.top,
color = color.lime,
size = size.large)
plotshape(
sellSignal,
title = "SELL",
style = shape.circle,
location = location.top,
color = color.red,
size = size.large)
plotshape(
rangeSignal,
title = "RANGE",
style = shape.circle,
location = location.top,
color = color.gray,
size = size.large)
//━━━━━━━━━━━━━━━━━━━
// ALERTS
//━━━━━━━━━━━━━━━━━━━
alertcondition(buySignal, title = "BUY Signal", message = "Traffic Light = GREEN")
alertcondition(sellSignal, title = "SELL Signal", message = "Traffic Light = RED")
alertcondition(rangeSignal,title = "RANGE Signal",message = "Traffic Light = GRAY")
منتخب سردبیر
مشاهده بیشتردستیار هوشمند ارز دیجیتال
ترمینال ترید بایتیکل نرمافزار جامع ترید و سرمایهگذاری در بازار ارز دیجیتال است و امکاناتی مانند دورههای آموزشی ترید و سرمایهگذاری، تریدینگ ویو بدون محدودیت، هوش مصنوعی استراتژی ساز ترید، کلیه دادههای بازارهای مالی شامل دادههای اقتصاد کلان، تحلیل احساسات بازار، تکنیکال و آنچین، اتصال و مدیریت حساب صرافیها و تحلیلهای لحظهای را برای کاربران فراهم میکند.

