關(guān)于pivot函數(shù)疑問 [開拓者 TB]
-
咨詢內(nèi)容:
我在寫雙頂,發(fā)現(xiàn)pivot函數(shù)有問題,對于如下語法。
Bool Pivot(NumericSeries Price,Numeric Length,Numeric LeftStrength,Numeric RightStrength,Numeric Instance,Numeric HiLo,NumericRef PivotPrice,NumericRef PivotBar)
即使我設(shè)置了LeftStrength=100,仍然能夠找到一個左邊僅僅大于幾根K線的峰值。很像是bug?
請問誰碰到過類似的問題?
For i_cnt = 1 To 5
? ?? ???{
? ?? ?? ?? ?DT = False;
? ? ? ? ? ? ? ? ? ? ? ? findprepivot = false;
? ?? ?? ?? ?findprepivot = Pivot(H,Lookback,PH_leftStrength,PH_rightStrength,i_cnt,1,PreviousHighPivot,PreviousHighPivotBar);
? ?? ?? ?? ?If (
? ?? ?? ?? ?findprepivot == True
? ?? ?? ?? ?and LastHighPivot>=(PreviousHighPivot+ HighDifference_min*TRange)
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 或微信:cxhjy888 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容