關(guān)于pivot函數(shù)疑問
作者:開拓者 TB 來源:cxh99.com 發(fā)布時(shí)間:2019年06月19日
-
咨詢內(nèi)容:
我在寫雙頂,發(fā)現(xiàn)pivot函數(shù)有問題,對(duì)于如下語(yǔ)法。
Bool Pivot(NumericSeries Price,Numeric Length,Numeric LeftStrength,Numeric RightStrength,Numeric Instance,Numeric HiLo,NumericRef PivotPrice,NumericRef PivotBar)
即使我設(shè)置了LeftStrength=100,仍然能夠找到一個(gè)左邊僅僅大于幾根K線的峰值。很像是bug?
請(qǐng)問誰(shuí)碰到過類似的問題?
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)