以下是通达信好用的买卖操作主图指标公式源码和截图通达信好用的买卖操作主图指标公式源码: {STICKLINE(100,120,50,5,0),COLOR669900; STICKLINE(50,50,0,5,0),COLOR666600; STICKLINE(1,0,-50,5,0),COLOR006600; STICKLINE(-50,-50,-120,5,0),COLOR003300; } 趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW; DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50)); 转强:IF(趋势 50,趋势,DRAWNULL),COLORRED; 转弱:IF(趋势 50,趋势,DRAWNULL),COLORGREEN; RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55); DEA:=EMA(DIFF,6); MACD:=2*(DIFF-DEA); 转点:=IF(K DANDCCI 0ANDDIFF DEAANDMACD 0,1,0); STICKLINE(转点=1,50,50,2,0),COLORYELLOW; STICKLINE(转点=0,50,50,2,0),COLORCYAN; STICKLINE(C,90,90,1,0),COLORYELLOW; STICKLINE(C,10,10,1,0),COLORCYAN; 判断:SMA(趋势,3,1),COLORYELLOW; IF(判断 50AND趋势 判断,判断,DRAWNULL),COLORYELLOW,LINETHICK2; IF(判断 50AND趋势 判断,判断,DRAWNULL),COLORFF00FF; IF(判断 50AND趋势 判断,判断,DRAWNULL),COLORGREEN,LINETHICK2; 风险区:80,COLORFF85FF; 安全区:20,COLORYELLOW,POINTDOT; 顶部:90,COLORFFFF00; 强弱线:50,COLORGREEN,POINTDOT; DRAWICON(CROSS(趋势,判断)AND趋势 80,判断,1); DRAWICON(CROSS(趋势,顶部),顶部,2); LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100; VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR4:=SMA(VAR3,3,1); VAR5:=SMA(VAR4,3,1)+100; VAR6:=VAR5-VAR2; 趋势1:IF(VAR6 45,VAR6-45,0),COLOR00FFFF; VAR2Q:=REF(LOW,1); VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3); VAR5Q:=LLV(LOW,30); VAR6Q:=HHV(VAR4Q,30); VAR7Q:=IF(MA(CLOSE,58),1,0); VAR8Q:=EMA(IF(LOW =VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q; 火焰山:=IF(VAR8Q 100,100,VAR8Q); STICKLINE(火焰山 0,0,火焰山*1.2,3,0),COLOR4444FF; STICKLINE(火焰山 0,0,火焰山*1.2,2,0),COLOR7777FF; STICKLINE(火焰山 0,0,火焰山*1.2,1,0),COLOR9999FF; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),3,0),COLOR000033; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),2,0),COLOR000077; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),1.5,0),COLOR0000BB; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),1,0),COLOR0000DD; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),3,0),COLOR003300; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),2,0),COLOR007700; STICKLINE(REF(趋势1,1) 趋势1,趋势1,REF(趋势1,1),1,0),COLOR00DD00; 逃顶:=CROSS(82,RSI); STICKLINE(逃顶,逃顶,20,3,0),COLORFF5500; STICKLINE(逃顶,逃顶,30,2,0),COLORFF8800; STICKLINE(逃顶,逃顶,30,1,0),COLORFFAA00; STICKLINE(逃顶,逃顶,30,0.5,0),COLORFFCC00; D1:=(C+L+H)/3; D2:=EMA(D1,6); D3:=EMA(D2,5); BBUY:=CROSS(D2,D3); DRAWICON(BBUY,10,1); VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,VARR1),10,2); DRAWTEXT(CROSS(82,VARR1),35, 减 ),COLORYELLOW; 神奇线选股:(CROSS(趋势,判断)AND趋势 80),LINETHICK0; 波段选股:(BBUY),LINETHICK0; DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0, AA ,0); V1:=Abs((2*CLOSE+HIGH+LOW)/4-ma(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1)); V3:=(1+7/100)*(DMA(CLOSE,V1)); V5:=MA((LOW+HIGH+CLOSE)/3,5); 支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK1,COLORCC66FF; 阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK1,COLORGREEN; CC:IF(CURRBARSCOUNT 18,CONst(REF(C,1)),DRAWNULL),COLOR848484; 止赢:1.05*CC,COLOR0080FF; 止损:0.97*CC,COLORFFFF00; 量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100 100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW; MA4生命线:MA(C,4),COLOR00FFFF,LINETHICK3; A12二号线:MA(C,12),COLOR0080FF; A20三号线:MA(C,20),COLORRED; A60四号线:MA(C,60),LINETHICK3,COLOR00FFFF; 买:IF(MA4生命线 REF(MA4生命线,1),MA4生命线,DRAWNULL),COLORRED,LINETHICK3; 卖:IF(MA4生命线 REF(MA4生命线,1),MA4生命线,DRAWNULL),COLORFFFF00,LINETHICK3; 今日保护价:(REF(C,1)+REF(C,2)+O)/3,NODRAW; DK:=A20三号线; STICKLINE(DK =CANDCLOSE =OPEN,HIGH,LOW,0,1),COLORRED; STICKLINE(DK =CANDCLOSE =OPEN,CLOSE,OPEN,3.2,0),COLOR6600FF; STICKLINE(DK =CANDCLOSE =OPEN,CLOSE,OPEN,2.7,0),COLORDD33FF; STICKLINE(DK =CANDCLOSE =OPEN,CLOSE,OPEN,2.1,0),COLORFF55FF; STICKLINE(DK =CANDCLOSE =OPEN,CLOSE,OPEN,1.5,0),COLORFF88FF; STICKLINE(DK =CANDCLOSE =OPEN,CLOSE,OPEN,0.9,0),COLORFFAAFF; STICKLINE(DK =CANDCLOSE =OPEN,CLOSE,OPEN,0.3,0),COLORFFCCFF; STICKLINE(DK =CANDCLOSE OPEN,HIGH,LOW,0,1),COLORRED; STICKLINE(DK =CANDCLOSE OPEN,CLOSE,OPEN,3.2,0),COLOR000033; STICKLINE(DK =CANDCLOSE OPEN,CLOSE,OPEN,2.7,0),COLOR000066; STICKLINE(DK =CANDCLOSE OPEN,CLOSE,OPEN,2.1,0),COLOR000099; STICKLINE(DK =CANDCLOSE OPEN,CLOSE,OPEN,1.5,0),COLOR0000CC; STICKLINE(DK =CANDCLOSE OPEN,CLOSE,OPEN,0.9,0),COLOR0000FF; STICKLINE(DK =CANDCLOSE OPEN,CLOSE,OPEN,0.3,0),COLORCC66FF; STICKLINE(DK CANDCLOSE =OPEN,HIGH,LOW,0,1),COLORFFFF00; STICKLINE(DK CANDCLOSE =OPEN,CLOSE,OPEN,3.2,0),COLOR990000; STICKLINE(DK CANDCLOSE =OPEN,CLOSE,OPEN,2.7,0),COLORCC0000; STICKLINE(DK CANDCLOSE =OPEN,CLOSE,OPEN,2.1,0),COLORFF4400; STICKLINE(DK CANDCLOSE =OPEN,CLOSE,OPEN,1.5,0),COLORFF8800; STICKLINE(DK CANDCLOSE =OPEN,CLOSE,OPEN,0.9,0),COLORFFCC00; STICKLINE(DK CANDCLOSE =OPEN,CLOSE,OPEN,0.3,0),COLORCYAN; STICKLINE(DK CANDCLOSE OPEN,HIGH,LOW,0,1),COLORWHITE; STICKLINE(DK CANDCLOSE OPEN,CLOSE,OPEN,3.2,0),COLOR555555; STICKLINE(DK CANDCLOSE OPEN,CLOSE,OPEN,2.7,0),COLOR777777; STICKLINE(DK CANDCLOSE OPEN,CLOSE,OPEN,2.1,0),COLOR999999; STICKLINE(DK CANDCLOSE OPEN,CLOSE,OPEN,1.5,0),COLOR999999; STICKLINE(DK CANDCLOSE OPEN,CLOSE,OPEN,0.9,0),COLORDDDDDD; STICKLINE(DK CANDCLOSE OPEN,CLOSE,OPEN,0.3,0),COLORFFFFFF; ARE4:=MA(C,20);ARE5:=(C MA(C,5));ARE6:=(MA(C,5) MA(C,10));ARE7:=(C MA(C,10)); ARE8:=(MA(C,5) MA(C,20));ARE9:=(C MA(C,20));ARE10:=REF(ARE4,1);ARE11:=(ARE4 ARE10); AVX:=(((((IF(ARE5,10,(0-10))+IF(ARE6,10,(0-10)))+IF(ARE7,10,(0-10)))+IF(ARE8,10,(0-10)))+IF(ARE9,10,(0-10)))+IF(ARE11,10,(0-10))); DSLX:=(C/INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);VRE1:=MA(V,5);vrE2:=MA(V,10); 阻力位:=IF((C 200),(C*1.01),(C*1.07));阻力位1:=IF((C 10),(C*1.05),阻力位); 止损位:=IF((C 200),(C*0.99),(C*0.93));止损位1:=IF((C 10),(C*0.95),止损位); TJTS1:=ISLASTBARANDC TJTS2:=ISLASTBARANDC kdAT:=REFDATE(HHV(H,45)/1.01,DATE);{解盘位置} 解盘1:=CONST(IF(TJTS1AND((crOSS(AVX,1)AND(VRE1 =VRE2))AND(DSLX =DSLX1)),1,0)); 解盘2:=CONST(IF(TJTS1AND((CROSS(AVX,1)AND(VRE1 VRE2))AND(DSLX =DSLX1)),1,0)); 解盘3:=CONST(IF(TJTS1AND((CROSS(AVX,1)AND(VRE1 VRE2))AND(DSLX DSLX1)),1,0)); 解盘4:=CONST(IF(TJTS1AND((CROSS(AVX,1)AND(VRE1 =VRE2))AND(DSLX DSLX1)),1,0)); 解盘5:=CONST(IF(TJTS1AND((CROSS(1,AVX)AND(VRE1 =VRE2))AND(DSLX =DSLX1)),1,0)); 解盘6:=CONST(IF(TJTS1AND((CROSS(1,AVX)AND(VRE1 VRE2))AND(DSLX =DSLX1)),1,0)); 解盘7:=CONST(IF(TJTS1AND((CROSS(1,AVX)AND(VRE1 =VRE2))AND(DSLX DSLX1)),1,0)); 解盘8:=CONST(IF(TJTS1AND((CROSS(1,AVX)AND(VRE1 VRE2))AND(DSLX DSLX1)),1,0)); 解盘9:=CONST(IF(TJTS1AND((((AVX =1)AND(REF(AVX,1) 0))AND(VRE1 =VRE2))AND(DSLX =DSLX1)),1,0)); 解盘10:=CONST(IF(TJTS1AND((((AVX =1)AND(REF(AVX,1) 0))AND(VRE1 VRE2))AND(DSLX =DSLX1)),1,0)); 解盘11:=CONST(IF(TJTS1AND((((AVX =1)AND(REF(AVX,1) 0))AND(VRE1 =VRE2))AND(DSLX DSLX1)),1,0)); 解盘12:=CONST(IF(TJTS1AND((((AVX =1)AND(REF(AVX,1) 0))AND(VRE1 VRE2))AND(DSLX DSLX1)),1,0)); 解盘13:=CONST(IF(TJTS1AND((((AVX 1)AND(REF(AVX,1) 0))AND(VRE1 =VRE2))AND(DSLX =DSLX1)),1,0)); 解盘14:=CONST(IF(TJTS1AND((((AVX 1)AND(REF(AVX,1) 0))AND(VRE1 VRE2))AND(DSLX =DSLX1)),1,0)); 解盘15:=CONST(IF(TJTS1AND((((AVX 1)AND(REF(AVX,1) 0))AND(VRE1 =VRE2))AND(DSLX DSLX1)),1,0)); 解盘16:=CONST(IF(TJTS1AND((((AVX 1)AND(REF(AVX,1) 0))AND(VRE1 VRE2))AND(DSLX DSLX1)),1,0)); 解盘17:=CONST(IF(TJTS2AND(CROSS(AVX,1)AND(VRE1 =VRE2)),1,0)); 解盘18:=CONST(IF(TJTS2AND(CROSS(AVX,1)AND(VRE1 =VRE2)),1,0)); 解盘19:=CONST(IF(TJTS2AND(CROSS(AVX,1)AND(VRE1 VRE2)),1,0)); 解盘20:=CONST(IF(TJTS2AND(CROSS(AVX,1)AND(VRE1 VRE2)),1,0)); 解盘21:=CONST(IF(TJTS2AND(CROSS(1,AVX)AND(VRE1 =VRE2)),1,0)); 解盘22:=CONST(IF(TJTS2AND(CROSS(1,AVX)AND(VRE1 VRE2)),1,0)); 解盘23:=CONST(IF(TJTS2AND(((AVX =1)AND(REF(AVX,1) 0))AND(VRE1 =VRE2)),1,0)); 解盘24:=CONST(IF(TJTS2AND(((AVX =1)AND(REF(AVX,1) 0))AND(VRE1 VRE2)),1,0)); 解盘25:=CONST(IF(TJTS2AND(((AVX 1)AND(REF(AVX,1) 0))AND(VRE1 =VRE2)),1,0)); 解盘26:=CONST(IF(TJTS2AND(((AVX 1)AND(REF(AVX,1) 0))AND(VRE1 VRE2)),1,0)); 解盘文字1:=IF(解盘1=1, 该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右 , IF(解盘2=1, 该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右 , IF(解盘3=1, 该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右 , IF(解盘4=1, 该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右 , IF(解盘5=1, 该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望 , IF(解盘6=1, 该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓 , IF(解盘7=1, 该股放量下跌,走势明显偏弱,离场观望 , IF(解盘8=1, 该股缩量下跌,走势偏弱,离场观望 , IF(解盘9=1, 该股形态良好,强势明显,量能充足,可以继续持有 , IF(解盘10=1, 该股上行趋势不变,强势依然,但量能开始转弱,注意风险 , IF(解盘11=1, 该股仍然具备上涨潜力,但股性偏弱,可考虑减仓 , IF(解盘12=1, 该股走势趋弱,量能不足,减持大部分筹码 , IF(解盘13=1, 该股形态不佳,注意成交量的变化,但目前不适合参与 , IF(解盘14=1, 该股趋势不明,股价偏弱,注意量能变化,目前不宜参与 , IF(解盘15=1, 该股有走强迹象,但量能不足,趋势不明,不适合操作 , IF(解盘17=1, 大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右 , IF(解盘19=1, 大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌 , IF(解盘21=1, 大盘形态走坏,重仓者可以减去大部分仓位 , IF(解盘22=1, 大盘缩量调整,注意风险,短线清仓观望 , IF(解盘23=1, 大盘走势良好,量能理想,可以继续持有强势股 , IF(解盘24=1, 大盘形态良好,但量能稍显不足,随时准备减仓 , IF(解盘25=1, 大盘趋势不明,注意成交量变化,目前不适宜进场 , IF(解盘26=1, 大盘趋势向下,量能萎缩,不适合进场 ,DRAWNULL))))))))))))))))))))))); 解盘文字2:=IF(解盘16=1, 该股走势太弱,没有参与价值 ,IF(解盘18=1, 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎 , IF(解盘20=1, 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入 ,DRAWNULL))); DRAWTEXT(CURRBARSCOUNT=75{位置}AND(解盘1=1OR解盘2=1OR解盘3=1OR解盘4=1OR解盘5=1OR解盘6=1OR解盘7=1OR 解盘8=1OR解盘9=1OR解盘10=1OR解盘11=1OR解盘12=1OR解盘13=1OR解盘14=1OR解盘15=1OR解盘17=1OR 解盘19=1OR解盘21=1OR解盘22=1OR解盘23=1OR解盘24=1OR解盘25=1OR解盘26=1),(KDAT*0.99),解盘文字1),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=75{位置}AND(解盘16=1OR解盘18=1OR解盘20=1),IF(解盘18=1OR解盘20=1,KDAT*0.98,KDAT*0.96),解盘文字2),COLOR00FFFF; N:=150;判断高低:=3; 高:=REF(HHV(H,N),判断高低); 近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3; 最顶:=REFDATE(近期顶,DATE),COLORBLUE,LINETHICK2; 出:=最顶=HAND((C-L) (O-C)OR(O-L) (C-O)),NODRAW; STICKLINE(出,C,O,3,0),COLORGREEN; STICKLINE(出,C,O,2,0),COLORGREEN; 低:=REF(LLV(L,N),判断高低); 近期底:REFDATE(低,DATE),COLORRED,LINETHICK3; 最底:=REFDATE(近期底,DATE),COLORLIRED,LINETHICK2; 进:=最底=LAND((C+L) (O+C)OR(O+L) (C+O)),NODRAW; STICKLINE(进,C,O,3,0),COLORRED; STICKLINE(进,C,O,2,0),COLORRED; MA7:MA(C,7),COLOR0000FF; MA13:MA(C,13),COLOR0096FF; MA21:MA(C,21),COLOR00FF99; MA49:MA(C,49),COLORFF00FF; A:=BARSCOUNT(CLOSE); AH:=HHV(HIGH,200); AL:=LLV(LOW,200); B0:=(AH-AL)/40; B1:=HIGH+B0; B2:=LOW-B0; DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2.2*B0*1.1, 变盘 ),COLORRED; DRAWTEXT(IF(CROSS(69,SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100),1,0),HIGH*1.045, 警 ),COLORWHITE; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(RSI,11),L*0.99,3); VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12) 0ANDEMA(CLOSE,12)/LOW 1.15,5),LOW, 买 ),COLORFF00FF; VARA:=((AMOUNT)/(VOL))/(100); VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7); VARC:=((SUM(AMOUNT,7))/(VARA))/(100); VARD:=DMA(VARB,(VOL)/(VARC)); VARE:=((CLOSE-VARD)/(VARD))*(100); VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ:=MA(VARE,20)+STD(VARE,20); BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100); AA:=SMA(VARF,3,1); SS:=(REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA DRAWTEXT((REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA SS)ANDCROSS(84,RSI),H*1.028, 卖 ),LINETHICK7,COLORGREEN; DRAWTEXT(CROSS(84,RSI)ANDCROSS(76,VAR28),H*1.01, 出 ),LINETHICK7,COLORYELLOW; 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,13)*21+C,49); STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,1.2,0),COLORYELLOW; STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,1.2,0),COLORBLUE; V1:=EMA(CLOSE,60)-EMA(CLOSE,300); V2:=EMA(V1,300); V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; 操盘线:=SMA(V3,2,1),LINETHICK3; V5:=SMA(操盘线,2,1); DRAWICON(CROSS(操盘线,V5)ANDMA7 REF(MA7,1),L*0.987,5); DRAWICON(操盘线 REF(操盘线,1)ANDREF(操盘线,1) REF(操盘线,2)ANDMA21 REF(MA21,1)ANDREF(操盘线,1) 40ANDCROSS(V5,操盘线),H*1.01,6); STICKLINE((REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA SS)ANDCROSS(84,RSI)ANDCROSS(76,VAR28),C,O,3,0),COLORGREEN,LINETHICK2;{底位红色} STICKLINE(操盘线 REF(操盘线,1)ANDCROSS(操盘线,V5)ANDV5 50ANDMA13 REF(MA13,1),C,O,3,0),COLORMAGENTA,LINETHICK2;{底位红色};通达信好用的买卖操作主图指标公式截图