請教 [金字塔]
- 咨詢內容:
請教各位老師一個問題,如何將交易開拓者里面的佳慶擺動指標轉為金字塔公式,代碼如下:
If(High > Low)
TmpValue = ((Close - Low) - ( High - Close))/(High - Low)*Vol;
If(CurrentBar==0)
{
ADValue = TmpValue;
}Else
{
ADValue = ADValue[1] + TmpValue;
}
COValue = XAverage(ADValue, FastCo ) - XAverage(ADValue, SlowCo); - 金字塔客服:
currentbar是啥?
- 用戶回復:
if HIGH> LOW then TmpValue := ((Close - Low) - ( High - Close))/(High - Low)*Vol;
if CurrentBar=0 then ADValue := TmpValue;else ADValue := ADValue[1] + TmpValue;
COValue := XAverage(ADValue, FastCo ) - XAverage(ADValue, SlowCo);主要是修改if語句。
XAverage 這個函數pel中沒有,如果是要去平均值的話可以使用——AVEDEV(X,N)
你的程序中還有些不符合的地方,程序不能拷過去直接用,如果需要可以直接寫出意圖,讓熱心人士直接完成您的程序功能。
[此貼子已經被作者于2011-9-13 13:40:13編輯過] - 網友回復:
主要意圖就是求佳慶值COVALUE,
ADValue = ADValue[1] + TmpValue;這句代碼不知道怎么轉到金字塔上來
- 網友回復: 求佳慶值 的方法你最好 列出來,我不太懂怎么算。
- 上一篇:一個賬戶,兩個標準版在運行兩個策略,以前…
- 下一篇:在一臺計算機上運行多個金字塔
相關文章
-
沒有相關內容