커뮤니티
문의드립니다
//@version=5
indicator("Nasdaq Ultimate Trend", overlay=true)
// EMA
ema9 = ta.ema(close,9)
ema21 = ta.ema(close,21)
ema55 = ta.ema(close,55)
ema200 = ta.ema(close,200)
// ADX
adx = ta.adx(14)
// Supertrend
[st,dir] = ta.supertrend(3,10)
// 볼린저밴드
basis = ta.sma(close,20)
dev = ta.stdev(close,20)*2
upper = basis + dev
lower = basis - dev
// 추세 조건
bull = ema9>ema21 and ema21>ema55 and ema55>ema200 and dir<0 and adx>20
bear = ema9<ema21 and ema21<ema55 and ema55<ema200 and dir>0 and adx>20
// 매수 매도
buy = bull and ta.crossover(close,ema21)
sell = bear and ta.crossunder(close,ema21)
// 표시
plot(ema9,color=color.yellow)
plot(ema21,color=color.orange)
plot(ema55,color=color.red)
plot(ema200,color=color.blue,linewidth=3)
plot(st,color=bull?color.green:color.red,linewidth=3)
// 배경
bgcolor(bull?color.new(color.green,85):bear?color.new(color.red,85):na)
// 신호
plotshape(buy,location=location.belowbar,color=color.green,style=shape.labelup,text="BUY")
plotshape(sell,location=location.abovebar,color=color.red,style=shape.labeldown,text="SELL")
수고 많으십니다
위 수식 예스트레이드 로 전환 부탁드리겠습니다
지표식과 시스템식으로 부탁드립니다
감사합니다
답변 1
예스스탁 예스스탁 답변
2026-03-16 10:32:56