 |
cvking888
中級會員
註冊日期: Oct 2005
來 自:
文章數量: 38 |
]請問大大可以幫忙把這公是改成奇狐用指標?
請問大大可以幫忙把這公是改成奇狐用指標?
input : K(Numeric),
Max_per(Numeric)
Var : Trend(Close), Period(0)
// Trend Calculation //
Value1 = IntraDayMultipier
Condition1 = (Close >= Trend) // UpTrend
Condition2 = (Close < Trend) // DownTrend
If ((Close Cross over Trend) or (Close Cross Below Trend)) Then
Period = 0
End If
If Period < Max_per Then
If Condition1 Then
Period = Period + 1
Trend = HighestValue(Close, Period) * (1 - (K / 100) / Value1)
End If
If Condition2 Then
Period = Period + 1
Trend = LowestValue(Close, Period) * (1 + (K / 100) / Value1)
End If
Else
If Condition1 Then
Trend = HighestValue(Close, Max_per) * (1 - (K / 100) / Value1)
End If
If Condition2 Then
Trend = LowestValue(Close, Max_per) * (1 + (K / 100) / Value1)
End if
End If
NRTR = Trend
|
|
向版主報告此篇 |  |
|
2012-04-02 00:11 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|