奇狐社區論壇
在這個頁面顯示本主題全部的 2 個文章

奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- [進階教學] (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=46)
-- 02. 終止公式執行 EXIT 《適用4.0版》 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=2647)


由 cgjj 在 2005-03-10 18:12 發表:

02. 終止公式執行 EXIT 《適用4.0版》

【語句】EXIT



【用途】





用於終止公式的執行

執行到此命令後會立即跳離公式,不再繼續執行後面的命令

 

【語法】





EXIT



由 cgjj 在 2005-03-10 18:15 發表:

【範例】





利用參數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);


全部時間均為台灣時間, 現在時間為10:35
在這個頁面顯示本主題全部的 2 個文章


Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.

簡愛洋行 製作 Copyright 2003-. All Rights Reserved.