可以請小幫手幫我看一下腳本嗎?
回測的時候完全沒有交易,我看了很久,完全不知道到底哪裡出了問題,可以請小幫手幫我看一下嗎?
input:ratio(20,"月營收年增率下限");
value1=dateValue(currentdate,"d");
condition1=false;
condition2=false;
condition1=trueall(getfield("月營收年增率", "M")>0,2);
If V<>0
and 100*Summation(getfield("關鍵券商買賣超張數", "D"),3)/Summation(V,3) >=10
and Summation(getfield("關鍵券商買賣超張數", "D"),3) > 0
then condition2=true;
if getfield("月營收年增率", "M")>=ratio
and barslast(getfield("月營收年增率", "M")>=ratio)[1]>12
and condition1
and condition2
then ret=1;
 
            
        
        
            
1 評論