小幫手好
想知道condition的寫法,是不是有所限制,如一定要是下面寫法才行
consdition1=......
而不能寫成
if ....... then condition1=true;
我用以下的程式碼
If (date>=20200317 and date<=20200405) then condition1=true; if condition1 then ret=1;
在選股裡面,如果是用and,則進場只會是20200318之後
如果是用NOT,則進場只會是20200317之前
如果沒有用condition,寫成下面那樣,就很正常
If (date>=20200317 and date<=20200405) then ret=;
檔案已附上,請小幫手協助瞭解,謝謝


 
 
             
        
         
         
         
     
     分類
    分類
 
            
2 評論