以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [原创]基于PEL的概率分析 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=4579) |
-- 作者:z7c9 -- 发布时间:2010/12/25 11:39:07 -- [原创]基于PEL的概率分析 以下内容为程序代码:
1 variable:hightime=0,lowtime=0; 2 3 intradayhigh:=callstock(stklabel,vthigh,6,0); 4 intradaylow:=callstock(stklabel,vtlow,6,0); 5 6 n:=barslast(date<>ref(date,1))+1; 7 8 if time=113000 and intradayhigh=hhv(high,n) then 9 hightime:=hightime+1; 10 11 if time=113000 and intradaylow=llv(low,n) then 12 lowtime:=lowtime+1; 13 14 高点概率:rounds(hightime/(count(date<>ref(date,1),0)+1),1),linethick0; 15 低点概率:rounds(lowtime/(count(date<>ref(date,1),0)+1),1),linethick0; |