INVITE-ONLY SCRIPT
Smart Trader winning

//version=6
indicator('Smart Trader winning', overlay = true, max_labels_count = 500)
// Inputs
emaLength = input.int(20, 'EMA Length')
buyColor = input.color(color.teal, 'Buy Arrow Color')
sellColor = input.color(color.red, 'Sell Arrow Color')
// Price and EMA
ema = ta.ema(close, emaLength)
// Volume Delta
deltaVolume = volume * (close - open) / (high - low + 0.0001)
// Buy / Sell Condition
buyCond = ta.crossover(close, ema)
sellCond = ta.crossunder(close, ema)
// Plot EMA
plot(ema, color = color.fuchsia, linewidth = 2)
// Labels for Buy / Sell
if buyCond
label.new(bar_index, low, text = '▲ Buy', color = buyColor, style = label.style_label_up, textcolor = color.white)
if sellCond
label.new(bar_index, high, text = '▼ Sell', color = sellColor, style = label.style_label_down, textcolor = color.white)
// Delta Volume Table (on chart right side)
var table t = table.new(position.top_right, 2, 2, border_width = 1)
buyVol = buyCond ? volume : na
sellVol = sellCond ? volume : na
table.cell(t, 0, 0, 'Buy Vol', bgcolor = color.new(color.green, 80))
table.cell(t, 1, 0, str.tostring(buyVol, format.volume), bgcolor = color.new(color.green, 90))
table.cell(t, 0, 1, 'Sell Vol', bgcolor = color.new(color.red, 80))
table.cell(t, 1, 1, str.tostring(sellVol, format.volume), bgcolor = color.new(color.red, 90))
// Background Highlight for Trade Zone
bgcolor(buyCond ? color.new(color.green, 85) : na)
bgcolor(sellCond ? color.new(color.red, 85) : na)
indicator('Smart Trader winning', overlay = true, max_labels_count = 500)
// Inputs
emaLength = input.int(20, 'EMA Length')
buyColor = input.color(color.teal, 'Buy Arrow Color')
sellColor = input.color(color.red, 'Sell Arrow Color')
// Price and EMA
ema = ta.ema(close, emaLength)
// Volume Delta
deltaVolume = volume * (close - open) / (high - low + 0.0001)
// Buy / Sell Condition
buyCond = ta.crossover(close, ema)
sellCond = ta.crossunder(close, ema)
// Plot EMA
plot(ema, color = color.fuchsia, linewidth = 2)
// Labels for Buy / Sell
if buyCond
label.new(bar_index, low, text = '▲ Buy', color = buyColor, style = label.style_label_up, textcolor = color.white)
if sellCond
label.new(bar_index, high, text = '▼ Sell', color = sellColor, style = label.style_label_down, textcolor = color.white)
// Delta Volume Table (on chart right side)
var table t = table.new(position.top_right, 2, 2, border_width = 1)
buyVol = buyCond ? volume : na
sellVol = sellCond ? volume : na
table.cell(t, 0, 0, 'Buy Vol', bgcolor = color.new(color.green, 80))
table.cell(t, 1, 0, str.tostring(buyVol, format.volume), bgcolor = color.new(color.green, 90))
table.cell(t, 0, 1, 'Sell Vol', bgcolor = color.new(color.red, 80))
table.cell(t, 1, 1, str.tostring(sellVol, format.volume), bgcolor = color.new(color.red, 90))
// Background Highlight for Trade Zone
bgcolor(buyCond ? color.new(color.green, 85) : na)
bgcolor(sellCond ? color.new(color.red, 85) : na)
僅限邀請腳本
僅作者批准的使用者才能訪問此腳本。您需要申請並獲得使用許可,通常需在付款後才能取得。更多詳情,請依照作者以下的指示操作,或直接聯絡SmartTrader-20。
TradingView不建議在未完全信任作者並了解其運作方式的情況下購買或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
its only education purpose
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
僅限邀請腳本
僅作者批准的使用者才能訪問此腳本。您需要申請並獲得使用許可,通常需在付款後才能取得。更多詳情,請依照作者以下的指示操作,或直接聯絡SmartTrader-20。
TradingView不建議在未完全信任作者並了解其運作方式的情況下購買或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
its only education purpose
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。