[原创]公式编译 逐K线模式下语法错误? [金字塔]
- 咨询内容:
IF DATATYPE=1
THEN
BEGIN//----------------1分钟K线---------------拐点ymd:=1140220; 拐点hms:=094500;VERTLINE(DATE=拐点ymd and TIME=拐点hms),colorred,LINEDOT;DRAWNUMBER(DATE=拐点ymd and TIME=拐点hms,h,0,0),align4,color808080;间隔:=6;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,6,0),align4,color808080;间隔:=9;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,9,0),align4,color808080;间隔:=12;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,12,0),align4,color808080;间隔:=14;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,14,0),align4,color808080;间隔:=7;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,7,0),align4,color808080;
- 金字塔客服:
IF DATATYPE=1
THEN
BEGIN//----------------1分钟K线---------------拐点ymd:=1140220; 拐点hms:=094500;VERTLINE(DATE=拐点ymd and TIME=拐点hms),colorred,LINEDOT;DRAWNUMBER(DATE=拐点ymd and TIME=拐点hms,h,0,0),align4,color808080;间隔:=6;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,6,0),align4,color808080;间隔:=9;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,9,0),align4,color808080;间隔:=12;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,12,0),align4,color808080;间隔:=14;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,14,0),align4,color808080;间隔:=7;pppp:=ref(date,间隔)=拐点ymd and ref(time,间隔)=拐点hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,7,0),align4,color808080;
此主题相关图片如下:qq图片20140312155820.jpg
- 用户回复:
这要编译短的几条可以显示出来用,多了就没用了。什么原因?还必须在序列计算的情况........郁闷啊!
- 网友回复:
是的,在逐k线模式下,ref不能在写if判断语句中
处理方法错误提示里面有链接
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容