커뮤니티

문의드립니다

프로필 이미지
cjfdk
2026-03-16 13:34:35
89
글번호 231100
답변완료

//@version=5

indicator("Nasdaq 98% Trend System", overlay=true)


// EMA

ema200 = ta.ema(close, 200)

plot(ema200, color=color.orange, linewidth=2)


// Supertrend

atrPeriod = 10

factor = 3


[supertrend, direction] = ta.supertrend(factor, atrPeriod)

plot(supertrend, color=direction > 0 ? color.green : color.red, linewidth=2)


// RSI

rsi = ta.rsi(close, 14)


// ADX

adx = ta.adx(14)


// 조건

longCondition = close > ema200 and direction > 0 and rsi > 55 and adx > 25

shortCondition = close < ema200 and direction < 0 and rsi < 45 and adx > 25


plotshape(longCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title="BUY")

plotshape(shortCondition, location=location.abovebar, color=color.red, style=shape.triangledown, title="SELL")


수고 많으십니다

위 수식 예스트레이드 시스템으로 변환 부탁드리겠습니다

감사합니다

시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-03-16 14:08:01

안녕하세요 예스스탁입니다. var : Ema200(0); ema200 = ema(close, 200); input : atrPeriod(10),factor(3); var : src(0), alpha(0),ATRV(0),upperBand(0),lowerBand(0),direction(0),SuperTrend(C); if CurrentBar > 1 Then { src = (H+L)/2; alpha = 1 / atrPeriod ; ATRV = IFf(IsNan(ATRV[1]) == true, ma(TrueRange,atrPeriod) , alpha * TrueRange + (1 - alpha) * IFf(isnan(ATRV[1])==true,0,ATRV[1])); upperBand = src + factor * AtrV; lowerBand = src - factor * AtrV; if lowerBand > lowerBand[1] or close[1] < lowerBand[1] Then lowerBand = lowerBand; Else lowerBand = lowerBand[1]; if upperBand < upperBand[1] or close[1] > upperBand[1] Then upperBand = upperBand; Else upperBand = upperBand[1]; if C > UpperBand Then direction = 1; if C < LowerBand Then direction = -1; if direction == 1 Then SuperTrend = lowerband; Else SuperTrend = upperband; } var : R(0),A(0),longCondition(False),shortCondition(False); R = rsi(14); A = adx(14); longCondition = close > ema200 and direction > 0 and R > 55 and A > 25; shortCondition = close < ema200 and direction < 0 and R < 45 and A > 25; if longCondition == true Then Buy("b"); if shortCondition == true Then Sell("s"); 즐거운 하루되세요