 |
mori868
資深會員
註冊日期: Jan 2004
來 自:
文章數量: 1048 |
如何精簡
T1:="條件A" and ref(H,1)<H;
T2:="條件A" and ref(H,1)>=H and H<refx(H,1);
T2:=ref(T2,1);
T3:="條件A" and H>=refx(H,1) and refx(H,1)<refx(H,2);
T3:=ref(ref(T3,1),1);
T4:="條件A" and refx(H,1)>=refx(H,2) and refx(H,2)<refx(H,3);
T4:=ref(ref(ref(T4,1),1),1);
AQt:=T1 or T2 or T3 or T4;
DRAWICON(AQt,L,10),PXDN7;
其意思是
"條件A" 成立後 其間只取第一次ref(H,1)<H並在 " L " 顯示信號
請幫忙精簡 謝謝
|
最後由 mori868 在 2013-05-03 04:26 編輯 |
向版主報告此篇 |  |
|
2013-05-02 23:01 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18191 |
回覆: 如何精簡
引用: 最初由 mori868 發表
T1:="條件A" and ref(H,1)<H;
T2:="條件A" and ref(H,1)>=H and H<refx(H,1);
T2:=ref(T2,1);
T3:="條件A" and H>=refx(H,1) and refx(H,1)<refx(H,2);
T3:=ref(ref(T3,1),1);
T4:="條件A" and refx(H,1)>=refx(H,2) and refx(H,2)<refx(H,3);
T4:=ref(ref(ref(T4,1),1),1);
AQt:=T1 or T2 or T3 or T4;
DRAWICON(AQt,L,10),PXDN7;
其意思是
"條件A" 成立後 其間只取第一次ref(H,1)<H並在 " L " 顯示信號
請幫忙精簡 謝謝
SP:=barslast(條件A);
CK:=ref(H,1)<H;
AQt:=CK and sum(CK,SP+1)=1;
|
|
向版主報告此篇 |  |
|
2013-05-03 08:47 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|