이 전략은 RSI와 WMA 기반의 트렌드 추적 전략이라고합니다. 이 전략은 상대적으로 강한 지표 ((RSI) 와 중화 이동 평균 ((WMA) 의 두 지표의 장점을 통합하여 RSI 지표를 통해 과매매 지역을 판단하고 WMA 지표와 결합하여 가격 트렌드 방향을 판단하여 가격 트렌드를 효과적으로 추적합니다.
이 전략은 주로 RSI 지표를 사용하여 주식의 과매매를 판단한다. RSI 지표가 과매선보다 낮으면 주식이 과매 상태에 있다고 여겨, diesem lange Positionenをöffnen können. RSI 지표가 과매선보다 높으면 주식이 과매 상태에 있다고 여겨, 이 때 miden lange Positionenがopen wurde, es ist eine gute Opportunity zu schließen. 또한, 이 전략은 WMA 지표를 사용하여 가격 경향을 측정한다.
특히, 이 전략의 거래 논리는 다음과 같습니다.
이러한 거래 논리를 통해 상대적으로 낮은 곳에서 여러 가지 트렌드를 추적할 수 있고, 상대적으로 높은 곳에서 코스피 트렌드를 추적할 수 있으며, 가격 트렌드에서 일부 이익을 효과적으로 얻을 수 있다.
이 전략은 다음과 같은 장점을 가지고 있습니다.
이 전략에는 다음과 같은 위험도 있습니다.
이러한 위험에는 스톱로스 설정, 변수 조정 최적화 등의 방법으로 개선 및 최적화를 할 수 있습니다.
이 전략은 다음의 몇 가지 측면에서 더 개선될 필요가 있습니다.
이 전략은 RSI와 WMA 두 지표를 종합적으로 사용하여 과매매 과매매를 판단하는 동시에 가격 트렌드 반전을 식별하고 자동으로 가격 트렌드를 추적하여 수익을 얻습니다. 전략의 최적화 공간은 여전히 넓고, 더 많은 기능을 도입하고, 포지션 관리를 제어하고, 머신 러닝을 사용함으로써 전략의 수익률과 안정성을 더욱 향상시킬 수 있습니다.
/*backtest
start: 2024-01-10 00:00:00
end: 2024-01-11 06:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
//Lets connect on LinkedIn (https://www.linkedin.com/in/lets-grow-with-quality/)
//
//I use my indicator it in real life with a zero commision broker ob S&P500 Daily.
//Best performace when used with S&, lomg only and pyramiding on daily timeframe.
//
//Please.. still use your brain for entries and exits: higher timeframes, market structure, trend ...
//If you obviously can see, like when corona started, that cubic tons of selling volume is going to punsh the markets, wait until selling climax is over and so on..
strategy("RSI/WMA Strategy", overlay=true)
length = input(2)
overSold = input(10)
overBought = input(90)
wmaLength = input(50, title="WMA Length")
enableLongTrades = input(true, title="Enable Long Trades")
longExit = input(true, title="Enable Long Exit")
enableShortTrades = input(false, title="Enable Short Trades")
shortExit = input(false, title="Enable Short TradExites")
price = close
vrsi = ta.wma(ta.rsi(price, length), 2)
wma = ta.wma(price, wmaLength)
co = ta.crossunder(vrsi, overSold)
cu = ta.crossunder(vrsi, overBought)
if (not na(vrsi))
if (enableLongTrades and co)
strategy.entry("RsiLE", strategy.long, comment="RsiLE")
if (enableShortTrades and cu)
strategy.entry("RsiSE", strategy.short, comment="RsiSE")
// Close long position if price crosses above SMA
if (longExit and ta.crossover(price, wma))
strategy.close("RsiLE", comment="Close Long")
// Close short position if price crosses below SMA
if (shortExit and ta.crossunder(price, wma))
strategy.close("RsiSE", comment="Close Short")
// Plot für visuelle Überprüfung
plot(wma, title="wmi", color=color.blue)