選擇十日最高價 顯示 為什么結果不對? [飛狐交易師]
>
- 咨詢內容:
我覺得這個代碼夠簡單了,但是結果是不對的。?
想自己用交易師公式寫個10日最高價,還請官方解惑,以下是指標源碼,很簡單了。為什么返回的數字不對?
//返回10周期最高價
function HasSameV
input:
? numericseries VH;
variable:
? numericSimple tempB(0);
begin?
tempB:=ref(VH,0);
for i = 0 to 9 begin
if ref(VH,i)>=tempB ?Then Begin
tempB:=ref(VH,i);
end;
end ;
Return tempB;
end;
十日最高價:HasSameV(H);
- 網友回復: 十日最高價用 hhv 函數
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
相關文章
-
沒有相關內容