
コナー双均線RSI反転取引戦略は,比較的強い指数 ((RSI) と双均線を組み合わせて,高い確率の反転取引の機会を探している.短期および長期のトレンドが逆転するとき,この戦略は,状況が転じようとしていることを判断し,ポジションを構築する.
この戦略は,RSIと双均線を同時に使って市場のトレンドを判断する. まず,短期トレンドの逆転を判断するために2サイクルRSIを計算する. 次に,短期RSIを計算して長期トレンドの方向を判断する. 短期RSIが超買/超売り領域から反発し,長期トレンドと逆転すると,状況が逆転を迫ることを示す取引ポジションを確立する.
入場シグナル:RSIは超売り区域 ((デフォルト5) より小さいが,短期価格が長期価格より高くなると多出;RSIは超買い区域 ((デフォルト95) より大きいが,短期価格が長期価格より低くなると空出.
出場信号:5周期短期平均線がポジション保持方向と入場方向の反対の信号を発したときに出場;またはストップ損失 ((デフォルト損失3%) 〜.
この戦略は,市場構造を判断する複数の指標を組み合わせて,取引の正確性を向上させることができる.具体的には,以下の利点があります.
この戦略にはいくつかのリスクがあります.
この戦略は以下の点で最適化できます.
コナー双均線RSI反転取引戦略は,RSI反転信号と双均線フィルターを使用して,高確率の位置で市場の反転を捕捉する.この戦略は,複数の指標判断を使用し,取引戦略の安定性を効果的に向上させることができます.次のステップは,パラメータ最適化とリスク管理の改善により,戦略の優位性をさらに拡大し,より高い取引効率を得ることを期待しています.
/*backtest
start: 2023-10-21 00:00:00
end: 2023-11-16 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Connors RSI-MA Strategy", overlay=true)
// Strategy parameters
rsiLength = input(2, title="RSI Length")
maLength = input(200, title="MA Length")
exitMaLength = input(5, title="Exit MA Length")
overboughtThreshold = input(95, title="Overbought Threshold")
oversoldThreshold = input(5, title="Oversold Threshold")
stopLossPercentage = input(3, title="Stop Loss Percentage")
// 2-period RSI
rsi2 = ta.rsi(close, rsiLength)
// 200-period MA
ma200 = ta.sma(close, maLength)
// 5-period MA for exit signals
ma5_exit = ta.sma(close, exitMaLength)
// Positive trend condition
positiveTrend = close > ma200
// Negative trend condition
negativeTrend = close < ma200
// Buy and sell conditions
buyCondition = rsi2 < oversoldThreshold and positiveTrend
sellCondition = rsi2 > overboughtThreshold and negativeTrend
// Exit conditions
exitLongCondition = close > ma5_exit
exitShortCondition = close < ma5_exit
// Stop Loss
stopLossLevelLong = strategy.position_avg_price * (1 - stopLossPercentage / 100)
stopLossLevelShort = strategy.position_avg_price * (1 + stopLossPercentage / 100)
// Strategy logic
if (buyCondition)
strategy.entry("Buy", strategy.long)
if (sellCondition)
strategy.entry("Sell", strategy.short)
if (exitLongCondition or close >= stopLossLevelLong)
strategy.close("Buy")
if (exitShortCondition or close <= stopLossLevelShort)
strategy.close("Sell")
// Plotting
plot(ma200, title="200 MA", color=color.blue)
plot(ma5_exit, title="Exit MA", color=color.red)
// Plot stop loss levels
plotshape(series=stopLossLevelLong, title="Long Stop Loss", color=color.green, style=shape.triangledown, size=size.small)
plotshape(series=stopLossLevelShort, title="Short Stop Loss", color=color.red, style=shape.triangleup, size=size.small)