短线出击指标公式
B1:=MA(C,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
SMA2:=MA(B2,3);
买入:IF(LLV(MA(B2,8),3)<B2,LLV(MA(B2,8),3),B2);
IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;
IF(B2<SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK4;
卖出:HHV(MA(B2,1),13),COLORYELLOW;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=MA(VAR1,7);
VAR3:=VAR2-MA(VAR1,7/2)<0;
VAR4:=VAR2-MA(VAR1,7/2)>0;
VAR5:=BARSLAST(VAR3);
VAR6:=0-BARSLAST(VAR4);
VAR7:=IF(VAR3<=0,VAR5,VAR6);
STICKLINE(卖出>B2ANDB2>SMA2,卖出,B2,0,1),COLORLIBLUE;
STICKLINE(卖出>SMA2ANDB2<SMA2,卖出,SMA2,0,1),COLORBLUE;
VAR11:=(CLOSE*2+HIGH+LOW)/4;
VAR21:=EMA(VAR11,13)-EMA(VAR11,34);
VAR31:=EMA(VAR21,5);
STICKLINE((C>=O),OPEN,LOW,0,0),COLOR0726CA;
STICKLINE((C>=O),CLOSE,HIGH,0,0),COLOR0726CA;
STICKLINE((C<O),CLOSE,LOW,0,0),COLORDE9100;
STICKLINE((C<O),OPEN,HIGH,0,0),COLORDE9100;
STICKLINE((C<O),CLOSE,OPEN,4,0),COLORFF5B00;
STICKLINE((C<O),CLOSE,OPEN,3.4,0),COLORFF6C00;
STICKLINE((C<O),CLOSE,OPEN,2.8,0),COLORFF7B00;
STICKLINE((C<O),CLOSE,OPEN,2.2,0),COLORFF9C00;
STICKLINE((C<O),CLOSE,OPEN,1.6,0),COLORFFBE00;
STICKLINE((C<O),CLOSE,OPEN,1,0),COLORFFCC00;
STICKLINE((C<O),CLOSE,OPEN,0.3,0),COLORFFFF00;
STICKLINE((C>O),CLOSE,OPEN,4,0),COLOR070084;
STICKLINE((C>O),CLOSE,OPEN,3.4,0),COLOR0000A3;
STICKLINE((C>O),CLOSE,OPEN,2.8,0),COLOR0000B7;
STICKLINE((C>O),CLOSE,OPEN,2.2,0),COLOR0000CD;
STICKLINE((C>O),CLOSE,OPEN,1.6,0),COLOR0000E9;
STICKLINE((C>O),CLOSE,OPEN,1,0),COLOR0754E9;
STICKLINE((C>O),CLOSE,OPEN,0.5,0),COLOR076EF3;
STICKLINE((C>O),CLOSE,OPEN,0.2,0),COLOR077BF3;
VAR2A:=((CLOSE>REF(CLOSE,1))AND(CLOSE>REF(CLOSE,2)));
VAR3A:=((REF(VAR2A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR4A:=((REF(VAR3A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR5A:=((REF(VAR4A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR6A:=((REF(VAR5A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR7A:=((REF(VAR6A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR8A:=((REF(VAR7A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR9A:=((REF(VAR8A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VARAA:=((REF(VAR9A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VARBA:=((REF(VARAA,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VARCA:=((REF(VARBA,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VARDA:=((REF(VARCA,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAREAA:=((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,2)));
VARFA:=((REF(VAREAA,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR10A:=((REF(VARFA,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR11A:=((REF(VAR10A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR12A:=((REF(VAR11A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR13A:=((REF(VAR12A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR14A:=((REF(VAR13A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR15A:=((REF(VAR14A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR16A:=((REF(VAR15A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR17A:=((REF(VAR16A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR18A:=((REF(VAR17A,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));
VAR19A:=((REF(VAR18A,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));
VAR1A:=(REF((((((((((((VAREAAORVARFA)ORVAR10A)ORVAR11A)ORVAR12A)OR
VAR13A)ORVAR14A)ORVAR15A)ORVAR16A)ORVAR17A)ORVAR18A)ORVAR19A),1)ANDVAR2A);
STICKLINE(VAR1A,O,O+(C-O)/3,4,0),COLOR1029FF;
STICKLINE(VAR1A,O,O+(C-O)/3,3.4,0),COLOR1040FF;
STICKLINE(VAR1A,O,O+(C-O)/3,2.8,0),COLOR1083FF;
STICKLINE(VAR1A,O,O+(C-O)/3,2.2,0),COLOR10ABFF;
STICKLINE(VAR1A,O,O+(C-O)/3,1.6,0),COLOR10D0FF;
STICKLINE(VAR1A,O,O+(C-O)/3,1,0),COLOR10FFFF;
STICKLINE(VAR1A,O,O+(C-O)/3,0.3,0),COLOR00FFFF;
AA:=(REF((((((((((((VAR2AORVAR3A)ORVAR4A)ORVAR5A)ORVAR6A)ORVAR7A)OR
VAR8A)ORVAR9A)ORVARAA)ORVARBA)ORVARCA)ORVARDA),1)ANDVAREAA);
STICKLINE(AA,O,O+(C-O)/3,4.3,0),COLOR009900;
STICKLINE(AA,O,O+(C-O)/3,3.2,0),COLOR00AA00;
STICKLINE(AA,O,O+(C-O)/3,2.4,0),COLOR00BB00;
STICKLINE(AA,O,O+(C-O)/3,1.7,0),COLOR00CC00;
STICKLINE(AA,O,O+(C-O)/3,1.1,0),COLOR00DD00;
STICKLINE(AA,O,O+(C-O)/3,0.5,0),COLOR00EE00;
STICKLINE(AA,O,O+(C-O)/3,0.2,0),COLOR00FF00;
A13:=EMA(CLOSE,55);
A14:=MA(CLOSE,75);
A15:=EMA(A14,3);
A16:=EMA(A15,3);
A17:=(HIGH+LOW)/5;
A18:=(MA(A17,4))-(MA(A17,34));
A19:=CROSS(A18,0);
A20:=CROSS(0,A18);
A21:=BARSLAST(A19);
A22:=BARSLAST(A20);
A23:=REF(A19,1);
A24:=REF(A20,1);
A25:=BARSLAST(A23);
A26:=BARSLAST(A24);
A27:=IF((A25A27))AND(A21=(REF(A27,1)))AND(CLOSE(REF(BARSLAST(A30),1)));
AC:=AMOUNT/(VOL);
YY:=MA(AC,13);
LLL:=(C-YY)/YY*100;
MIDC:=MA(CLOSE,22);
UPPERC:=MIDC+2*STD(C,22);
LOWERC:=MIDC-2*STD(C,22);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
LIFENGCYC:=(REF(LLL,1)<-15ANDREF(BBA,1)<0ANDLLL>REF(LLL,1));
STICKLINE(LIFENGCYC,LOW*0.93,LOW*0.95,6,0)COLORRED;
STICKLINE(LIFENGCYC>0,C,O,4,0),COLORRED;
STICKLINE(LIFENGCYC>0,C,O,3.4,0),COLOR1029FF;
STICKLINE(LIFENGCYC>0,C,O,2.8,0),COLOR1040FF;
STICKLINE(LIFENGCYC>0,C,O,2.2,0),COLOR1083FF;
STICKLINE(LIFENGCYC>0,C,O,1.6,0),COLOR10ABFF;
STICKLINE(LIFENGCYC>0,C,O,1,0),COLOR10D0FF;
STICKLINE(LIFENGCYC>0,C,O,0.3,0),COLOR10FFFF;
DRAWTEXT(LIFENGCYC>0,LOW*0.98,'$'),COLORFF00FF;
DRAWTEXT(LIFENGCYC>0,LOW*0.92,'出击'),COLORFF00FF;
短线突击指标
股 价 趋 势 :=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-
2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部警戒: 10,COLORRED,LINETHICK2;
买入警戒:STICKLINE(股价趋势<=10,0,20,2,0),COLORYELLOW,LINETHICK2;
买入信号:STICKLINE(CROSS(股价趋势,10),0,30,3,0),COLORGREEN,LINETHICK5;
顶部警戒:90,COLORFFBB66,LINETHICK2;
卖出警戒:STICKLINE(股价趋势>=85,100,80,2,0),COLORGREEN,LINETHICK2;
止损出局:STICKLINE(CROSS(顶部警戒,股价趋势),100,70,3,0),COLORFFF666,LINETHICK5;
多方趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),C
OLOR8811FF;
抄底:CROSS(多方趋势,14);
逃顶:CROSS(90,多方趋势);
DRAWICON(抄底,多方趋势,1),;
DRAWICON(逃顶,多方趋势,2),;
突:=MA(LOW,2)*0.98;
突击:=MA(LOW,26)*0.84;
突击队:=REF(突,1)<突击 AND REF(突,1)<突 AND REF(突,1)<REF(突,2);
STICKLINE(突击队,0,35,6,0),COLORRED;
评论(0)