以文本方式查看主题

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

--  作者:zygq
--  发布时间:2020/2/27 22:24:47
--  公式修改
老师你好!以下是通达信指标,请改成金字塔指示:(我导入时出现---未定义的变量:FROMOPEN)


WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VOLUME:VOL,VOLSTICK;
V5:MA(VOLUME,5);
V10:MA(VOLUME,10);
V20:MA(VOLUME,20);
V60:MA(VOLUME,60);
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买
:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED
,POINTDOT;
主卖
:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLORFFFF54
,POINTDOT;
STICKLINE(主买>0,0,主买,2,0),COLORRED;
{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}
STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;
换手:VOL/CAPITAL*100,POINTDOT;
十日换手:SUM(换手,10);
成交额(千万):AMOUNT/10000000,POINTDOT;
流通盘(亿):CAPITAL/1000000,POINTDOT;
流通市值(亿):(CAPITAL/100*C)/10000,POINTDOT,COLOR33CCFF;




--  作者:wenarm
--  发布时间:2020/2/27 22:41:02
--  
WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/OPENMINUTES(TIME),DRAWNULL),NODRAW;