
この戦略は,トレンド追跡と平均値の回帰を組み合わせた定量取引システムである.これは200日移動平均 ((MA200)) を用いて大トレンドの方向を決定し,同時に7日間の価格変動を利用して短期超落の機会を識別し,上昇傾向の中で最適な購入のタイミングを把握する.この方法は,取引の方向の正確さを保証するとともに,価格調整時に迅速に介入し,技術分析が取引における指導的な役割を果たす.
戦略の核心的な論理には2つの次元が含まれています:一つは,MA200を介して長期のトレンドを判断し,価格がMA200上位である場合にのみポジションを開くことを考慮します;二つは,最近の7取引日の価格パフォーマンスを観察し,7日の新しい低値がMA200上位であるときにポジションを多く作ります.価格が7日の新しい高値に達したときに平仓します.この設計は,順調を保証するだけでなく,調整するときに低ポジションを構築することもできます.これは,トレンド追跡と平均値戻り思考を融合したシステム化された戦略です.
Double Seven Strategyは,トレンドを追跡し,平均値の回帰を有機的に結合する量化取引システムである.MA200と7日間の価格変動の組み合わせの使用は,取引方向の正確さを保証するとともに,入場の良いタイミングを把握することができる.ある一定の制限があるものの,合理的な最適化とリスク管理により,この戦略は,優れた実用価値と拡張スペースを持っています.
/*backtest
start: 2019-12-23 08:00:00
end: 2024-11-27 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("Larry Connors' Double Seven Strategy", overlay=true)
// 200-day moving average
ma200 = ta.sma(close, 200)
// Conditions for Double Seven Strategy
priceAboveMa200 = close > ma200
// Find the lowest close over the last 7 days
lowestClose7Days = ta.lowest(close, 7)
// Find the highest close over the last 7 days
highestClose7Days = ta.highest(close, 7)
// Entry and exit rules
longCondition = priceAboveMa200 and close <= lowestClose7Days
exitCondition = close >= highestClose7Days
// Enter long position
if (longCondition)
strategy.entry("Long", strategy.long)
// Exit long position
if (exitCondition)
strategy.close("Long")
// Plot moving averages
plot(ma200, "200-day MA", color=color.blue)