看了“十年一剑588”先生的“李君壮分时系统”,感觉很有实战意义。只是各分时都要对应相应的指标,用起来有些麻烦。于是改成适合各分时的一个指标,错误之处请指正。
C/C++ Code复制内容到剪贴板
- a1:=ma(c,12);a2:=ma(c,24); a3:=ma(c,48); a4:=ma(c,144); a5:=ma(c,240); a6:=ma(c,480);
- b1:=ma(c,8); b2:=ma(c,16); b3:=ma(c,48); b4:=ma(c,80); b5:=ma(c,112); b6:=ma(c,160); b7:=ma(c,245); b8:=ma(c,320);
- c1:=ma(c,4); c2:=ma(c,8); c3:=ma(c,24); c4:=ma(c,40); c5:=ma(c,80); c6:=ma(c,160);
- d1:=ma(c,4); d2:=ma(c,12); d3:=ma(c,20); d4:=ma(c,40); d5:=ma(c,80); d6:=ma(c,120); d7:=ma(c,240);
- e1:=ma(c,5); e2:=ma(c,24); e3:=ma(c,72); e4:=ma(c,133); e5:=ma(c,200);
- wx:=ma(c,0);
- ma1:if(DATATYPE=2,a1,if(DATATYPE=3,b1,if(DATATYPE=4,c1,if(DATATYPE=5,d1,e1))));
- ma2:if(DATATYPE=2,a2,if(DATATYPE=3,b2,if(DATATYPE=4,c2,if(DATATYPE=5,d2,e2))));
- ma3:if(DATATYPE=2,a3,if(DATATYPE=3,b3,if(DATATYPE=4,c3,if(DATATYPE=5,d3,e3))));
- ma4:if(DATATYPE=2,a4,if(DATATYPE=3,b4,if(DATATYPE=4,c4,if(DATATYPE=5,d4,e4))));
- ma5:if(DATATYPE=2,a5,if(DATATYPE=3,b5,if(DATATYPE=4,c5,if(DATATYPE=5,d5,e5))));
- ma6:if(DATATYPE=2,a6,if(DATATYPE=3,b6,if(DATATYPE=4,c6,if(DATATYPE=5,d6,wx))));
- ma7:if(DATATYPE=2,wx,if(DATATYPE=3,b7,if(DATATYPE=4,wx,if(DATATYPE=5,d7,wx))));
- ma8:if(DATATYPE=3,b8,wx);
-
- DK:=if(DATATYPE=2 or DATATYPE=5,ma3,ma2);
- TJ:=if(DATATYPE=6,ma1,c);
- STICKLINE(DK<=TJ AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorred;
- STICKLINE(DK<=TJ AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorred;
- STICKLINE(DK<=TJ AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorred;
- STICKLINE(DK<=TJ AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorred;
- STICKLINE(DK>TJ AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorgreen;
- STICKLINE(DK>TJ AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorgreen;
- STICKLINE(DK>TJ AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorgreen;
- STICKLINE(DK>TJ AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorgreen;