您好,
我這邊有"一段xscript,在其他頻率都可以,但在頻率為1分鐘時就會出現"欄位取得錯誤或不支援的欄位、頻率"的錯誤,
condition1=false;
condition2=false;
if linearregslope(momentum(close,10),10)>0
and momentum(close,10)>0
then condition1=true;
//動能夠強
value2=GetField("總成交次數","D");
print("總成交次數 ", value2 ,"Date ", Date,"H ",time);
if value2<>0
then value3=volume/value2;//單筆成交張數
print("交易量",volume,"單筆成交張數",value3);
if average(value3,5)crosses over average(value3,20)
//單子比以往大
and close>=close[1]*1.03
//單子漲幅超過3%
then condition2=true;
if condition1 and condition2 and Average(Volume[1], 100) >= 1000 // 成交量判斷
then ret=1;
麻煩小幫手幫忙確認一下,謝謝
1 評論