Type/to search

時間ごとの変動に基づく取引戦略

Cryptocurrency
Created: 2023-09-20 16:50:27
Last modified: 3 years ago
1
Follow
1781
Followers

概要

この戦略は,SPY市場を対象に,時間レベルでの価格変動を利用して市場の動きを判断し,ショートラインの反転取引を行う.

戦略原則

  1. 5日と13日の移動平均線交差を用いて,時間レベル価格の反転を判定する.

  2. RSIが50を超えると,移動平均線金叉は買い信号を生成する.

  3. 13日平均線下を通過5日平均線,MACD差異値下を通過信号線時,売り信号が生成する。

  4. ストップ・ロズとストップ・フローラインを設定し,目標利益の2倍に達したときに部分的に平衡を設定します.

  5. 空頭取引を選択し,このラウンドの取引が完了した後,次のラウンドの空頭に入るか否かを判断する.

  6. 入力パラメータは,平均線,止損停止比率などにカスタマイズできます.

優位分析

  1. 短線取引の機会を捉えるために,時間単位での価格変動を利用する.

  2. マルチメーター・コンビネーション・検証により,信号の正確性が向上する.

  3. ストップ・ストップ・ストップ戦略を設定することで,リスクをコントロールできます.

  4. 部分停止は収益をロックする.

  5. 入力パラメータは,ショートライントレーダーに適したカスタマイズ可能である.

リスク分析

  1. 時刻価格の波動により,誤信号が発生し,損失を招く可能性があります.

  2. ストップ・ストップ・スロープの比率は正しく設定されず,早めに停止したり,長期間保持したりする可能性があります.

  3. いくつかの品種のパラメータは,良好な反測効果を達成するために最適化調整が必要である.

  4. オーバーフィットするリスクがある

  5. 取引の頻度が手数料を増加させる取引コスト

最適化の方向

  1. 異なるパラメータの組み合わせをテストし,最適なパラメータを探します.

  2. 他の指標を評価し,取引信号を補強する.

  3. リスクと利益のバランスをとる ストップ・ストップ・ストップ戦略を最適化する

  4. トレンドフィルターを加え,逆転取引を避ける.

  5. 利回りの期間を延長するために,適当な部分的な停止条件の緩和.

  6. 戦略に適した他の品種を評価する

要約する

この戦略は,SPYの時間レベルショートライン取引の機会を捕捉しようとしています.パラメータ最適化,信号フィルタリングなどの方法で信頼性を高め,有効なショートライン取引戦略にすることができます.

Source
Pine
//@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
Strategy parameters
Strategy parameters
Include Short Trades!
Input Stop Loss Percentage (0.02 = 2%)
Input Take Profit Percentage (0.03 = 3%)
Partial Profit Percentage in whole numbers (50 is 50%)
Fast EMA Period
Slow EMA Period
RSI Length
MACD Fast Length
MACD Slow Length
MACD Signal Length
ADX Length
Stochastic Length
Stoicastic Smooth K
Stoicastic Source
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)