關(guān)于pivot函數(shù)疑問(wèn) [開(kāi)拓者 TB]
-
咨詢內(nèi)容:
我在寫(xiě)雙頂,發(fā)現(xiàn)pivot函數(shù)有問(wèn)題,對(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)問(wèn)誰(shuí)碰到過(guò)類似的問(wèn)題?
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)
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 或微信:cxhjy888 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容