|
樓主 |
發表於 18-1-25 08:59
|
顯示全部樓層
底下程式可找到前40天曾發生過擠壓的股票
Parameter: squeeze_PER(120), beforeSqu(40)
Variables:i(1),j(0)
Value1 = bandwidth_MY(Close)
Value2 = Value1[0]//找尋最小值
For i = 1 To squeeze_PER-1
If Value2 > Value1[i] Then
Value2 = Value1[i]
End If
End For
Condition1 = Value1 = Value2
For j = 0 To beforeSqu
If Condition1[j] Then
FindPoint1( Value1, BottomSide, "擠壓開始")
End if
End For |
|