通达信中追击反转指标转换为博易可识别的指标 [博易POBO]
咨询内容:
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>500,500,VAR7);
STICKLINE(VAR8>-120,0,VAR8,3,1),COLORGRAY;
STICKLINE(VAR8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLORRED;
STICKLINE(VAR8>0.1 AND VAR8<1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLOR00FFFF;
在博易里改成如下;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>500,500,VAR7);
STICKLINE(VAR8>-120,0,VAR8,3,1),COLORGRAY;
STICKLINE(VAR8>1 AND STKINDI('',0,'KDJ.J')>REF(STKINDI('',0,'KDJ.J'),1) AND REF(STKINDI('',0,'KDJ.J'),1)<REF(STKINDI('',0,'KDJ.J'),2),0,VAR8,3,0),COLORRED;
STICKLINE(VAR8>0.1 AND VAR8<1 AND STKINDI('',0,'KDJ.J')>REF(STKINDI('',0,'KDJ.J'),1) AND REF(STKINDI('',0,'KDJ.J'),1)<REF(STKINDI('',0,'KDJ.J'),2),0,VAR8,3,0),COLOR00FFFF;
如果这个"KDJ.J"表示是引用KDJ指标的J值,那么在博易平台里就改为STKINDI('',0,'KDJ.J')意思是一样的,测试就会通过; 来源 程序化久久网
通达信中追击反转指标转换为博易可识别的指标
VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>500,500,VAR7);
STICKLINE(VAR8>-120,0,VAR8,3,1),COLORGRAY;
STICKLINE(VAR8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLORRED;
STICKLINE(VAR8>0.1 AND VAR8<1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLOR00FFFF;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 如果通达信里"KDJ.J"表示是引用KDJ指标的J值,在博易里改成如下;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>500,500,VAR7);
STICKLINE(VAR8>-120,0,VAR8,3,1),COLORGRAY;
STICKLINE(VAR8>1 AND STKINDI('',0,'KDJ.J')>REF(STKINDI('',0,'KDJ.J'),1) AND REF(STKINDI('',0,'KDJ.J'),1)<REF(STKINDI('',0,'KDJ.J'),2),0,VAR8,3,0),COLORRED;
STICKLINE(VAR8>0.1 AND VAR8<1 AND STKINDI('',0,'KDJ.J')>REF(STKINDI('',0,'KDJ.J'),1) AND REF(STKINDI('',0,'KDJ.J'),1)<REF(STKINDI('',0,'KDJ.J'),2),0,VAR8,3,0),COLOR00FFFF;
如果这个"KDJ.J"表示是引用KDJ指标的J值,那么在博易平台里就改为STKINDI('',0,'KDJ.J')意思是一样的,测试就会通过; 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容