OPEN-SOURCE SCRIPT

Commodity Channel Index

62
// 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. קרא עוד ב־תנאי השימוש.