 |
gtao
初級會員
註冊日期: Feb 2006
來 自:
文章數量: 22 |
[求救]无法通过
Var1:=If(CLOSE>Ref(Mov(H,Days,S),-1),1, If(CLOSE<Ref(Mov(L,Days,S),-1),-1,0));
Var2:=ValueWhen(1,Var1<>0,Var1);
Var3:=If(Var2=-1,Mov(H,Days,S),Mov(L,Days,S));
Var3;
|
|
向版主報告此篇 |  |
|
2011-02-28 19:01 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18127 |
回覆: [求救]无法通过
引用: 最初由 gtao 發表
Var1:=If(CLOSE>Ref(Mov(H,Days,S),-1),1, If(CLOSE<Ref(Mov(L,Days,S),-1),-1,0));
Var2:=ValueWhen(1,Var1<>0,Var1);
Var3:=If(Var2=-1,Mov(H,Days,S),Mov(L,Days,S));
Var3;
ValueWhen 是新版 5.1 版才會提供的函數, 詳見:
http://www.chiefox.com.tw/bbs/showt...&threadid=10651
|
|
向版主報告此篇 |  |
|
2011-03-01 09:27 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|