
이것은 지수 이동 평균 (EMA), 상대적으로 강한 지수 (RSI), 이동 평균 수축 (MACD), 그리고 볼링거 밴드 (Bollinger Bands) 를 결합한 복잡한 다중 지수 거래 전략이며, 잠재적 인 거래 진입 지점을 다중 신호 검증 방식으로 식별하기 위해 설계되었습니다. 이 전략은 트렌드 가격 움직임을 포착하고 엄격한 신호 필터링 메커니즘을 통해 잘못된 신호의 가능성을 줄이는 데 초점을 맞추고 있습니다.
이 전략의 핵심은 4개의 핵심 기술 지표에 대한 통합 분석에 기초하고 있습니다.
특정 입학 논리는 다음과 같습니다:
더 많은 조건이 있습니다.
공백 조건:
이것은 매우 체계화된 다중 변수 교차 동향 동력 전략으로, 네 가지 기술 지표의 복합 검증을 통해 보다 정확하고 신뢰할 수 있는 거래 신호를 제공하고자 합니다. 전략은 상당한 장점이 있지만, 지속적인 최적화와 위험 관리가 필요합니다.
/*backtest
start: 2024-04-02 00:00:00
end: 2025-04-01 00:00:00
period: 2d
basePeriod: 2d
exchanges: [{"eid":"Futures_Binance","currency":"BNB_USDT"}]
*/
//@version=5
strategy("Multi-Indicator Trading Strategy", overlay=true)
// Input variables
len1 = input(50, "EMA 50")
len2 = input(100, "EMA 100")
len3 = input(200, "EMA 200")
rsiLength = input(14, "RSI Length")
rsiOverbought = input(70, "RSI Overbought")
rsiOversold = input(30, "RSI Oversold")
// Indicators
ema50 = ta.ema(close, len1)
ema100 = ta.ema(close, len2)
ema200 = ta.ema(close, len3)
rsi = ta.rsi(close, rsiLength)
[macdLine, signalLine, histLine] = ta.macd(close, 12, 26, 9)
[middle, upper, lower] = ta.bb(close, 20, 2)
// Trading signals
longCondition = ta.crossover(close, ema50) and ema50 > ema100 and ema100 > ema200 and rsi > 50 and rsi < rsiOverbought and macdLine > signalLine
shortCondition = ta.crossunder(close, ema50) and
ema50 < ema100 and
ema100 < ema200 and
rsi < 50 and
rsi > rsiOversold and
macdLine < signalLine
// Plots
plot(ema50, "EMA 50", color.blue)
plot(ema100, "EMA 100", color.yellow)
plot(ema200, "EMA 200", color.red)
plot(upper, "BB Upper", color.gray)
plot(middle, "BB Middle", color.gray)
plot(lower, "BB Lower", color.gray)
// Signals
plotshape(longCondition, "Long", shape.triangleup, location.belowbar, color.green)
plotshape(shortCondition, "Short", shape.triangledown, location.abovebar, color.red)
// Strategy
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)