一个类似麟龙周线三红的选股指标

[复制链接]
查看62 | 回复0 | 2022-7-24 06:58:56 | 显示全部楼层 |阅读模式

四色谱主图
M3:MA(CLOSE,3),COLORRED,LINETHICK;
 M13:MA(CLOSE,13),COLORRED,LINETHICK;
 M34:MA(CLOSE,34),COLORRED,LINETHICK;
 X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));
 IF(M34<REF(M34,1),M34,DRAWNULL),COLORGREEN,LINETHICK;
 STICKLINE(M3>=M13 AND M34>=REF(M34,1) ,H ,L ,0.1 ,0 ),COLORRED;
 STICKLINE(M3>=M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),COLORRED;
 STICKLINE(M3>=M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,3 ,0 ),COLORRED;
 STICKLINE(M3<M13 AND M34>=REF(M34,1) ,H ,L ,0.1 ,0 ),COLORYELLOW;
 STICKLINE(M3<M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),COLORYELLOW;
 STICKLINE(M3<M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,3 ,0 ),COLORYELLOW;
 STICKLINE(M3<M13 AND M34<REF(M34,1) ,H ,L ,0.1 ,0 ),COLORGREEN;
 STICKLINE(M3<M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),COLORGREEN;
 STICKLINE(M3<M13 AND M34<REF(M34,1) AND C<O ,O ,C ,3 ,0 ),COLORGREEN;
 STICKLINE(M3>=M13 AND M34<REF(M34,1) ,H ,L ,0.1 ,0 ),COLORMAGENTA;
 STICKLINE(M3>=M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),COLORMAGENTA;
 STICKLINE(M3>=M13 AND M34<REF(M34,1) AND C<O ,O ,C ,3 ,0 ),COLORMAGENTA;
 {DRAWTEXT(X,MA(C,120)-0.13,'牛股'),COLORRED,LINETHICK3;};

==================================

中期方向线


EXP12:=EXPMA(C,12);
 EXP50:=EXPMA(C,50);
中期方向线:EXP12-EXP50,NODRAW;
 DRAWBAND(中期方向线,RGB(190,0,0),0,RGB(0,160,0));
 MB:=EXPMA(中期方向线,20),COLORWHITE;
超买线:MB+1.96*STD(中期方向线,20),COLORYELLOW;
超卖线:MB-1.96*STD(中期方向线,20),COLORCYAN;

==================================

四量图指标付图


MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:= (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORGREEN{COLORRED};
马线:=MA(牛线,6),COLORMAGENTA{COLORYELLOW};
 STICKLINE(C>牛线,2.5,4,8,0),COLORRED{COLORGREEN},LINETHICK2;
 STICKLINE(C<马线,2.5,4,8,0),COLORGREEN{COLORRED},LINETHICK2;
 STICKLINE(牛线>=C AND C>=马线,2.5,4,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
 A:=MAX(MA(C,60),MA(C,120));
 B:=MIN(MA(C,60),MA(C,120));
 STICKLINE(C>=A,0.5,2,8,0),COLORRED{COLORGREEN},LINETHICK2;
 STICKLINE(C<=B,0.5,2,8,0),COLORGREEN{COLORRED},LINETHICK2;
 STICKLINE(A>=C AND C>=B,0.5,2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
 {R:=0;}
 E:=MAX(MA(C,45),MA(C,90));
 F:=MIN(MA(C,45),MA(C,90));
 STICKLINE(C>E,-1.5,0,8,0),COLORRED{COLORGREEN},LINETHICK2;
 STICKLINE(C<F,-1.5,0,8,0),COLORGREEN{COLORRED},LINETHICK2;
 STICKLINE(E>=C AND C>=F,-1.5,0,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
 J:=MAX(MA(C,30),MA(C,60));
 K:=MIN(MA(C,30),MA(C,60));
 STICKLINE(C>J,-3.5,-2,8,0),COLORRED{COLORGREEN},LINETHICK2;
 STICKLINE(C<K,-3.5,-2,8,0),COLORGREEN{COLORRED},LINETHICK2;
 STICKLINE(J>=C AND C>=K,-3.5,-2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;

================================

麟龙周线三红的选股指标及四色谱红和四量图红的预警指标

EXP12:=EXPMA(C,12);
 EXP50:=EXPMA(C,50);
中期方向线:=EXP12-EXP50;MB:=EXPMA(中期方向线,20),COLORWHITE;
超买线:=MB+1.96*STD(中期方向线,20),COLORYELLOW;
超卖线:=MB-1.96*STD(中期方向线,20),COLORCYAN;
 XG:CROSS(中期方向线,0);

=================================

四量图指标选


MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:= (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORGREEN{COLORRED};
马线:=MA(牛线,6),COLORMAGENTA{COLORYELLOW}; A:=MAX(MA(C,60),MA(C,120));
 B:=MIN(MA(C,60),MA(C,120)); {R:=0;}
 E:=MAX(MA(C,45),MA(C,90));
 F:=MIN(MA(C,45),MA(C,90));J:=MAX(MA(C,30),MA(C,60));
 K:=MIN(MA(C,30),MA(C,60)); XG1:C>J AND C>E AND C>A AND C>牛线;

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则