以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]请老师转换成金字塔  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=87641)

--  作者:rfgvb
--  发布时间:2015/11/24 9:00:21
--  [求助]请老师转换成金字塔
input:CountL(3),CountS(3) ;
Vars:RevHigh(0),RevLow(0),TrendL(false),TrendS(false) ;

TrendL = Close > Highest(High,CountL)[1] and Low[1] = Lowest(Low,CountL)[1]
and Countif(Close[1] < Open[1],CountL) = CountL;
if TrendL then RevHigh = Highest(High,CountL)[1] ;
--  作者:jinzhe
--  发布时间:2015/11/24 9:03:21
--  
请解释一下上面的代码
--  作者:rfgvb
--  发布时间:2015/11/24 9:17:55
--  
{收盘价 > 近三根K棒最高价 且前一根K棒低点为近三根最低点 且前三根K棒收阴}
--  作者:jinzhe
--  发布时间:2015/11/24 9:19:46
--  
close>ref(hhv(h,3),1) and ref(l,1)=ref(llv(l,3),1) and ref(all(isdown,3),1)
--  作者:rfgvb
--  发布时间:2015/11/24 9:21:23
--  
IF 这条呢
--  作者:jinzhe
--  发布时间:2015/11/24 9:29:51
--  
请解释
--  作者:rfgvb
--  发布时间:2015/11/24 9:42:21
--  
就是不知道 才请教老师的
--  作者:jinzhe
--  发布时间:2015/11/24 9:48:47
--  
这些句子不是金字塔的代码,如果用户也不清楚,可以咨询下给你这段代码的人