算法

如何通過算法辨識技術分析圖表模式?

  • May 13, 2016

我正在開發一個小型應用程序,它將提供一些用於技術分析的圖表。我是 TA 的新手,但我想知道是否有一種方法可以通過算法辨識某些模式的形成。在我讀過的大多數 TA 文獻中,作者解釋瞭如何直覺地辨識這些模式。有沒有辦法通過算法確定這些模式,例如,我可以檢查程式碼中的價格並辨識可能的頭肩模式?

正如本網站其他地方所提到的, Lo、Mamaysky 和 ​​Wang (2000)完全按照您所說的進行,即頭肩模式的算法檢測。他們的定義:

頭肩 (HS) 和倒頭肩 (IHS) 模式的特徵在於五個連續的局部極值序列 $ E_1,…,E_5 $ 這樣

$$ HS \equiv \begin{cases} E_1 \text{ is a maximum} \ E_3 > E_1, E_3 > E_5 \ E_1\text{ and }E_5\text{ are within 1.5 percent of their average} \ E_2\text{ and }E_4\text{ are within 1.5 percent of their average,} \end{cases} $$ $$ IHS \equiv \begin{cases} E_1\text{ is a minimum} \ E_3<E_1, E_3 < E_5 \ E_1\text{ and }E_5\text{ are within 1.5 percent of their average} \ E_2\text{ and }E_4\text{ are within 1.5 percent of their average.} \end{cases} $$

引用自:https://quant.stackexchange.com/questions/1937