動的時間伸縮法
The Dynamic Time Warping (DTW) indicator measures the similarity between two sequences of price data by aligning them in a way that minimizes their distance. It’s useful for identifying repeating patterns or aligning similar patterns even if they are stretched or shifted in time.
How it works:
-
Flexible Pattern Matching:
DTW allows for non-linear alignment, meaning it can detect patterns that are similar but not perfectly synchronized. This makes it effective for analyzing price data with irregular timing. -
Distance Calculation:
The indicator supports multiple distance metrics (absolute and squared differences) to determine how closely the current pattern matches past patterns. -
Window-Based Analysis:
It scans a defined window of price data and compares it against a smaller pattern size. This helps identify the most similar historical patterns within the specified range.
パラメータ:
-
WindowSize:
Sets the range of historical data to search through. Larger windows provide more context but can be slower to compute. -
PatternSize:
Determines the length of the pattern you’re trying to match. A smaller pattern size will pick up short-term similarities, while a larger size will focus on broader trends. -
DistanceType:
Allows you to choose how differences between points are measured—absolute differences or squared differences. This can affect the sensitivity of the indicator.
Outputs:
-
DTW Value:
The indicator produces a single value that represents the minimum DTW distance between the current sequence and the most similar historical pattern within the specified window. A lower value indicates a closer match.
What it’s good for:
The DTW indicator is ideal for traders looking to identify recurring price structures or align patterns that don’t perfectly overlap. It provides insight into the similarity of past and current price action, which can help in forecasting potential movements or confirming the presence of repeatable market behaviors.
インジケーターの可用性
このインジケーターは、MT4、MT5、TradeStation、MultiChartsに対応しています。.
条件分岐にカスタムブロックを使用する:
StrategyQuant X では、以下を使用して独自の条件を簡単に定義できます。 カスタムブロック. これにより、期間やステップなどのパラメータを設定して、戦略に合わせてインジケーターを微調整することができます。詳細については、以下のリソースを参照してください:
SQXへのカスタムインジケーターのインポート:
StrategyQuant Xにカスタム指標をインポートするには、こちらに記載されている手順に従ってください:
カスタムインジケーターやその他のスニペットのインポートとエクスポート
what am I suppose to do with the file out of the .zip file?
when I download the zip file and import to codeeditor it give a error. must be this xml file above that I don`t see in other post of you.
use CodeEditor -> Import/Export to import the sxp file from the zip file