NOTEXT顶部标线:180,COLORBROWN,LINETHICK3;
NOTEXT底部标线:(-40),COLORBROWN,LINETHICK2;
X_1:="SH999999$ADVANCE"+"SZ399001$ADVANCE";
X_2:="SH999999$DECLINE"+"SZ399001$DECLINE";
X_3:=X_1/(X_2+X_1)*100;
X_4:="880006$CLOSE";
X_5:="880006$OPEN";
X_6:=X_4/(X_4+X_5)*100;
X_7:=X_6>=90;
X_8:=X_6<90 AND X_6>=80;
X_9:=X_6>=20 AND X_6<80;
X_10:=X_6<20;
STICKLINE(X_8,153,155,3,0),COLORRED;
STICKLINE(X_7,153,155,3,0),COLORMAGENTA;
STICKLINE(X_9,153,155,3,0),COLORWHITE;
STICKLINE(X_10,153,155,3,0),COLORGREEN;
X_11:=X_3>=80;
X_12:=X_3<80 AND X_3>=50;
X_13:=X_3<50 AND X_3>=20;
X_14:=X_3<=20;
STICKLINE(X_11,148,150,3,0),COLORMAGENTA;
STICKLINE(X_12,148,150,3,0),COLORRED;
STICKLINE(X_13,148,150,3,0),COLORWHITE;
STICKLINE(X_14,148,150,3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,175,'市场'),COLORGREEN;
DRAWTEXT(ISLASTBAR,155,'情绪'),COLORGREEN;
X_15:=(X_7 OR X_8)+(X_11 OR X_12)>=2;
X_16:=X_8 AND X_13 OR (X_12 AND X_9);
X_17:=(X_10 OR X_9)+(X_14 OR X_13)>=2;
DRAWTEXT(X_15,170,'↑'),COLORLIRED;
DRAWTEXT(X_17,170,'↓'),COLOR80FF00;
X_18:=LLV(LOW,21);
X_19:=HHV(HIGH,21);
X_20:=EMA((CLOSE-X_18)/(X_19-X_18)*100,6);
X_21:=EMA(0.667*REF(X_20,1)+0.333*X_20,2);
X_22:=LLV(LOW,55);
X_23:=HHV(HIGH,34);
X_24:=EMA((CLOSE-X_22)/(X_23-X_22)*100,3);
X_25:=(X_20+X_24)/2;
X_26:=EMA(0.667*REF(X_24,1)+0.333*X_20,2);
X_27:=EMA(X_25,5);
X_28:=EMA(0.667*REF(X_27,1)+0.333*X_27,2);
X_29:=LONGcrOSS(X_21,X_20,0.1);
X_30:=LONGCROSS(X_20,X_21,0.1);
X_31:=X_20>X_21;
STICKLINE(X_20
DRAWTEXT(ISLASTBAR,100,'短1'),COLORGREEN;
X_32:=(MA(CLOSE,13)+MA(CLOSE,20))/2;
X_33:=(MA(CLOSE,80)+MA(CLOSE,100))/2;
X_34:=X_33+2*STD(CLOSE,80);
X_35:=(X_32+X_34)/2;
STICKLINE(CLOSE>=X_35,84,85,3,0),COLORMAGENTA;
STICKLINE(CLOSE
X_36:=CLOSE>=X_35;
X_37:=25;
X_38:=6;
X_39:=6;
X_40:=(1+X_38/100)*MA(CLOSE,X_37);
X_41:=(1-X_39/100)*MA(CLOSE,X_37);
X_42:=(X_40+X_41)/2;
X_43:=CLOSE>=X_40;
STICKLINE(CLOSE>=X_40,69,70,3,0),COLORMAGENTA;
STICKLINE(CLOSE
STICKLINE(CLOSE
X_44:=X_43;
X_45:=EMA(EMA(CLOSE,13),13);
X_46:=(X_45-REF(X_45,1))/REF(X_45,1)*1500;
X_47:=X_46>REF(X_46,1) AND X_46>0;
X_48:=100*WINNER(CLOSE*0.95);
X_49:=X_460;
X_50:=X_48>50 AND COST(85)
X_51:=BArslAST(CROSS(X_46,50));
STICKLINE(X_47,54,55,3,0),COLORRED;
STICKLINE(X_49,54,55,3,0),COLORGREEN;
STICKLINE(X_50,54,55,3,0),COLORMAGENTA;
STICKLINE(NOT(X_49) AND NOT(X_47) AND NOT(X_50),54,55,3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,55,'高4'),COLORGREEN;
X_52:=X_50;
X_53:=(HHV(HIGH,35)-CLOSE)/(HHV(HIGH,35)-LLV(LOW,35))*100-35;
X_54:=SMA(X_53,35,1)+100;
X_55:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
X_56:=SMA(X_55,3,1);
X_57:=SMA(X_56,3,1)+100;
X_58:=X_57-X_54;
X_59:=(X_58-1)*2.5;
STICKLINE(X_59>=REF(X_59,1),38.5,40,3,0),COLORRED;
STICKLINE(X_59STICKLINE(X_59>REF(X_59,1) AND X_59>100,38.5,40,3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,40,'控5'),COLORGREEN;
X_60:=X_59>REF(X_59,1) AND X_59>100;
X_61:=(3*CLOSE+OPEN+HIGH+LOW)/6;
X_62:=EMA(X_61,12);
X_63:=EMA(X_61,36);
X_64:=EMA(X_61,108);
X_65:=EMA(X_61,250);
X_66:=(EMA(X_61,12)-REF(EMA(X_61,36),1))/REF(EMA(X_61,36),1)*150+50;
STICKLINE(X_66<50,24,25,3,0),COLORGREEN;
STICKLINE(X_66>=50 AND X_66<53,24,25,3,0),COLORRED;
STICKLINE(X_66>=53,24,25,3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,25,'控6'),COLORGREEN;
X_67:=X_66>=53;
X_68:=AMOUNT/vol/100;
X_69:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
X_70:=SUM(AMOUNT,40)/X_68/100;
X_71:=SUM(AMOUNT,80)/X_68/100;
X_72:=DMA(X_69,VOL/X_70);
X_73:=DMA(X_69,VOL/X_71);
X_74:=(CLOSE-X_72)/X_72*100+3;
X_75:=(CLOSE-X_73)/X_73*100+3;
X_76:=MAX(X_74,X_75);
X_77:=EMA(X_76,3);
STICKLINE(X_77>=0 AND X_77<5,9,10,3,0),COLORRED;
STICKLINE(X_77>=5,9,10,3,0),COLORMAGENTA;
STICKLINE(X_77<0,9,10,3,0),COLOR00FF80;
DRAWTEXT(ISLASTBAR,10,'控7'),COLORGREEN;
X_78:=X_77>=5;
X_79:=42;
X_80:=100*(HHV(HIGH,X_79)-CLOSE)/(HHV(HIGH,X_79)-LLV(LOW,X_79));
X_81:=X_80<=20;
STICKLINE(X_80>20,(-6),(-5),3,0),COLORGREEN;
STICKLINE(X_80<=20,(-6),(-5),3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,(-5),'威8'),COLORGREEN;
X_82:=X_81;
X_83:=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);
X_84:=(X_83-LLV(X_83,27))/(HHV(X_83,27)-LLV(X_83,27))*4*25;
X_85:=(X_83-LLV(X_83,9))/(HHV(X_83,9)-LLV(X_83,9))*4*25;
X_86:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
X_87:=SMA(X_86,3,1);
X_88:=SMA(X_87,3,1);
X_89:=INTPART(X_87);
X_90:=INTPART(X_88);
X_91:=X_89+X_90;
X_92:=X_91-REF(X_91,1);
X_93:=EMA(WINNER(CLOSE)*70,3);
X_94:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_95:=X_94/(X_93+X_94)*100;
X_96:=X_93/(X_93+X_94)*100;
X_97:=EMA(X_96,55);
X_98:=HHV((HIGH+LOW)/2,120);
X_99:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
X_100:=MA(CLOSE,27);
X_101:=VOL/FINANCE(7)*100;
X_102:=TMA(X_101,1-X_101,1);
X_103:=DMA((CLOSE+OPEN)/2,X_101/TMA(X_101,1-X_101,1));
X_104:=BARSLAST(CLOSE>X_103*POW(1.1,0.9));
X_105:=BARSLAST(CLOSE
X_107:=REF(X_103,BARSLAST(X_106));
X_108:=LN(CLOSE/X_107)/LN(1.1)*10;
X_109:=IF(X_108>0,BARSLAST(X_108<0 OR BARSCOUNT(CLOSE)=0),(-1)*BARSLAST(X_108>0 OR BARSCOUNT(CLOSE)=0));
X_110:=WINNER(CLOSE/1.2)*100;
X_111:=WINNER(CLOSE/1.25)*100;
X_112:=WINNER(CLOSE/1.35)*100;
X_113:=30;
X_114:=EMA(EMA(CLOSE,1),5);
X_115:=EMA(HHV(X_114,5),1);
X_116:=EMA(HHV(X_115,21),1);
X_117:=EMA(HHV(X_116,21),2);
X_118:=EMA(HHV(X_117,21),3);
X_119:=EMA(HHV(X_118,21),4);
X_120:=EMA(HHV(X_119,21),5);
X_121:=CLOSE;
X_122:=EMA(HHV(X_120,21),6);
X_123:=(HIGH+OPEN+LOW+3*CLOSE)/6;
X_124:=EMA(100-100/(1+SUM(IF(X_123>REF(X_123,1),X_123*VOL,0),14)/SUM(IF(X_123X_125:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
X_126:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
X_127:=SMA(X_126,2,1);
X_128:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
X_129:=IF(CLOSE>200,CLOSE,DMA(X_128,VOL/CAPITAL))*1.1;
X_130:=SMA(X_127,2,1);
X_131:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
X_132:=SMA(X_131,3,1);
X_133:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_134:=SMA(X_133,5,1)-8;
X_135:=X_134-X_132;
X_136:=IF(X_130>60 AND X_110>30 AND X_124>50 AND X_121>X_122 AND X_135>50,(-40),0);
X_137:=VOL;
X_138:=MA(X_137,5);
X_139:=MA(X_137,135);
X_140:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
X_141:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_140),0);
X_142:=(X_141-MA(X_141,20))/10000;
X_143:=(X_142-REF(X_142,1))/REF(X_142,1)*100;
X_144:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
X_145:=REF(EMA(X_144,3),1);
X_146:=MA((CLOSE-X_145)*10,2)*0.1;
X_147:=VOL*100/CAPITAL;
X_148:=MA(X_147,4);
X_149:=MA(X_147,9);
X_150:=MA(X_147,17);
X_151:=MA(X_147,34);
X_152:=(X_148+X_149+X_150+X_151)/4;
X_153:=VOL;
X_154:=(X_148-X_152)*30;
X_155:=(X_149-X_152)*30;
X_156:=X_150-X_152;
X_157:=X_151-X_152;
X_158:=REFDATE(HHV(X_157,108),DATE)*1.02-REFDATE(LLV(X_156,108),DATE)*20;
X_159:=(X_158+REFDATE(HHV(X_156,108),DATE))*1.02-REFDATE(LLV(X_154,108)*20,DATE);
X_160:=(X_159+REFDATE(HHV(X_155,108),DATE))*1.02-REFDATE(LLV(X_155,108)*20,DATE);
X_161:=(X_160+REFDATE(HHV(X_154,108),DATE))*1.02-REFDATE(LLV(X_146,108),DATE);
X_162:=X_108>0 AND X_84>50 AND X_99
X_164:=X_162 OR X_163;
X_165:=NOT(X_162) AND NOT(X_163);
STICKLINE(X_162,(-21),(-20),3,0),COLORRED;
STICKLINE(X_163,(-21),(-20),3,0),COLORMAGENTA;
STICKLINE(X_165,(-21),(-20),3,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,(-20),'持9'),COLORGREEN;
X_166:=X_163;
X_167:=X_31+X_36+X_44+X_52+X_60+X_67+X_78+X_82+X_166>=5 AND NOT(NOT(X_31)+X_49+NOT(X_82)+X_165>=3 AND CLOSE/MA(CLOSE,60)>1.8);
X_168:=X_31+X_36+X_44+X_52+X_60+X_67+X_78+X_82+X_166>=9;
X_169:=X_31+X_36+X_44+X_52+X_60+X_67+X_78+X_82+X_166=8;
DRAWICON(X_167,118,1),COLORMAGENTA;
DRAWICON(X_168,140,9),COLORMAGENTA;
DRAWICON(X_169,140,15),COLORMAGENTA;