숏
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
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.