時間ごとの変動に基づく取引戦略
概要
この戦略は,SPY市場を対象に,時間レベルでの価格変動を利用して市場の動きを判断し,ショートラインの反転取引を行う.
戦略原則
-
5日と13日の移動平均線交差を用いて,時間レベル価格の反転を判定する.
-
RSIが50を超えると,移動平均線金叉は買い信号を生成する.
-
13日平均線下を通過5日平均線,MACD差異値下を通過信号線時,売り信号が生成する。
-
ストップ・ロズとストップ・フローラインを設定し,目標利益の2倍に達したときに部分的に平衡を設定します.
-
空頭取引を選択し,このラウンドの取引が完了した後,次のラウンドの空頭に入るか否かを判断する.
-
入力パラメータは,平均線,止損停止比率などにカスタマイズできます.
優位分析
-
短線取引の機会を捉えるために,時間単位での価格変動を利用する.
-
マルチメーター・コンビネーション・検証により,信号の正確性が向上する.
-
ストップ・ストップ・ストップ戦略を設定することで,リスクをコントロールできます.
-
部分停止は収益をロックする.
-
入力パラメータは,ショートライントレーダーに適したカスタマイズ可能である.
リスク分析
-
時刻価格の波動により,誤信号が発生し,損失を招く可能性があります.
-
ストップ・ストップ・スロープの比率は正しく設定されず,早めに停止したり,長期間保持したりする可能性があります.
-
いくつかの品種のパラメータは,良好な反測効果を達成するために最適化調整が必要である.
-
オーバーフィットするリスクがある
-
取引の頻度が手数料を増加させる取引コスト
最適化の方向
-
異なるパラメータの組み合わせをテストし,最適なパラメータを探します.
-
他の指標を評価し,取引信号を補強する.
-
リスクと利益のバランスをとる ストップ・ストップ・ストップ戦略を最適化する
-
トレンドフィルターを加え,逆転取引を避ける.
-
利回りの期間を延長するために,適当な部分的な停止条件の緩和.
-
戦略に適した他の品種を評価する
要約する
この戦略は,SPYの時間レベルショートライン取引の機会を捕捉しようとしています.パラメータ最適化,信号フィルタリングなどの方法で信頼性を高め,有効なショートライン取引戦略にすることができます.
//@version=5
strategy(title="SPY 1 Hour Swing Trader", initial_capital=300000, default_qty_type=strategy.percent_of_equity, default_qty_value=15, pyramiding=0, commission_type=strategy.commission.cash_per_order, commission_value=0, overlay=true, calc_on_every_tick=false, process_orders_on_close=true, max_labels_count=500)
//The purpose of this script is to spot 1 hour pivots that indicate ~5 to 6 trading day swings.
//Results indicate that swings are held approximately 5 to 6 trading days on average, over the last 6 years.
//This indicator spots a go long opportunity when the 5 ema crosses the 13 ema on the 1 hour along with the RSI > 50.
//It also spots uses a couple different means to determine when to exit the trade. Sell condition is
//primarily when the 13 ema crosses the 5 ema and the MACD line crosses below the signal line and
//the smoothed Stoichastic appears oversold (greater than 60). Stop Losses and Take Profits are configurable
//in Inputs along with ability to include short trades plus other MACD and Stoichastic settings.
//If a stop loss is encountered the trade will close. Also once twice the expected move is encountered
//partial profits will taken and stop losses and take profits will be re-established based on most recent close- 1
