업데이트됨
Trend Level-Chance 6-13-5 MA10

getScore(tf) =>
float price = request.security(syminfo.tickerid, tf, close)
float ma10 = request.security(syminfo.tickerid, tf, ta.sma(close, 10))
[macdLine, signalLine, _] = request.security(syminfo.tickerid, tf, ta.macd(close, 6, 13, 5))
int score = 0
// MA10
score += price > ma10 * (1 + bandPct) ? 1 : price < ma10 * (1 - bandPct) ? -1 : 0
// MACD
float diff = macdLine - signalLine
float threshold = ta.ema(math.abs(macdLine), 100) * (bandPct * 100)
score += diff > threshold ? 2 : diff < -threshold ? -2 : 0
// Chuẩn hóa score về -3 → +3
score := math.max(-3, math.min(3, score))
float price = request.security(syminfo.tickerid, tf, close)
float ma10 = request.security(syminfo.tickerid, tf, ta.sma(close, 10))
[macdLine, signalLine, _] = request.security(syminfo.tickerid, tf, ta.macd(close, 6, 13, 5))
int score = 0
// MA10
score += price > ma10 * (1 + bandPct) ? 1 : price < ma10 * (1 - bandPct) ? -1 : 0
// MACD
float diff = macdLine - signalLine
float threshold = ta.ema(math.abs(macdLine), 100) * (bandPct * 100)
score += diff > threshold ? 2 : diff < -threshold ? -2 : 0
// Chuẩn hóa score về -3 → +3
score := math.max(-3, math.min(3, score))
릴리즈 노트
//version=5indicator("Trend Level-Chance 6-13-5", shorttitle="TLC 6-13-5", overlay=true)
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.