OPEN-SOURCE SCRIPT

Commodity Channel Index

48
// BUY CONDITION
buySignal = direction < 0 and ta.crossover(cci, -100)

// ENTRY PRICE
entryPrice = close

// STOP LOSS AT SUPERTREND
stopLoss = supertrend

// RISK CALCULATION
risk = entryPrice - stopLoss

// TARGET 1:2
target = entryPrice + (risk * 2)

// ALERT
alertcondition(buySignal, title="BUY", message="Supertrend Green + CCI Cross Above -100 | RR 1:2")

// OPTIONAL PLOTS
plotshape(buySignal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plot(stopLoss, title="Stop Loss", color=color.red)
plot(target, title="Target 1:2", color=color.green)

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน