線性回歸函數(shù)畫線為什么不能用? [開拓者 TB]
-
咨詢內(nèi)容:
Vars
Numeric Length2(2);
Numeric Length3(3);
NumericSeries x2;
NumericSeries x3;
? ? ? ?
Begin
x2 = LinearReg(Close,Length2);
x3 = LinearReg(Close,Length3);
PlotNumeric("X2",x2);
PlotNumeric("X3",x3);
end
編譯時出現(xiàn)錯誤提示:
被調(diào)用函數(shù)的引用參數(shù)不能使用默認(rèn)值。
這是什么原因?如何解決??
?來源:CXH99.COM
-
TB技術(shù)人員:
因?yàn)長inearReg()的返回值是Bool變量。
Bool LinearReg(NumericSeries Price,Numeric Length,Numeric TgtBar,NumericRef LRSlope,NumericRef LRAngle,NumericRef LRIntercept,NumericRef LRValue)
可以通過后四個變量取得需要的數(shù)值。
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號:cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容