この策略は,RSIとWMAに基づくトレンド追跡策略と呼ばれています.この策略は,相対的に強い指標 ((RSI) と重力移動平均 ((WMA) の2つの指標の優位性を総合的に利用し,RSI指標を使用して,超買い超売り領域を判断し,WMA指標と組み合わせて,価格トレンドの方向を判断し,価格トレンドを効果的に追跡します.
この戦略は主にRSI指標を用いて,株式が超買い超売の状況を判断する. RSI指標が超売ラインを下回ると,株式が超売り状態にあると考え,この長いポジションをオープンすることができる. RSI指標が超買ライン上回ると,株式が超買状態にあると考え,このときmiden lange Positionenがオープンされた,es ist eine gute Opportunity zu schließenすることができる. さらに,この戦略は,WMA指標を用いて価格の傾向を測定する.
具体的には,この戦略の取引の論理は次のとおりです.
この取引論理により,相対的低点の追跡で多トレンドを行うことができ,相対的高点の追跡で空調トレンドを行うことができ,価格トレンドの部分的な利益を効果的に得ることができる.
この戦略の利点は以下の通りです.
この戦略にはいくつかのリスクがあります.
これらのリスクに対して,ストップ・ロスを設定し,パラメータの最適化などで改善と最適化を行うことができます.
この戦略は,次のいくつかの点でさらに改善する必要があります.
この戦略は,RSIとWMAの2つの指標を総合的に使用し,過買過売を判断すると同時に価格トレンドの逆転を識別し,価格トレンドを自動追跡し,利益の一部を取得する.戦略の最適化スペースは広大であり,より多くの特性を導入し,ポジション管理を制御し,機械学習を使用するなどによって戦略の収益率と安定性をさらに向上させることができます.全体的に,この戦略は,より単純な直接のトレンド追跡戦略です.
/*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)