以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  求分型代码  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=85709)

--  作者:rechard456
--  发布时间:2015/9/28 15:55:31
--  求分型代码
不用未来函数怎么建立分型,求代码
--  作者:jinzhe
--  发布时间:2015/9/28 16:07:40
--  

http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=5112&skin=0

 


--  作者:rechard456
--  发布时间:2015/9/28 16:28:23
--  

1 runmode:1; 

3 upcond:=high>ref(high,1) and ref(high,1)>ref(high,2) and high>refx(high,1) and refx(high,1)>refx(high,2); 
4 downcond:=low<ref(low,1) and ref(low,1)<ref(low,2) and low<refx(low,1) and refx(low,1)<refx(low,2); 

6 drawicon(upcond,high,1); 
7 drawicon(downcond,low,2); 
8
这个是序列模式,而且用了未来函数,请问有没有不用未来函数的

--  作者:jinzhe
--  发布时间:2015/9/28 16:31:04
--  
做不到,必须要有对未来的判断
--  作者:rechard456
--  发布时间:2015/9/28 16:34:16
--  
好的,多谢
--  作者:rechard456
--  发布时间:2015/9/28 16:35:59
--  
这段代码如果运行在逐K线模式下有影响吗,源代码是用在序列模式的
--  作者:jinzhe
--  发布时间:2015/9/28 16:49:53
--  
有未来的就不能用在逐k线里面
--  作者:rechard456
--  发布时间:2015/9/28 16:51:46
--  
那就意味着逐K线模式下没法写分型吗
--  作者:jinzhe
--  发布时间:2015/9/28 16:55:04
--  
以现在来看是不行
--  作者:rechard456
--  发布时间:2015/9/28 16:59:19
--  
那逐K线模式只能通过建立模型的方式匹配行情了吗