
RSIの取引戦略は,比較的強い指数 ((RSI) の複数の平均線を組み合わせて市場動向を判断し,取引信号を発信する量的な取引戦略である.この戦略はの捕獲原理を模倣し,短期RSI線が長期RSI線を交差するときに取引を展開する.
RSI魚取引戦略は,5日,13日,34日の3つのRSI平均線を同時に利用する.その中,5日RSI線は歯線と呼ばれている.13日線は唇線と呼ばれている.34日線は下線と呼ばれている.歯線または唇線に下線を穿越すると,多信号を発信する.歯線または唇線の下下線を穿越すると,空信号を発信する.
取引戦略の鍵は,短期RSI線と長期RSI線の交差を捉え,市場の短期傾向と長期の傾向の関係を判断し,反転の機会を探すことにある.短期RSI線が長期RSI線を交差すると,短期価格が反転していることを示し,その時には逆の方向のポジションを占め,来るべき長期の傾向の反転から利益を得ることができます.
RSIの取引戦略には以下の利点があります.
RSIの取引戦略には以下のリスクがあります.
これらのリスクは,他の指標,最適化パラメータの組み合わせ,および適正に保持規模を調整することによって緩和することができます.
RSIの取引戦略は,以下の点で最適化できます.
RSI魚取引戦略は,多重RSI均線交差を利用して,市場の逆転の機会を捉える.それはシンプルで実用的で,自動化取引に適しているが,一定の欠陥もある.パラメータの最適化と指標の組み合わせによって,この戦略を強化し,安定した収益性のアルゴリズム取引戦略にすることができる.
/*backtest
start: 2022-11-30 00:00:00
end: 2023-12-06 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=3
strategy("RSI Alligator", overlay=false)
jaws = rsi(close, 34)
teeth = rsi(close, 5)
lips = rsi(close, 13)
plot(jaws, color=blue, title="Jaw")
plot(teeth, color=green, title="Teeth")
plot(lips, color=red, title="Lips")
longCondition = crossover(rsi(close, 13), rsi(close, 34)) and (rsi(close, 5) > rsi(close, 34))
longCondition1 = crossover(rsi(close, 5), rsi(close, 34)) and (rsi(close, 13) > rsi(close, 34))
if (longCondition)
strategy.entry("Long", strategy.long)
if (longCondition1)
strategy.entry("Long", strategy.long)
shortCondition = crossunder(rsi(close, 13), rsi(close, 34)) and (rsi(close, 5) < rsi(close, 34))
shortCondition1 = crossunder(rsi(close, 5), rsi(close, 34)) and (rsi(close, 13) < rsi(close, 34))
if (shortCondition)
strategy.entry("Short", strategy.short)
if (shortCondition1)
strategy.entry("Short", strategy.short)
// === BACKTESTING: EXIT strategy ===
sl_inp = input(10, title='Stop Loss %', type=float)/100
tp_inp = input(90, title='Take Profit %', type=float)/100
stop_level = strategy.position_avg_price * (1 - sl_inp)
take_level = strategy.position_avg_price * (1 + tp_inp)
strategy.exit("Stop Loss/Profit", "Long", stop=stop_level, limit=take_level)