
この戦略は,市場価格の形状の識別に基づく定量取引システムであり,主に123位逆転形状の識別によって市場の潜在的逆転機会を捕捉する.この戦略は,ダイナミックなポジション保持期間の管理と移動平均のフィルタリングを組み合わせ,複数の条件の検証によって取引の正確性を向上させる.この戦略は,入場点を定義するために正確な数学モデルを採用し,200日平均線を補助的な退出条件として使用し,完全な取引システムを形成する.
戦略の核心的な論理は,価格形態の識別に基づいています.具体的には,以下の重要な要素が含まれています.
この戦略は,厳格な形状識別と完善したリスク制御システムによって,トレーダーに信頼できる市場反転捕捉ツールを提供します.一定の限界があるものの,継続的な最適化と適切なパラメータの調整によって,この戦略は,異なる市場環境で安定したパフォーマンスを維持することができます.トレーダーは,実際のアプリケーションで市場の経験と組み合わせて,戦略をターゲットに調整して,より良い取引効果を得ることをお勧めします.
/*backtest
start: 2019-12-23 08:00:00
end: 2024-11-11 00:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © EdgeTools
//@version=5
strategy("123 Reversal Trading Strategy", overlay=true)
// Input for number of days to hold the trade
daysToHold = input(7, title="Days to Hold Trade")
// Input for 20-day moving average
maLength = input(200, title="Moving Average Length")
// Calculate the 20-day moving average
ma20 = ta.sma(close, maLength)
// Define the conditions for the 123 reversal pattern (bullish reversal)
// Condition 1: Today's low is lower than yesterday's low
condition1 = low < low[1]
// Condition 2: Yesterday's low is lower than the low three days ago
condition2 = low[1] < low[3]
// Condition 3: The low two days ago is lower than the low four days ago
condition3 = low[2] < low[4]
// Condition 4: The high two days ago is lower than the high three days ago
condition4 = high[2] < high[3]
// Entry condition: All conditions must be true
entryCondition = condition1 and condition2 and condition3 and condition4
// Exit condition: Close the position after a certain number of bars or when the price reaches the 20-day moving average
exitCondition = ta.barssince(entryCondition) >= daysToHold or close >= ma20
// Execute buy and sell signals
if (entryCondition)
strategy.entry("Buy", strategy.long)
if (exitCondition)
strategy.close("Buy")