{一致加速主图源码如下}
X1:=EMA(C,7);
X2:=EMA(C,18);
X3:=(X1-X2)/X2*100;
X4:=EMA(X3,1);
X5:=EMA(C,3);
X6:=EMA(C,26);
X7:=X5-X6;
DK:EMA(EMA(EMA(C,3),3),3)+X7,COLORGREEN;
IF(X4>=REF(X4,1),DK,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(X4<=REF(X4,1),DK,DRAWNULL),COLORGREEN;
X8:=HHV(VOL,5);
X9:=O>C;
X10:=C>O;
X11:=C=O;
X12:=SUM(VOL,5)/X8;
X13:=IF(X12>0.3,1,0);
X14:=IF(X9 AND X13,VOL,0);
X15:=IF(X10 AND X13,VOL,0);
X16:=IF(X11 AND X13,VOL,0);
X17:=SUM(X15,3);
X18:=SUM(X14,3);
X19:=X17-X18;
STICKLINE(X19=X17,C,O,3.05,0),COLOR000099;
STICKLINE(X19=X17,C,O,2.2,0),COLOR0000CC;
STICKLINE(X19=X17,C,O,1.5,0),COLORRED;
STICKLINE(X19=X17,C,O,0.5,0),COLORYELLOW;
DRAWICON(X19=X17 AND REF(X19=X17,1)=0,LOW*0.98,30),COLORMAGENTA;
X20:=EMA(100*(C-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
X21:=(REF(X20,1)+REF(X20,2)+REF(X20,3))/3;
X22:=(REF(X20,1)+REF(X20,2)+REF(X20,3)+REF(X20,4)+REF(X20,5)+REF(X20,6)+REF(X20,7)+REF(X20,8)+REF(X20,9)+REF(X20,10))/10;
X23:=X20<80 AND X21<80 AND X22<80;
X24:=X20>80 AND X21>80 AND X22>80;
X25:=X22<X20;
X26:=REF(C,1);
X27:=SMA(MAX(C-X26,0),2,1)/SMA(ABS(C-X26),2,1)*100;
X28:=100*(HHV(HIGH,10)-C)/(HHV(HIGH,10)-LLV(LOW,10));
X29:=100*(HHV(HIGH,6)-C)/(HHV(HIGH,6)-LLV(LOW,6));
X30:=CROSS(X27,X29) AND X25;
X31:=X27>75 AND X29<5;
DRAWICON(X31 AND X17>X19,LOW*0.99,29),COLORYELLOW;
DRAWICON(X30,LOW*0.98,28),COLORYELLOW;
X32:=WINNER(C*0.9)*100;
X33:=MA(X32,10);
X34:=MA(X32,3);
X35:=IF(X33>X34,X34,X33);
X36:=(C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*50;
X37:=EMA(C,12)-EMA(C,26);
X38:=EMA(X37,9);
X39:=X37>X38;
X40:=(C-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
X41:=SMA(X36,3,1);
X42:=SMA(X41,3,1);
X43:=X41>X42;
X44:=REF(C,1);
X45:=SMA(MAX(C-X44,0),9,1)/SMA(ABS(C-X44),9,1)*100;
X46:=SMA(MAX(C-X44,0),26,1)/SMA(ABS(C-X44),26,1)*100;
X47:=X45>X46;
X48:=SMA(X40,3,1);
X49:=SMA(X48,3,1);
X50:=X48>X49;
X51:=(MA(C,3)+MA(C,9)+MA(C,12)+MA(C,26))/4;
X52:=C>X51;
X53:=C-REF(C,1);
X54:=100*EMA(EMA(X53,9),9)/EMA(EMA(ABS(X53),9),3);
X55:=100*EMA(EMA(X53,26),12)/EMA(EMA(ABS(X53),26),12);
X56:=X54>X55;
X57:=X39 AND X43 AND X47 AND X50 AND X52 AND X56;
X58:=EMA(EMA(C,9),9);
X59:=100*WINNER(C*0.95);
X60:=EMA(C,12)>EMA(C,50) AND EMA(C,20)>EMA(C,120);
X61:=(X58-REF(X58,1))/REF(X58,1)*1000;
X62:=X59>=50 AND COST(85)<=C AND X61>0 AND X61>REF(X61,1);
X63:=DMA((HIGH+LOW+C*2)/4,0.9);
X64:=VOL/((HIGH-LOW)*2-ABS(C-O));
X65:=IF(C>O,X64*(HIGH-LOW),IF(C<O,X64*(HIGH-O+C-LOW),VOL/2))+IF(C>O,0-X64*(HIGH-C+O-LOW),IF(C<O,0-X64*(HIGH-LOW),0-VOL/2));
X66:=X65/20/1.15;
X67:=X66*0.55+REF(X66,1)*0.33+REF(X66,2)*0.22;
X68:=EMA(X67,8);
X69:=EMA(X67,3);
X70:=X69;
X71:=MA(VOL,5);
X72:=MA(VOL,10);
X73:=X71>=X72;
X74:=X70>=0;
X75:=X74 AND X73;
X76:=X57 OR X75;
X77:=CROSS(REF(C,1),C);
X78:=WINNER(C)*100;
X79:=REF(X78,1)-X78<=5;
X80:=CROSS(X78,REF(X78,1)) AND X78<20;
X81:=X79 OR X78;
X82:=X77 AND X81;
X83:=(2*C+HIGH+LOW)/4;
X84:=LLV(LOW,5);
X85:=HHV(HIGH,5);
X86:=IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,23,0);
X87:=X86=23;
X88:=BARSLAST(X87)=1;
X89:=X86<23;
X90:=X88 AND X89;
X91:=(BARSLASTCOUNT(X86>0)=4)*30;
X92:=X90 OR X91;
X93:=EMA(VOL,13);
X94:=EMA(AMOUNT,13);
X95:=X94/X93/100;
X96:=(C-X95)/X95*100;
X97:=X96<0-18 OR X96<0-6;
X98:=X97 AND X92;
X99:=X98 OR X82;
STICKLINE(X99 AND X22<80 AND X35=X33 AND X76,LOW,O,3,0),COLORBLUE;
STICKLINE(X99 AND X22<80 AND X35=X33 AND X76,C,O,3,0),COLORMAGENTA;
X100:=REF(LOW,1);
X101:=SMA(ABS(LOW-X100),3,1)/SMA(MAX(LOW-X100,0),3,1)*100;
X102:=EMA(IF(C*1.3,X101*10,X101/10),3);
X103:=LLV(LOW,13);
X104:=HHV(X102,13);
X105:=IF(MA(C,34),1,0);
X106:=EMA(IF(LOW<=X103,(X102+X104*2)/2,0),3)/618*X105;
X107:=IF(X106>100,100,X106);
X108:=X107>15 AND X76;
X109:=X108 OR X107=100;
STICKLINE(X109,LOW,O,3,0),COLORMAGENTA;
STICKLINE(X109,C,O,3,0),COLORBLUE;
X110:=EMA(C,2);
X111:=EMA(SLOPE(C,21)*20+C,42);
X112:=IF(CROSS(X110,X111),LOW-0.02,DRAWNULL);
X113:=(LOW+HIGH+C*2)/4;
X114:=EMA(X113,14);
X115:=(X114-REF(X114,1))/REF(X114,1)*100;
X116:=IF(X115>=0,X114,DRAWNULL);
X117:=IF(CROSS(X112,0),5,0);
X118:=IF(CROSS(X116,0),10,0);
X119:=X117 AND X118;
DRAWICON(X119,LOW*0.99,1),COLORGREEN;
DRAWICON(X119,LOW*0.98,1),COLORGREEN;
X120:=REF(C,1);
X121:=SMA(MAX(C-X120,0),5,1)/SMA(ABS(C-X120),5,1)*100;
X122:=CROSS(80,X121);
DRAWICON(X122,HIGH*1.01,2),COLORGREEN;
DRAWICON(X122,HIGH*1.02,2),COLORGREEN;
X123:=SMA(MAX(C-X26,0),3,1)/SMA(ABS(C-X26),3,1)*100;
X124:=EMA(C,3);
X125:=EMA(C,21);
DRAWICON(CROSS(X124,X125),LOW*0.97,38),COLORRED;
DRAWICON(CROSS(88,X123),HIGH*1.03,39),COLORYELLOW;
X126:=8;
X127:=100*EMA(EMA(X53,X126),X126)/EMA(EMA(ABS(X53),X126),X126);
X128:=IF(LLV(X127,2)=LLV(X127,7) AND COUNT(X127<0,2) AND CROSS(X127,MA(X127,2)),1,0);
DRAWICON(FILTER(X128=1,5),LOW*0.99,7),COLORRED;
X129:=C-REF(C,1);
X130:=IF(C-REF(C,1)>=0,X129,0);
X131:=REF(C,1)-C;
X132:=IF(C-REF(C,1)<=0,X131,0);
X133:=SUM(X130,90)/SUM(X132,90);
X134:=100-100/(1+X133);
X135:=EMA(X134,21);
X136:=EMA(X135,5);
X137:=EMA(X135,3);
X138:=(C*2+HIGH+LOW)/4;
X139:=EMA(X138,13)-EMA(X138,21);
X140:=EMA(X139,3);
X141:=EMA(X139,10);
X142:=IF(X140>=X141,X140,X141);
X143:=IF(X141-X140,X141,X140);
X144:=EMA(C,7)-EMA(C,21);
X145:=EMA(0.668*REF(X144,1)+0.333*X144,1);
X146:=IF(X144>=X145,X144,X145);
X147:=IF(X145-X144,X145,X144);
X148:=X142>X143;
X149:=X142=X143;
X150:=X146>X147;
X151:=X146=X147;
X152:=X151 AND X149;
X153:=X150 AND X148;
STICKLINE(X150,HIGH,LOW,0,0),COLORRED;
STICKLINE(X151,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(X148,O,C,1,0),COLORRED;
STICKLINE(X149,O,C,1,0),COLORGREEN;
STICKLINE(X153,O,C,2,0),COLORRED;
STICKLINE(X152,O,C,2,0),COLORBLUE;
X154:=HHV(MA(HIGH,3),2);
UP:LLV(MA(HIGH,3),1),COLORRED;
DOWN:IF(X154-UP>0,UP,DRAWNULL),COLORGREEN;
X155:=MA(REF(HHV((C+LOW+O+HIGH)/4,30),1),3);
STICKLINE(REF(COUNT(C<X155,5)=5,1) AND C>X155 AND C>O,C,O,2,0),COLORYELLOW;
DRAWICON(REF(COUNT(C<X155,5)=5,1) AND C>X155 AND C>O,LOW,42),COLORRED;
X156:=MA(C,60)>REF(MA(C,60),1);
X157:=COST(50);
X158:=WINNER(C)*100>50;
X159:=CROSS(C,X157);
X160:=X156 AND X157 AND X158 AND X159 AND X150;
STICKLINE(X160,C,O,1,0),COLORMAGENTA;
DRAWICON(X160,LOW*0.99,44),COLORRED;
X161:=MA(C,10);
X162:=MA(C,54);
STICKLINE(C/REF(C,1)>=1.096 AND HIGH=C,O,C,2,0),COLORYELLOW;
X163:=EMA(C,5);
X164:=EMA(X163,0);
X165:=HHV(MA(HIGH,3),2);
X166:=LLV(MA(HIGH,3),1);
DRAWICON(X166=X165 AND REF(X165,1)>REF(X166,1) AND X150,LOW,1);
DRAWICON(X166<X165 AND REF(X166=X165,1) AND X151,HIGH*1.01,2);
X167:=MA(C,5)>MA(C,10) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>REF(MA(C,5),1);
X168:=100*(1-WINNER(C));
X169:=100-X168;
X170:=CROSS(X169,X168);
DRAWICON(X170,LOW,25);
X171:=MA(C,5);
X172:=MA(C,13);
X173:=MA(C,34);
X174:=X171>REF(X171,1) AND X172>REF(X172,1) AND X173>REF(X173,1);
X175:=EMA(C,3);
X176:=EMA(SLOPE(C,34)*5+C,21);
X177:=CROSS(X175,X176);
X178:=CROSS(X175,X176) AND X174;
X179:=X177>0;
X180:=X178>0;
X181:=MA(C,34);
X182:=X179 OR X180;
X183:=C>X181 AND REF(C,1)<X181;
X184:=CROSS(C,MA(C,250)) AND VOL>=REF(VOL,1)*2;
X185:=(C/REF(C,1)-1)*100>9.97 AND CROSS(C,MA(C,250));
X186:=X184 OR X185 OR X183;
X187:=X182 AND X170 AND X186 AND X167;
STICKLINE(X187,C,O,3.05,0),COLOR000099;
STICKLINE(X187,C,O,2.2,0),COLOR0000CC;
STICKLINE(X187,C,O,1.5,0),COLORRED;
STICKLINE(X187,C,O,0.5,0),COLORYELLOW;
VAR2:X52 OR X102 OR X94 OR X85 OR X86 OR X104 OR X149,NODRAW;
VAR1:X77 AND C/REF(C,1)>1.095 AND X80 AND X79 OR X103 OR X150 OR X152 OR X153 OR X156 OR X155 OR X154 OR X157,NODRAW;
VAR3:X97 AND X84 AND X101 AND X81,NODRAW;
一致:VAR1 AND C/REF(C,1)>1.095,NODRAW;
DRAWTEXT(TFILTER(一致,20,0),L*0.99,'←一致'),COLORYELLOW;
加速:VAR3>=1 AND C/REF(C,1)>1.095,NODRAW;
DRAWTEXT(TFILTER(X19=X17,20,0) AND 加速 ,L*0.99,'←加速'),COLORRED;
{一致加速副图源码如下}
ACB1:=100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
ACB2:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
ABC3:=MA(CLOSE,41)+MA(CLOSE,41)*10/100;
ABC4:=MA(CLOSE,23)+MA(CLOSE,23)*5/100;
ABC5:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
ABC6:=CLOSE>REF(CLOSE,1)*1.05;
MACD:=((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2;
合力加速:=(HIGH+LOW+CLOSE)/3 ;
CC:=(合力加速-MA(合力加速,14))/(0.015*AVEDEV(合力加速,14));
NOSEL:=IF((CROSS(ACB1,20) AND CROSS(ACB2,20)),0,1);
CCIB:=CROSS(CC,250) AND CCI>REF(CCI,1) AND MACD>0 AND NOSEL AND C>EMA(C,200);
CCIS:=((CROSS(ACB1,20) AND CROSS(ACB2,20)) OR (CROSS(ACB1,25) AND CROSS(ACB2,25)) OR (CROSS(ACB1,10) AND CROSS(ACB2,10))) AND ( CROSS(600,CC) OR CROSS(350,CC) OR CROSS(200,CC) OR CROSS(100,CC));
突破线:=SMA(H,14,2)*1.08 ;
一致1:=FILTER((CCIB AND C>突破线) OR (REF(CCIB,1) AND C>突破线),3),COLORYELLOW;
一致2:=CROSS(ABC5,ABC4) AND ABC6,COLORMAGENTA;
一致3:=CROSS(ABC5,ABC3) AND ABC6,COLORRED;
一致加速:=BARSLASTCOUNT((一致1 OR 一致2) OR 一致2 OR 一致3)=1;
STICKLINE(一致加速,0,2,3,0),COLORRED;
STICKLINE(一致加速,0,11,0.1,0),COLORYELLOW;
DRAWTEXT(一致加速,8,' ★一致加速★'),COLORYELLOW;
DRAWICON(一致加速,1,9);DRAWICON(一致加速,2,9);
DRAWICON(一致加速,3,9);DRAWICON(一致加速,4,9);
DRAWICON(一致加速,5,9);DRAWICON(一致加速,6,9);
DRAWICON(一致加速,7,9);
DRAWICON(一致加速,8,30);DRAWICON(一致加速,9,29);
DRAWICON(一致加速,10,28);
DRAWICON(一致加速,11.6,1);