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<x_21,99,100,3,0),colorgreen; stickline(x_20>x_21,99,100,3,0),colormagenta; 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_35,84,85,3,0),colorgreen; drawtext(islastbar,85,'本2'),colorgreen; 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<x_40 and close>=x_42,69,70,3,0),colorred; stickline(close<x_42,69,70,3,0),colorgreen; drawtext(islastbar,70,'轨3'),colorgreen; 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_46<ref(x_46,1) and x_46>0; x_50:=x_48>50 and cost(85)<close and x_46>0; 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_59<ref(x_59,1),38.5,40,3,0),colorgreen; stickline(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_103*pow(1.1,(-0.9))); x_106:=cross(x_104,x_105) or cross(x_105,x_104) or barssince(x_104+1)=0 or barssince(x_105+1)=0 or barscount(close)=0; 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_123<ref(x_123,1),x_123*vol,0),14)),5); x_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_122; x_163:=x_99>x_100 and x_94<x_93 and (x_84>50 or x_84>ref(x_84,1)); 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; 
|