老师这个公式提示第6行使用非法逗号是怎么回事? [文华财经]
- 咨询内容:
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),15,1)/SMA(MAX(LOW-VAR1,0),10,1),LINETHICK2;
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
LOWV:=LLV(LOW,6);
HIGHV:=HHV(HIGH,6);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);
DX1:EMA(RSV,2),COLORWHITE;
DX2:MA(DX1,2),COLORYELLOW;
DRAWTEXT(CROSS(DX1,DX2),DX1,'始');
DRAWTEXT(CROSS(DX2,DX1),DX2,'终');
- 文华技术人员:
IF改为IFELSE即可:
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),15,1)/SMA(MAX(LOW-VAR1,0),10,1),LINETHICK2;
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IFELSE(LOW<=VAR4,VAR3,0),3);
LOWV:=LLV(LOW,6);
HIGHV:=HHV(HIGH,6);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);
DX1:EMA(RSV,2),COLORWHITE; DX2:MA(DX1,2),COLORYELLOW;
DRAWTEXT(CROSS(DX1,DX2),DX1,'始');
DRAWTEXT(CROSS(DX2,DX1),DX2,'终');仅供参考
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容