您好 想請問以下程式碼
主頻率為3分K 跨頻率到30分K出現了問題
SetTotalBar(600);
value1 = LinearRegSlope(GetField("收盤價"),120);
value2 = LinearRegSlope(value1,120);
value3 = LinearRegSlope(GetField("收盤價","30"),20);
value4 = LinearRegSlope(value3,20);
if value1 > 0 and value2 > 0 and value3 > 0 and value4 > 0
then ret=1;
print(file("C:\print\print.log"),symbol,value1,value2,value3,value4);
跑出來的數值做檢驗 其中value1,2,3的數值都正確 只有value4的數值一直不對 不知道哪邊出了問題
還請教賜教了
謝謝
3 評論