| 【範例】 
  
    |  | 利用參數N來調整均線的數量 
 
         
          | 參數名 | 預設 | 最小 | 最大 |   
          | N | 3 | 1 | 5 |   
          | P1 | 5 | 1 | 300 |   
          | P2 | 10 | 1 | 300 |   
          | P3 | 20 | 1 | 300 |   
          | P4 | 30 | 1 | 300 |   
          | P5 | 60 | 1 | 300 |  MA1:ma(close,P1);
 if N=1 then exit;
 MA2:ma(close,P2);
 if N=2 then exit;
 MA3:ma(close,P3);
 if N=3 then exit;
 MA4:ma(close,P4);
 if N=4 then exit;
 MA5:ma(close,P5);
 |   附件: mas.alg 此文件已被下載 1021 次。
 |