短线开启上攻 彩色买入信号【指标公式】(含选股)
第一部分 副图公式 手机/电脑MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
TJ0:=(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;
TJ1:=C>TJ0;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
TJ2:=C>=A;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
TJ3:=C>E;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
TJ4:=C>J;
TJ:=TJ1 AND TJ2 AND TJ3 AND TJ4;
N:=20;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))>1,1,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))),COLORBLUE;
STICKLINE(((SAT=1 AND TJ=1 AND REF(TJ,1)1.092 AND CLOSE/REF(CLOSE,1)<1.10095;
CAIH2:=REF(LOW,BARSLAST(REF(CAIH1,1))+1);
CAIH3:=REF(CLOSE,1)
CAIH4:=REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,3)<(-5),1) OR REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)1.015;
CAIH10:=REF(CAIH1,6) OR REF(CAIH1,7) OR REF(CAIH1,8) OR REF(CAIH1,9);
CAIH11:=REF(CLOSE,1) AND REF(CLOSE,2) AND REF(CLOSE,3) AND REF(CLOSE,4);
CAIH12:=REF(CLOSE,1)
CAIH13:=REF(OPEN,1)
CAIH14:=REF(CLOSE,BARSLAST(REF(CAIH1,1))+1);
CAIH15:=REF(CLOSE*0.94,BARSLAST(REF(CAIH1,1))+1);
CAIH16:=REF(CLOSE,1)
CAIH17:=REF(CLOSE,1)>CAIH15 AND REF(CLOSE,2)>CAIH15 AND REF(CLOSE,3)>CAIH15;
CAIH18:=REF(CLOSE,1)
CAIH19:=REF(CLOSE,1)>CAIH15 AND REF(CLOSE,2)>CAIH15 AND REF(LOW,3)>CAIH15 AND REF(LOW,4)>CAIH15;
CAIH20:=REF(CLOSE,1)CAIH15 AND REF(CLOSE,2)>CAIH15 AND REF(CLOSE,3)>CAIH15 AND REF(CLOSE,4)>CAIH15;
CAIH21:=REF(CLOSE,5)/REF(CLOSE,7)<1.18 AND REF(CLOSE,5)/REF(CLOSE,25)1.03;
CAIH25:=REF(CAIH1,6) AND CAIH18 AND CAIH19 AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)1.028;
CAIH26:=REF(CLOSE,2)/REF(CLOSE,4)<1.2 AND REF(CLOSE,2)/REF(CLOSE,5)<1.3 AND REF(CLOSE,2)/REF(CLOSE,28)<1.4;
CAIH27:=REF(CLOSE,3)/REF(CLOSE,5)<1.2 AND REF(CLOSE,2)/REF(CLOSE,6)<1.3 AND REF(CLOSE,3)/REF(CLOSE,27)<1.4;
CAIH28:=REF(CLOSE,4)/REF(CLOSE,6)<1.2 AND REF(CLOSE,2)/REF(CLOSE,7)<1.3 AND REF(CLOSE,4)/REF(CLOSE,26)<1.4;
CAIH29:=REF(CLOSE,5)/REF(CLOSE,7)<1.2 AND REF(CLOSE,2)/REF(CLOSE,8)<1.3 AND REF(CLOSE,5)/REF(CLOSE,25)<1.4;
CAIH30:=REF(CLOSE,6)/REF(CLOSE,8)<1.2 AND REF(CLOSE,2)/REF(CLOSE,9)<1.3 AND REF(CLOSE,2)/REF(CLOSE,24)<1.4;
CAIH31:=REF(CAIH1,2) AND CAIH9 AND REF(CLOSE,1)OPEN;
CAIH32:=REF(CAIH1,3) AND REF(CLOSE,2)
CAIH33:=REF(CAIH1,3) AND REF(CLOSE,1)
CAIH34:=REF(CAIH1,4) AND CAIH3 AND CAIH7 AND CAIH8 AND REF(CLOSE,1)CAIH2 AND CAIH9;
CAIH35:=REF(CAIH1,4) AND REF(CLOSE
CAIH36:=REF(CAIH1,4) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,3)<(-15),1) AND REF(CLOSE,1)1.03;
CAIH37:=REF(CAIH1,4) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)<(-11),1) AND REF(CLOSE,1)1.03;
CAIH38:=REF(CAIH1,4) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,3)<(-12),1) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)1.02;
CAIH39:=REF(CAIH1,5) AND CAIH8 AND REF(CLOSE,2)
CAIH40:=REF(CAIH1,5) AND REF(CLOSE
CAIH41:=REF(CAIH1,6) OR REF(CAIH1,7) AND REF(CLOSEOPEN,1) AND REF(LOW
CAIH42:=CAIH31 OR CAIH32 OR CAIH33 OR CAIH34 OR CAIH35 OR CAIH36 OR CAIH37 OR CAIH38 OR CAIH39 OR CAIH40 OR CAIH41 AND NOT(LOW=CLOSE);
CAIH43:=FILTER(CAIH42,1);
STICKLINE(CAIH43,0.6,0.9,1,0),COLORYELLOW;
STICKLINE(CAIH43,0.3,0.6,1,0),COLORGREEN;
STICKLINE(CAIH43,0,0.3,1,0),COLORLIMAGENTA;
第二部分 选股公式
{选股公式一:彩色信号}
CAIH1:=CLOSE/REF(CLOSE,1)>1.092 AND CLOSE/REF(CLOSE,1)<1.10095;
CAIH2:=REF(LOW,BARSLAST(REF(CAIH1,1))+1);
CAIH3:=REF(CLOSE,1)
CAIH4:=REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,3)<(-5),1) OR REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)1.015;
CAIH10:=REF(CAIH1,6) OR REF(CAIH1,7) OR REF(CAIH1,8) OR REF(CAIH1,9);
CAIH11:=REF(CLOSE,1) AND REF(CLOSE,2) AND REF(CLOSE,3) AND REF(CLOSE,4);
CAIH12:=REF(CLOSE,1)
CAIH13:=REF(OPEN,1)
CAIH14:=REF(CLOSE,BARSLAST(REF(CAIH1,1))+1);
CAIH15:=REF(CLOSE*0.94,BARSLAST(REF(CAIH1,1))+1);
CAIH16:=REF(CLOSE,1)
CAIH17:=REF(CLOSE,1)>CAIH15 AND REF(CLOSE,2)>CAIH15 AND REF(CLOSE,3)>CAIH15;
CAIH18:=REF(CLOSE,1)
CAIH19:=REF(CLOSE,1)>CAIH15 AND REF(CLOSE,2)>CAIH15 AND REF(LOW,3)>CAIH15 AND REF(LOW,4)>CAIH15;
CAIH20:=REF(CLOSE,1)CAIH15 AND REF(CLOSE,2)>CAIH15 AND REF(CLOSE,3)>CAIH15 AND REF(CLOSE,4)>CAIH15;
CAIH21:=REF(CLOSE,5)/REF(CLOSE,7)<1.18 AND REF(CLOSE,5)/REF(CLOSE,25)1.03;
CAIH25:=REF(CAIH1,6) AND CAIH18 AND CAIH19 AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)1.028;
CAIH26:=REF(CLOSE,2)/REF(CLOSE,4)<1.2 AND REF(CLOSE,2)/REF(CLOSE,5)<1.3 AND REF(CLOSE,2)/REF(CLOSE,28)<1.4;
CAIH27:=REF(CLOSE,3)/REF(CLOSE,5)<1.2 AND REF(CLOSE,2)/REF(CLOSE,6)<1.3 AND REF(CLOSE,3)/REF(CLOSE,27)<1.4;
CAIH28:=REF(CLOSE,4)/REF(CLOSE,6)<1.2 AND REF(CLOSE,2)/REF(CLOSE,7)<1.3 AND REF(CLOSE,4)/REF(CLOSE,26)<1.4;
CAIH29:=REF(CLOSE,5)/REF(CLOSE,7)<1.2 AND REF(CLOSE,2)/REF(CLOSE,8)<1.3 AND REF(CLOSE,5)/REF(CLOSE,25)<1.4;
CAIH30:=REF(CLOSE,6)/REF(CLOSE,8)<1.2 AND REF(CLOSE,2)/REF(CLOSE,9)<1.3 AND REF(CLOSE,2)/REF(CLOSE,24)<1.4;
CAIH31:=REF(CAIH1,2) AND CAIH9 AND REF(CLOSE,1)OPEN;
CAIH32:=REF(CAIH1,3) AND REF(CLOSE,2)
CAIH33:=REF(CAIH1,3) AND REF(CLOSE,1)
CAIH34:=REF(CAIH1,4) AND CAIH3 AND CAIH7 AND CAIH8 AND REF(CLOSE,1)CAIH2 AND CAIH9;
CAIH35:=REF(CAIH1,4) AND REF(CLOSE
CAIH36:=REF(CAIH1,4) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,3)<(-15),1) AND REF(CLOSE,1)1.03;
CAIH37:=REF(CAIH1,4) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)<(-11),1) AND REF(CLOSE,1)1.03;
CAIH38:=REF(CAIH1,4) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,3)<(-12),1) AND REF(SUM((CLOSE-REF(CLOSE,1))/CLOSE*100,2)1.02;
CAIH39:=REF(CAIH1,5) AND CAIH8 AND REF(CLOSE,2)
CAIH40:=REF(CAIH1,5) AND REF(CLOSE
CAIH41:=REF(CAIH1,6) OR REF(CAIH1,7) AND REF(CLOSEOPEN,1) AND REF(LOW
CAIH42:=CAIH31 OR CAIH32 OR CAIH33 OR CAIH34 OR CAIH35 OR CAIH36 OR CAIH37 OR CAIH38 OR CAIH39 OR CAIH40 OR CAIH41 AND NOT(LOW=CLOSE);
CAIH43:=FILTER(CAIH42,1);
彩色信号:CAIH43;
{选股公式二:红色信号}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
TJ0:=(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;
TJ1:=C>TJ0;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
TJ2:=C>=A;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
TJ3:=C>E;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
TJ4:=C>J;
TJ:=TJ1 AND TJ2 AND TJ3 AND TJ4;
N:=20;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))>1,1,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))),COLORBLUE;
红色信号:((SAT=1 AND TJ=1 AND REF(TJ,1)<1)AND BARSCOUNT(C)),0,(0+SAT);
小手一抖,花花到手! thanks
页:
[1]