咨詢內(nèi)容:
通達信中追擊反轉(zhuǎn)指標轉(zhuǎn)換為博易可識別的指標
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網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員:
如果通達信里"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')意思是一樣的,測試就會通過;
來源 程序化久久網(wǎng)