求高手将通达信代码改为博易大师可用的代码,自己改的未来函数和原版有区别。 50
D6:=BARSLAST((FILTER(D1,13)))>BARSLAST(D3) AND NOT(D3);
鬼:IF(D6,D5,D5);
R1:=BACKSET((FILTER((REF(CLOSE,7)=HHV(CLOSE,2*7+1)),7)),7+1);
R2:=REF(CLOSE,7)=LLV(CLOSE,2*7+1);
R3:=FILTER((BACKSET((FILTER(R2,7)),7+1)),7);
R4:=REF(H,BARSLAST((FILTER(R1,7))));
R5:=REF(L,BARSLAST(R3));
R6:=BARSLAST((FILTER(R1,7)))>BARSLAST(R3) AND NOT(R3);
人:IF(R6,R5,R5);
地:IF(CLOSE,R4,R4);
天:IF(C,D4,D4);
KS:=(C-MA(C,13))/MA(C,13)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;
MLS2:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02 AND C>REF(H,1) ;
VAR1:=(VOL/REF(VOL,1))>1.95 AND C>=O;
VAR2:=(VOL/REF(VOL,1))>1.95 AND C<O;
STICKLINE(VAR1,C,L,1.8,0),COLORYELLOW;
STICKLINE(VAR2,H,C,1.8,0),COLORYELLO 展开
下面这个是通达信的MACD顶底背离指标代码,请高手把它改到博弈大师里使用。
DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:EMA(DIFF,9),COLORFFFF00;
MACD:(DIFF-DEA)*2;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN;
STICKLINE(MACD=REF(MACD,1),0,MACD,1,0),COLORFF00FF;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;
多转空:=((((LLV(MACD,4)>0) AND (MACDREF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
空转多:=((((HHV(MACD,4)REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));
DRAWICON(多转空,MACD,2);
DRAWICON(空转多,MACD,1);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWTEXT(低位金叉,DEA,' 低位金叉'),COLORFF00FF;
{STICKLINE(低位金叉,0,0.3,8,0),COLORYELLOW;
DRAWICON(低位金叉,0.3,1)};
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.2,2,0),COLORFF00FF;
DR
骗子