中期信号20日叠加欧奈尔追涨日和抛售日指标
以下是指数20日均线翻红点阵图,叠加追涨日(变黄)&抛售日(变蓝)指标:
DRAWTEXT(ISLASTBAR,1,' 中国平安 '),COLORWHITE;
DRAWTEXT(ISLASTBAR,2,' 深次新股 '),COLORLIGRAY;
DRAWTEXT(ISLASTBAR,3,' 创业板综 '),COLORLIGRAY;
DRAWTEXT(ISLASTBAR,4,' 创业板指 '),COLORWHITE;
DRAWTEXT(ISLASTBAR,5,' 中小板综 '),COLORWHITE;
DRAWTEXT(ISLASTBAR,6,' 中小板指 '),COLORLIGRAY;
DRAWTEXT(ISLASTBAR,7,' 深证综指 '),COLORWHITE;
DRAWTEXT(ISLASTBAR,8,' 深证成指 '),COLORWHITE;
DRAWTEXT(ISLASTBAR,9,' 上证50 '),COLORWHITE;
DRAWTEXT(ISLASTBAR,10,' 沪深300 '),COLORLIGRAY;
DRAWTEXT(ISLASTBAR,11,' 上证指数 '),COLORWHITE;
12,COLORBLACK;
A11:='SH000001$C';
A10:='SH000300$C';
A9:='SH000016$C';
A8:='399001$C';
A7:='399106$C';
A6:='399005$C';
A5:='399101$C';
A4:='399006$C';
A3:='399102$C';
A2:='399678$C';
A1:='601318$C';
B11:='SH000001$V'>REF('SH000001$V',1);
B10:='SH000300$V'>REF('SH000300$V',1);
B9:='SH000016$V'>REF('SH000016$V',1);
B8:='399001$V'>REF('399001$V',1);
B7:='399106$V'>REF('399106$V',1);
B6:='399005$V'>REF('399005$V',1);
B5:='399101$V'>REF('399101$V',1);
B4:='399006$V'>REF('399006$V',1);
B3:='399102$V'>REF('399102$V',1);
B2:='399678$V'>REF('399678$V',1);
B1:='601318$V'>REF('601318$V',1);
D11:=(A11-REF(A11,1))/REF(A11,1)*100;{涨跌幅}
D10:=(A10-REF(A10,1))/REF(A10,1)*100;{涨跌幅}
D9:=(A9-REF(A9,1))/REF(A9,1)*100;{涨跌幅}
D8:=(A8-REF(A8,1))/REF(A8,1)*100;{涨跌幅}
D7:=(A7-REF(A7,1))/REF(A7,1)*100;{涨跌幅}
D6:=(A6-REF(A6,1))/REF(A6,1)*100;{涨跌幅}
D5:=(A5-REF(A5,1))/REF(A5,1)*100;{涨跌幅}
D4:=(A4-REF(A4,1))/REF(A4,1)*100;{涨跌幅}
D3:=(A3-REF(A3,1))/REF(A3,1)*100;{涨跌幅}
D2:=(A2-REF(A2,1))/REF(A2,1)*100;{涨跌幅}
D1:=(A1-REF(A1,1))/REF(A1,1)*100;{涨跌幅}
DRAWTEXT(A11>MA(A11,20),11,'●'),COLORRED;
DRAWTEXT(A10>MA(A10,20),10,'●'),COLORRED;
DRAWTEXT(A9>MA(A9,20),9,'●'),COLORRED;
DRAWTEXT(A8>MA(A8,20),8,'●'),COLORRED;
DRAWTEXT(A7>MA(A7,20),7,'●'),COLORRED;
DRAWTEXT(A6>MA(A6,20),6,'●'),COLORRED;
DRAWTEXT(A5>MA(A5,20),5,'●'),COLORRED;
DRAWTEXT(A4>MA(A4,20),4,'●'),COLORRED;
DRAWTEXT(A3>MA(A3,20),3,'●'),COLORRED;
DRAWTEXT(A2>MA(A2,20),2,'●'),COLORRED;
DRAWTEXT(A1>MA(A1,20),1,'●'),COLORRED;
DRAWTEXT(A11<MA(A11,20),11,'●'),COLORGREEN;
DRAWTEXT(A10<MA(A10,20),10,'●'),COLORGREEN;
DRAWTEXT(A9<MA(A9,20),9,'●'),COLORGREEN;
DRAWTEXT(A8<MA(A8,20),8,'●'),COLORGREEN;
DRAWTEXT(A7<MA(A7,20),7,'●'),COLORGREEN;
DRAWTEXT(A6<MA(A6,20),6,'●'),COLORGREEN;
DRAWTEXT(A5<MA(A5,20),5,'●'),COLORGREEN;
DRAWTEXT(A4<MA(A4,20),4,'●'),COLORGREEN;
DRAWTEXT(A3<MA(A3,20),3,'●'),COLORGREEN;
DRAWTEXT(A2<MA(A2,20),2,'●'),COLORGREEN;
DRAWTEXT(A1<MA(A1,20),1,'●'),COLORGREEN;
DRAWTEXT(B11 AND D11>1.5 AND A11>MA(A11,20),11,'●'),COLORYELLOW;
DRAWTEXT(B11 AND D11>1 AND A11>MA(A11,20) AND CROSS(A11,MA(A11,50)),11,'●'),COLORYELLOW;
DRAWTEXT(B11 AND D11>1 AND A11<MA(A11,50) AND CROSS(A11,MA(A11,20)),11,'●'),COLORYELLOW;
DRAWTEXT(B10 AND D10>1.5 AND A10>MA(A10,20),10,'●'),COLORYELLOW;
DRAWTEXT(B10 AND D10>1 AND A10>MA(A10,20) AND CROSS(A10,MA(A10,50)),10,'●'),COLORYELLOW;
DRAWTEXT(B10 AND D10>1 AND A10<MA(A10,50) AND CROSS(A10,MA(A10,20)),10,'●'),COLORYELLOW;
DRAWTEXT(B9 AND D9>1.5 AND A9>MA(A9,20),9,'●'),COLORYELLOW;
DRAWTEXT(B9 AND D9>1 AND A9>MA(A9,20) AND CROSS(A9,MA(A9,50)),9,'●'),COLORYELLOW;
DRAWTEXT(B9 AND D9>1 AND A9<MA(A9,50) AND CROSS(A9,MA(A9,20)),9,'●'),COLORYELLOW;
DRAWTEXT(B8 AND D8>1.5 AND A8>MA(A8,20),8,'●'),COLORYELLOW;
DRAWTEXT(B8 AND D8>1 AND A8>MA(A8,20) AND CROSS(A8,MA(A8,50)),8,'●'),COLORYELLOW;
DRAWTEXT(B8 AND D8>1 AND A8<MA(A8,50) AND CROSS(A8,MA(A8,20)),8,'●'),COLORYELLOW;
DRAWTEXT(B7 AND D7>1.5 AND A7>MA(A7,20),7,'●'),COLORYELLOW;
DRAWTEXT(B7 AND D7>1 AND A7>MA(A7,20) AND CROSS(A7,MA(A7,50)),7,'●'),COLORYELLOW;
DRAWTEXT(B7 AND D7>1 AND A7<MA(A7,50) AND CROSS(A7,MA(A7,20)),7,'●'),COLORYELLOW;
DRAWTEXT(B6 AND D6>1.5 AND A6>MA(A6,20),6,'●'),COLORYELLOW;
DRAWTEXT(B6 AND D6>1 AND A6>MA(A6,20) AND CROSS(A6,MA(A6,50)),6,'●'),COLORYELLOW;
DRAWTEXT(B6 AND D6>1 AND A6<MA(A6,50) AND CROSS(A6,MA(A6,20)),6,'●'),COLORYELLOW;
DRAWTEXT(B5 AND D5>1.5 AND A5>MA(A5,20),5,'●'),COLORYELLOW;
DRAWTEXT(B5 AND D5>1 AND A5>MA(A5,20) AND CROSS(A5,MA(A5,50)),5,'●'),COLORYELLOW;
DRAWTEXT(B5 AND D5>1 AND A5<MA(A5,50) AND CROSS(A5,MA(A5,20)),5,'●'),COLORYELLOW;
DRAWTEXT(B4 AND D4>1.5 AND A4>MA(A4,20),4,'●'),COLORYELLOW;
DRAWTEXT(B4 AND D4>1 AND A4>MA(A4,20) AND CROSS(A4,MA(A4,50)),4,'●'),COLORYELLOW;
DRAWTEXT(B4 AND D4>1 AND A4<MA(A4,50) AND CROSS(A4,MA(A4,20)),4,'●'),COLORYELLOW;
DRAWTEXT(B3 AND D3>1.5 AND A3>MA(A3,20),3,'●'),COLORYELLOW;
DRAWTEXT(B3 AND D3>1 AND A3>MA(A3,20) AND CROSS(A3,MA(A3,50)),3,'●'),COLORYELLOW;
DRAWTEXT(B3 AND D3>1 AND A3<MA(A3,50) AND CROSS(A3,MA(A3,20)),3,'●'),COLORYELLOW;
DRAWTEXT(B2 AND D2>1.5 AND A2>MA(A2,20),2,'●'),COLORYELLOW;
DRAWTEXT(B2 AND D2>1 AND A2>MA(A2,20) AND CROSS(A2,MA(A2,50)),2,'●'),COLORYELLOW;
DRAWTEXT(B2 AND D2>1 AND A2<MA(A2,50) AND CROSS(A2,MA(A2,20)),2,'●'),COLORYELLOW;
DRAWTEXT(B1 AND D1>1.5 AND A1>MA(A1,20),1,'●'),COLORYELLOW;
DRAWTEXT(B1 AND D1>1 AND A1>MA(A1,20) AND CROSS(A1,MA(A1,50)),1,'●'),COLORYELLOW;
DRAWTEXT(B1 AND D1>1 AND A1<MA(A1,50) AND CROSS(A1,MA(A1,20)),1,'●'),COLORYELLOW;
DRAWTEXT(B11 AND D11<-1.5 AND A11>MA(A11,50),11,'●'),COLORFF9900;
DRAWTEXT(B11 AND D11<-1 AND CROSS(MA(A11,20),A11),11,'●'),COLORFF9900;
DRAWTEXT(B11 AND D11<-1 AND CROSS(MA(A11,50),A11),11,'●'),COLORFF9900;
DRAWTEXT(B10 AND D10<-1.5 AND A10>MA(A10,50),10,'●'),COLORFF9900;
DRAWTEXT(B10 AND D10<-1 AND CROSS(MA(A10,20),A10),10,'●'),COLORFF9900;
DRAWTEXT(B10 AND D10<-1 AND CROSS(MA(A10,50),A10),10,'●'),COLORFF9900;
DRAWTEXT(B9 AND D9<-1.5 AND A9>MA(A9,50),9,'●'),COLORFF9900;
DRAWTEXT(B9 AND D9<-1 AND CROSS(MA(A9,20),A9),9,'●'),COLORFF9900;
DRAWTEXT(B9 AND D9<-1 AND CROSS(MA(A9,50),A9),9,'●'),COLORFF9900;
DRAWTEXT(B8 AND D8<-1.5 AND A8>MA(A8,50),8,'●'),COLORFF9900;
DRAWTEXT(B8 AND D8<-1 AND CROSS(MA(A8,20),A8),8,'●'),COLORFF9900;
DRAWTEXT(B8 AND D8<-1 AND CROSS(MA(A8,50),A8),8,'●'),COLORFF9900;
DRAWTEXT(B7 AND D7<-1.5 AND A7>MA(A7,50),7,'●'),COLORFF9900;
DRAWTEXT(B7 AND D7<-1 AND CROSS(MA(A7,20),A7),7,'●'),COLORFF9900;
DRAWTEXT(B7 AND D7<-1 AND CROSS(MA(A7,50),A7),7,'●'),COLORFF9900;
DRAWTEXT(B6 AND D6<-1.5 AND A6>MA(A6,50),6,'●'),COLORFF9900;
DRAWTEXT(B6 AND D6<-1 AND CROSS(MA(A6,20),A6),6,'●'),COLORFF9900;
DRAWTEXT(B6 AND D6<-1 AND CROSS(MA(A6,50),A6),6,'●'),COLORFF9900;
DRAWTEXT(B5 AND D5<-1.5 AND A5>MA(A5,50),5,'●'),COLORFF9900;
DRAWTEXT(B5 AND D5<-1 AND CROSS(MA(A5,20),A5),5,'●'),COLORFF9900;
DRAWTEXT(B5 AND D5<-1 AND CROSS(MA(A5,50),A5),5,'●'),COLORFF9900;
DRAWTEXT(B4 AND D4<-1.5 AND A4>MA(A4,50),4,'●'),COLORFF9900;
DRAWTEXT(B4 AND D4<-1 AND CROSS(MA(A4,20),A4),4,'●'),COLORFF9900;
DRAWTEXT(B4 AND D4<-1 AND CROSS(MA(A4,50),A4),4,'●'),COLORFF9900;
DRAWTEXT(B3 AND D3<-1.5 AND A3>MA(A3,50),3,'●'),COLORFF9900;
DRAWTEXT(B3 AND D3<-1 AND CROSS(MA(A3,20),A3),3,'●'),COLORFF9900;
DRAWTEXT(B3 AND D3<-1 AND CROSS(MA(A3,50),A3),3,'●'),COLORFF9900;
DRAWTEXT(B2 AND D2<-1.5 AND A2>MA(A2,50),2,'●'),COLORFF9900;
DRAWTEXT(B2 AND D2<-1 AND CROSS(MA(A2,20),A2),2,'●'),COLORFF9900;
DRAWTEXT(B2 AND D2<-1 AND CROSS(MA(A2,50),A2),2,'●'),COLORFF9900;
DRAWTEXT(B1 AND D1<-1.5 AND A1>MA(A1,50),1,'●'),COLORFF9900;
DRAWTEXT(B1 AND D1<-1 AND CROSS(MA(A1,20),A1),1,'●'),COLORFF9900;
DRAWTEXT(B1 AND D1<-1 AND CROSS(MA(A1,50),A1),1,'●'),COLORFF9900;