|
剛剛發現一個非常實用
可幫你抓出波峰的涵式
SYNTAX | peak(ARRAY, change, n = 1) | RETURNS | ARRAY | FUNCTION | Gives the value of ARRAY n-th peak(s) ago. This uses the Zig Zag function (see Zig Zag) to determine the peaks. n =1 would return the value of the most recent peak. n=2 would return the value of the 2nd most recent peak. Caveat: this function is based on Zig-Zag indicator and may look into the future. | EXAMPLE | peak(close,5,1)
|
這應該非常符合指標設計者的需求,
只是目前還在摸索他的判斷方式,
到底怎樣才算是一個波峰哩??
|
|