
二重指標突破策は,RSI指標と閉盤価格指標を組み合わせて,低買い高売り方法を実現する取引を行う.この戦略は,シンプルで実用的で,取り戻しのリスクが小さい,中長期線でのポジションに適しています.
この戦略は,以下の2つの指標に基づいて判断されます.
入場条件は,RSI超買いであり,株が高度に過小評価され,反転の可能性が強いことを示している.出場条件は,閉店価格が1日前の最高値を破り,株が多頭行情に入っていることを示しているため,適切に停止すべきである.
双重指標の突破策には以下の利点があります.
この戦略にはいくつかのリスクがあります.
RSIのパラメータを最適化し,状況のタイプを評価し,他の指標判断と組み合わせることで,上記のリスクを回避することができます.
この戦略の最適化方向は,以下の部分に重点を置いています.
二重指数突破戦略は,全体的に非常に実用的な量化戦略である. この戦略は操作が簡単で,撤回リスクは低く,パラメータの最適化と規則の完善により,賢明で安定した量化プログラムになることができます. 効果的に着地すれば,私たちに良い中長線取引の機会を提供することができます.
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © hobbiecode
// If RSI(2) is less than 15, then enter at the close.
// Exit on close if today’s close is higher than yesterday’s high.
//@version=5
strategy("Hobbiecode - RSI + Close previous day", overlay=true)
// RSI parameters
rsi_period = 2
rsi_lower = 15
// Calculate RSI
rsi_val = ta.rsi(close, rsi_period)
// Check if RSI is lower than the defined threshold
if (rsi_val < rsi_lower)
strategy.entry("Buy", strategy.long)
// Check if today's close is higher than yesterday's high
if (strategy.position_size > 0 and close > ta.highest(high[1], 1))
strategy.close("Buy")
// Plot RSI on chart
plot(rsi_val, title="RSI", color=color.red)
hline(rsi_lower, title="Oversold Level", color=color.blue)