Giá xuống
DCC

/ This code snippet is written in PineScript, a programming language used in TradingView software.
// This function monitors the daily price of cryptocurrency
study(title="Cryptocurrency Price Monitor", precision=8)
// Define cryptocurrency symbol to monitor
symbol = "BTCUSD"
// Retrieve price history for this currency
price_history = security(symbol, "D", close)
// Define alert threshold in percentage
threshold = 0.1
// Calculate the upper alert threshold
price_upper = price_history * (1 + threshold/100)
// Calculate the lower alert threshold
price_lower = price_history * (1 - threshold/100)
// Plot current price
plot(price_history, title="Price", color=color.blue, linewidth=2)
// Plot upper alert threshold
plot(price_upper, title="Price Alert Upper", color=color.orange, linewidth=2)
// Plot lower alert threshold
plot(price_lower, title="Price Alert Lower", color=color.red, linewidth=2)
// When the price rises above the upper alert threshold,
// an alert will be triggered
alertcondition(price_history > price_upper, title="Price Alert", message="The price of cryptocurrency
// This function monitors the daily price of cryptocurrency
study(title="Cryptocurrency Price Monitor", precision=8)
// Define cryptocurrency symbol to monitor
symbol = "BTCUSD"
// Retrieve price history for this currency
price_history = security(symbol, "D", close)
// Define alert threshold in percentage
threshold = 0.1
// Calculate the upper alert threshold
price_upper = price_history * (1 + threshold/100)
// Calculate the lower alert threshold
price_lower = price_history * (1 - threshold/100)
// Plot current price
plot(price_history, title="Price", color=color.blue, linewidth=2)
// Plot upper alert threshold
plot(price_upper, title="Price Alert Upper", color=color.orange, linewidth=2)
// Plot lower alert threshold
plot(price_lower, title="Price Alert Lower", color=color.red, linewidth=2)
// When the price rises above the upper alert threshold,
// an alert will be triggered
alertcondition(price_history > price_upper, title="Price Alert", message="The price of cryptocurrency
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.