通达信指标公式源码 财神到的主图源码

合集下载

通达信指标公式源码顶底先知 主图指标 源码

通达信指标公式源码顶底先知 主图指标 源码

VV:=(O+C+L+H)/4;Y311:=IFF(CURRBARSCOUNT=1,(XMA(VV,3)*3-MA(VV,2)+VV)/3,XMA(VV,3)); Y312:=IFF(CURRBARSCOUNT=1,(XMA(Y311,3)*3-MA(Y311,2)+Y311)/3,XMA( Y311,3));Y313:=IFF(CURRBARSCOUNT=1,(XMA(Y312,3)*3-MA(Y312,2)+Y312)/3,XMA( Y312,3));Y314:=IFF(CURRBARSCOUNT=1,(XMA(Y313,3)*3-MA(Y313,2)+Y313)/3,XMA( Y313,3));Y315:=IFF(CURRBARSCOUNT=1,(XMA(Y314,3)*3-MA(Y314,2)+Y314)/3,XMA( Y314,3));Y316:=IFF(CURRBARSCOUNT=1,(XMA(Y315,3)*3-MA(Y315,2)+Y315)/3,XMA( Y315,3));Y317:=IFF(CURRBARSCOUNT=1,(XMA(Y316,3)*3-MA(Y316,2)+Y316)/3,XMA( Y316,3));Y318:=IFF(CURRBARSCOUNT=1,(XMA(Y317,3)*3-MA(Y317,2)+Y317)/3,XMA( Y317,3));Y319:=IFF(CURRBARSCOUNT=1,(XMA(Y318,3)*3-MA(Y318,2)+Y318)/3,XMA( Y318,3));Y320:=IFF(CURRBARSCOUNT=1,(XMA(Y319,3)*3-MA(Y319,2)+Y319)/3,XMA( Y319,3));Y321:=IFF(CURRBARSCOUNT=1,(XMA(Y320,3)*3-MA(Y320,2)+Y320)/3,XMA( Y320,3));Y322:=IFF(CURRBARSCOUNT=1,(XMA(Y321,3)*3-MA(Y321,2)+Y321)/3,XMA(Y323:=IFF(CURRBARSCOUNT=1,(XMA(Y322,3)*3-MA(Y322,2)+Y322)/3,XMA( Y322,3));Y324:=IFF(CURRBARSCOUNT=1,(XMA(Y323,3)*3-MA(Y323,2)+Y323)/3,XMA( Y323,3));Y325:=IFF(CURRBARSCOUNT=1,(XMA(Y324,3)*3-MA(Y324,2)+Y324)/3,XMA( Y324,3));Y326:=IFF(CURRBARSCOUNT=1,(XMA(Y325,3)*3-MA(Y325,2)+Y325)/3,XMA( Y325,3));Y327:=IFF(CURRBARSCOUNT=1,(XMA(Y326,3)*3-MA(Y326,2)+Y326)/3,XMA( Y326,3));Y328:=IFF(CURRBARSCOUNT=1,(XMA(Y327,3)*3-MA(Y327,2)+Y327)/3,XMA( Y327,3));Y329:=IFF(CURRBARSCOUNT=1,(XMA(Y328,3)*3-MA(Y328,2)+Y328)/3,XMA( Y328,3));Y330:=IFF(CURRBARSCOUNT=1,(XMA(Y329,3)*3-MA(Y329,2)+Y329)/3,XMA( Y329,3));Y331:=IFF(CURRBARSCOUNT=1,(XMA(Y330,3)*3-MA(Y330,2)+Y330)/3,XMA( Y330,3));Y332:=IFF(CURRBARSCOUNT=1,(XMA(Y331,3)*3-MA(Y331,2)+Y331)/3,XMA( Y331,3));Y333:=IFF(CURRBARSCOUNT=1,(XMA(Y332,3)*3-MA(Y332,2)+Y332)/3,XMA( Y332,3));Y334:=IFF(CURRBARSCOUNT=1,(XMA(Y333,3)*3-MA(Y333,2)+Y333)/3,XMA( Y333,3));Y335:=IFF(CURRBARSCOUNT=1,(XMA(Y334,3)*3-MA(Y334,2)+Y334)/3,XMA( Y334,3));Y336:=IFF(CURRBARSCOUNT=1,(XMA(Y335,3)*3-MA(Y335,2)+Y335)/3,XMA( Y335,3));Y337:=IFF(CURRBARSCOUNT=1,(XMA(Y336,3)*3-MA(Y336,2)+Y336)/3,XMA( Y336,3));Y338:=IFF(CURRBARSCOUNT=1,(XMA(Y337,3)*3-MA(Y337,2)+Y337)/3,XMA( Y337,3));Y339:=IFF(CURRBARSCOUNT=1,(XMA(Y338,3)*3-MA(Y338,2)+Y338)/3,XMA( Y338,3));Y340:=IFF(CURRBARSCOUNT=1,(XMA(Y339,3)*3-MA(Y339,2)+Y339)/3,XMA( Y339,3));Y341:=IFF(CURRBARSCOUNT=1,(XMA(Y340,3)*3-MA(Y340,2)+Y340)/3,XMA( Y340,3));Y342:=IFF(CURRBARSCOUNT=1,(XMA(Y341,3)*3-MA(Y341,2)+Y341)/3,XMA( Y341,3));Y343:=IFF(CURRBARSCOUNT=1,(XMA(Y342,3)*3-MA(Y342,2)+Y342)/3,XMA( Y342,3));Y344:=IFF(CURRBARSCOUNT=1,(XMA(Y343,3)*3-MA(Y343,2)+Y343)/3,XMA(Y345:=IFF(CURRBARSCOUNT=1,(XMA(Y344,3)*3-MA(Y344,2)+Y344)/3,XMA( Y344,3));Y346:=IFF(CURRBARSCOUNT=1,(XMA(Y345,3)*3-MA(Y345,2)+Y345)/3,XMA( Y345,3));Y347:=IFF(CURRBARSCOUNT=1,(XMA(Y346,3)*3-MA(Y346,2)+Y346)/3,XMA( Y346,3));Y348:=IFF(CURRBARSCOUNT=1,(XMA(Y347,3)*3-MA(Y347,2)+Y347)/3,XMA( Y347,3));Y349:=IFF(CURRBARSCOUNT=1,(XMA(Y348,3)*3-MA(Y348,2)+Y348)/3,XMA( Y348,3));Y350:=IFF(CURRBARSCOUNT=1,(XMA(Y349,3)*3-MA(Y349,2)+Y349)/3,XMA( Y349,3));Y351:=IFF(CURRBARSCOUNT=1,(XMA(Y350,3)*3-MA(Y350,2)+Y350)/3,XMA( Y350,3));Y352:=IFF(CURRBARSCOUNT=1,(XMA(Y351,3)*3-MA(Y351,2)+Y351)/3,XMA( Y351,3));Y353:=IFF(CURRBARSCOUNT=1,(XMA(Y352,3)*3-MA(Y352,2)+Y352)/3,XMA( Y352,3));Y354:=IFF(CURRBARSCOUNT=1,(XMA(Y353,3)*3-MA(Y353,2)+Y353)/3,XMA( Y353,3));Y355:=IFF(CURRBARSCOUNT=1,(XMA(Y354,3)*3-MA(Y354,2)+Y354)/3,XMA( Y354,3));Y356:=IFF(CURRBARSCOUNT=1,(XMA(Y355,3)*3-MA(Y355,2)+Y355)/3,XMA( Y355,3));Y357:=IFF(CURRBARSCOUNT=1,(XMA(Y356,3)*3-MA(Y356,2)+Y356)/3,XMA( Y356,3));Y358:=IFF(CURRBARSCOUNT=1,(XMA(Y357,3)*3-MA(Y357,2)+Y357)/3,XMA( Y357,3));Y359:=IFF(CURRBARSCOUNT=1,(XMA(Y358,3)*3-MA(Y358,2)+Y358)/3,XMA( Y358,3));Y360:=IFF(CURRBARSCOUNT=1,(XMA(Y359,3)*3-MA(Y359,2)+Y359)/3,XMA( Y359,3));Y361:=IFF(CURRBARSCOUNT=1,(XMA(Y360,3)*3-MA(Y360,2)+Y360)/3,XMA( Y360,3));Y362:=IFF(CURRBARSCOUNT=1,(XMA(Y361,3)*3-MA(Y361,2)+Y361)/3,XMA( Y361,3));Y363:=IFF(CURRBARSCOUNT=1,(XMA(Y362,3)*3-MA(Y362,2)+Y362)/3,XMA( Y362,3));Y364:=IFF(CURRBARSCOUNT=1,(XMA(Y363,3)*3-MA(Y363,2)+Y363)/3,XMA( Y363,3));Y365:=IFF(CURRBARSCOUNT=1,(XMA(Y364,3)*3-MA(Y364,2)+Y364)/3,XMA( Y364,3));Y366:=IFF(CURRBARSCOUNT=1,(XMA(Y365,3)*3-MA(Y365,2)+Y365)/3,XMA(Y367:=IFF(CURRBARSCOUNT=1,(XMA(Y366,3)*3-MA(Y366,2)+Y366)/3,XMA( Y366,3));Y368:=IFF(CURRBARSCOUNT=1,(XMA(Y367,3)*3-MA(Y367,2)+Y367)/3,XMA( Y367,3));Y369:=IFF(CURRBARSCOUNT=1,(XMA(Y368,3)*3-MA(Y368,2)+Y368)/3,XMA( Y368,3));Y370:=IFF(CURRBARSCOUNT=1,(XMA(Y369,3)*3-MA(Y369,2)+Y369)/3,XMA( Y369,3));Y371:=IFF(CURRBARSCOUNT=1,(XMA(Y370,3)*3-MA(Y370,2)+Y370)/3,XMA( Y370,3));Y372:=IFF(CURRBARSCOUNT=1,(XMA(Y371,3)*3-MA(Y371,2)+Y371)/3,XMA( Y371,3));Y373:=IFF(CURRBARSCOUNT=1,(XMA(Y372,3)*3-MA(Y372,2)+Y372)/3,XMA( Y372,3));Y374:=IFF(CURRBARSCOUNT=1,(XMA(Y373,3)*3-MA(Y373,2)+Y373)/3,XMA( Y373,3));Y375:=IFF(CURRBARSCOUNT=1,(XMA(Y374,3)*3-MA(Y374,2)+Y374)/3,XMA( Y374,3));Y376:=IFF(CURRBARSCOUNT=1,(XMA(Y375,3)*3-MA(Y375,2)+Y375)/3,XMA( Y375,3));Y377:=IFF(CURRBARSCOUNT=1,(XMA(Y376,3)*3-MA(Y376,2)+Y376)/3,XMA( Y376,3));Y378:=IFF(CURRBARSCOUNT=1,(XMA(Y377,3)*3-MA(Y377,2)+Y377)/3,XMA( Y377,3));Y379:=IFF(CURRBARSCOUNT=1,(XMA(Y378,3)*3-MA(Y378,2)+Y378)/3,XMA( Y378,3));Y380:=IFF(CURRBARSCOUNT=1,(XMA(Y379,3)*3-MA(Y379,2)+Y379)/3,XMA( Y379,3));Y381:=IFF(CURRBARSCOUNT=1,(XMA(Y380,3)*3-MA(Y380,2)+Y380)/3,XMA( Y380,3));Y382:=IFF(CURRBARSCOUNT=1,(XMA(Y381,3)*3-MA(Y381,2)+Y381)/3,XMA( Y381,3));Y383:=IFF(CURRBARSCOUNT=1,(XMA(Y382,3)*3-MA(Y382,2)+Y382)/3,XMA( Y382,3));Y384:=IFF(CURRBARSCOUNT=1,(XMA(Y383,3)*3-MA(Y383,2)+Y383)/3,XMA( Y383,3));Y385:=IFF(CURRBARSCOUNT=1,(XMA(Y384,3)*3-MA(Y384,2)+Y384)/3,XMA( Y384,3));Y386:=IFF(CURRBARSCOUNT=1,(XMA(Y385,3)*3-MA(Y385,2)+Y385)/3,XMA( Y385,3));Y387:=IFF(CURRBARSCOUNT=1,(XMA(Y386,3)*3-MA(Y386,2)+Y386)/3,XMA( Y386,3));Y388:=IFF(CURRBARSCOUNT=1,(XMA(Y387,3)*3-MA(Y387,2)+Y387)/3,XMA(Y389:=IFF(CURRBARSCOUNT=1,(XMA(Y388,3)*3-MA(Y388,2)+Y388)/3,XMA( Y388,3));Y390:=IFF(CURRBARSCOUNT=1,(XMA(Y389,3)*3-MA(Y389,2)+Y389)/3,XMA( Y389,3));Y391:=IFF(CURRBARSCOUNT=1,(XMA(Y390,3)*3-MA(Y390,2)+Y390)/3,XMA( Y390,3));Y392:=IFF(CURRBARSCOUNT=1,(XMA(Y391,3)*3-MA(Y391,2)+Y391)/3,XMA( Y391,3));Y393:=IFF(CURRBARSCOUNT=1,(XMA(Y392,3)*3-MA(Y392,2)+Y392)/3,XMA( Y392,3));Y394:=IFF(CURRBARSCOUNT=1,(XMA(Y393,3)*3-MA(Y393,2)+Y393)/3,XMA( Y393,3));Y395:=IFF(CURRBARSCOUNT=1,(XMA(Y394,3)*3-MA(Y394,2)+Y394)/3,XMA( Y394,3));N:= 200 ; M:= 13;{DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'12',0)};DRAWKLINE(H,O,L,C);股价96:=Y395;增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1);X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.5*REF(股价96,1)+增幅96)/3;Y396:=IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高险区2:Y396*1.125,COLORLIRED,COLORFF0000;高险区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,COLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4 OR WSR5;WSR8:=WSR7 AND FILTER(WSR7,5);WSR10:DRAWICON(WSR8,L-0.01,1);WSR9:=WSR6 AND FILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1);W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1); XG:=W1 OR W2;VAR1:=AMOUNT/VOL/7;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,10)/VAR1/7;VAR4:=DMA(VAR2,VOL/VAR3);VAR5:=(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;XG1:=CROSS(VAR5,MA(VAR5,2)) AND VAR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);XG3:=XG AND XG1 AND L<良机区1;WSR13:=O>良机区3 AND L<良机区1 OR XG3;DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14 ANDFILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区3 AND H>高风区2;DRAWICON(WSR15 ANDFILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);WSR19:=(WSR16 + WSR17 + WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20 + WSR21 + WSR22)/3;WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25 + WSR26 + WSR27)/3;WSR29:=(C-MA(C,6))/MA(C,6);WSR30:=(C-MA(C,12))/MA(C,12);WSR31:=(C-MA(C,24))/MA(C,24);WSR32:=(WSR29 + WSR30 + WSR31)/3;WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR37:=(WSR34 + WSR35 + WSR36)/3;WSR38:=(C-MA(C,13))/MA(C,13);WSR39:=(C-MA(C,34))/MA(C,34);WSR40:=(C-MA(C,55))/MA(C,55);WSR41:=(WSR38 + WSR39 + WSR40)/3;WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR46:=(WSR43 + WSR44 + WSR45)/3;WSR47:=(C-MA(C,30))/MA(C,30);WSR48:=(C-MA(C,60))/MA(C,60);WSR49:=(C-MA(C,90))/MA(C,90);WSR50:=(WSR47 + WSR48 + WSR49)/3;WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);WSR55:=(WSR52 + WSR53 + WSR54)/3;WSR56:=(C-MA(C,60))/MA(C,60);WSR57:=(C-MA(C,120))/MA(C,120);WSR58:=(C-MA(C,220))/MA(C,220);WSR59:=(WSR56 + WSR57 + WSR58)/3;WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60; DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3,'★'),COLOR00FFFF;DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3*0.97,'机'),COLOR00FFFF;时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);DRAWTEXT(时间之窗=2,L*0.94,'★3天'),COLORRED;DRAWTEXT(时间之窗=4,H*1.06,'★5天'),COLORGREEN;DRAWTEXT(时间之窗=7,L*0.94,'★8天'),COLORRED;DRAWTEXT(时间之窗=12,H*1.06,'★13天'),COLORGREEN;DRAWTEXT(时间之窗=20,L*0.94,'★21天'),COLORLIRED;DRAWTEXT(时间之窗=33,H*1.06,'★34天'),COLORLIGREEN;DRAWTEXT(时间之窗=54,L*0.94,'★55天'),COLORLIRED;{DRAWTEXT(时间之窗=88,H*1.06,'★89天'),COLORLIGREEN; DRAWTEXT(时间之窗=143,L*0.94,'★144天'),COLORLIRED;DRAWTEXT(时间之窗=232,H*1.06,'★233天'),COLORLIGREEN; DRAWTEXT(时间之窗=376,L*0.94,'★377天'),COLORLIRED;DRAWTEXT(时间之窗=609,H*1.06,'★610天'),COLORLIGREEN; };GET:=ZIG(3,3),COLORFFFFFF;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;DRAWTEXT_FIX(1,0.90,0,0,HYBLOCK),COLORFF00FF;线A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;DRAWICON(CROSS(线A1,线A4),线A1,1);DRAWTEXT(CROSS(线A1,线A4),LOW*0.96,'破'),COLORYELLOW;V1:=EMA(CLOSE,5),COLOR00FFFF;V2:=EMA((EMA(CLOSE,29))*(1.01),10),COLORFF00FF;DRAWICON(CROSS(V1,V2),LOW,1),COLORYELLOW;DRAWTEXT(CROSS(V1,V2),LOW*0.98,'招'),COLORYELLOW;AAF:LLV(LOW,34),LINETHICK1,COLORFFFFCC;BBF:MA(AAF,4),LINETHICK1,COLORYELLOW;TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAA:=(3*C+H+L+O)/6;VAR1A:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2A:=(HHV(VAR1A,5)+HHV(VAR1A,10)+HHV(VAR1A,20))/3;VAR3A:=(LLV(VAR1A,5)+LLV(VAR1A,10)+LLV(VAR1A,20))/3;VAR4A:=(HHV(VAR2A,5)+HHV(VAR2A,10)+HHV(VAR2A,20))/3;VAR5A:=(LLV(VAR3A,5)+LLV(VAR3A,10)+LLV(VAR3A,20))/3;VAR6A:=(LLV(VAR1A,2)+LLV(VAR1A,4)+LLV(VAR1A,6))/3;短线:VAR1A,COLORWHITE;中线:VAR6A,COLORYELLOW;下跌:IF(VAR1A=VAR6A,VAR6A, DRAWNULL),COLORGREEN;TJ1:= CCI1>差值4;立桩量:=FILTER(TJ1,0),NODRAW;TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);STICKLINE(立桩量!=1,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;{STICKLINE(立桩量!=1,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,1),COLORCYAN;}成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORLIBLUE; TJ11:= CCI1<-差值4 ;立桩量2:=FILTER(TJ11,0),NODRAW;TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);突破2:=TJ22=1;{STICKLINE(CLOSE AND 下跌!= VAR6A,REF(HIGH,BARSLAST(立桩量2)), REF(HIGH,BARSLAST(立桩量2)),1,1),COLORYELLOW;}STICKLINE(CLOSE AND 下跌!= VAR6A,REF(LOW,BARSLAST(立桩量2)), REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORLIMAGENTA;TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);立桩量3:=FILTER(TJ111,3);TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));成立:=TJ3=1;条件成立:=FILTER(成立,5);DRAWTEXT(条件成立AND 下跌!= VAR6A,L*0.97,'☆成立');LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45'),COLORWHITE;STICKLINE(1,C,O,2.8,0),COLOR666600;STICKLINE(立桩量,C,O,2.8,0),COLOR0000FF;STICKLINE(1,C,O,0,0),COLORCCCCCC;成本2:(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLOR RED,LINETHICK2;。

通达信指标公式源码 六线通道主图指标源码

通达信指标公式源码 六线通道主图指标源码

估:=(2*CLOSE+LOW+HIGH)/4;界:=SLOPE(CLOSE,21)*20+CLOSE;文:=EMA(估,40)*0.85;卖线:=EMA(估,55)*1.3;捞钱线:=EMA(估,55);保本线:=(捞钱线+文)/2;STICKLINE(C>=保本线AND REF(C,1)<保本线AND REF(C,2)>保本线,O,C,3,0),COLORRED;STICKLINE(C>=保本线AND REF(C,1)<保本线AND REF(C,2)>保本线,L,H,0.2,0),COLORRED;STICKLINE(FILTER(C>=捞钱线AND L<捞钱线,2),O,C,3,0),COLORYELLOW; STICKLINE(FILTER(C>=捞钱线AND L<捞钱线,2),L,H,0.2,0),COLORYELLOW; STICKLINE(FILTER(CROSS(卖线,CLOSE),3),O,C,3,0),COLORGREEN; STICKLINE(FILTER(CROSS(卖线,CLOSE),3),L,H,0.2,0),COLORGREEN; DRAWICON(C>=保本线AND REF(C,1)<保本线AND REF(C,2)>保本线,L*0.96,9);DRAWICON(FILTER(C>=捞钱线AND L<捞钱线,2),L*0.98,1); DRAWICON(FILTER(CROSS(卖线,CLOSE),3),H*1.03,2);V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;VAR1:=IF(DATE>=10211201,0,1);VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;风险线:EMA(VAR4,45)*1.15,COLORFFFF00;必卖线:EMA(VAR4,55)*1.3,POINTDOT,LINETHICK4;底线:EMA(VAR4,40)*0.85,COLORFF00FF;铁底线:EMA(VAR4,88)*0.7,POINTDOT,LINETHICK4,COLORGREEN;成本线:EMA(VAR4,55),COLORYELLOW;价值中枢: (成本线+底线)/2,COLORWHITE;DRAWTEXT(ISLASTBAR,风险线,'风险'),COLORFFFF00;DRAWTEXT(ISLASTBAR,必卖线,'必卖'),COLORYELLOW;DRAWTEXT(ISLASTBAR,底线,'安全'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,铁底线,'铁底'),COLORYELLOW;DRAWTEXT(ISLASTBAR,成本线,'拉升'),COLORRED;DRAWTEXT(ISLASTBAR,价值中枢,'强弱'),COLORWHITE;AAPP:MA(MA(CLOSE,3),1),LINETHICK3,COLORGREEN;IF(AAPP>=REF(AAPP,1),AAPP,DRAWNULL),COLORFF00FF,LINETHICK3; XXS:=MA(HIGH,5)*(1+5/100);DRAWTEXT(CROSS(XXS,C),H*1.02,'开盘逃'),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,2);MA15:=EMA(CLOSE,26);DRAWTEXT(CROSS(FF,MA15),(L OW * 0.999),'中继'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'逃顶'),COLOR1880FF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;XXS1:=MA(HIGH,5)*(1+5/100);DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,HIGH*1.02,'明走'),COLORYELLOW;多头线:=EMA(C,1.5),COLOR0000CC;空头线:=EMA(C,5),COLORMAGENTA;均衡线:=EMA(空头线,5),COLORGREEN;VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;ZAI:=FILTER(VARF1 AND VARF2,2);DRAWTEXT(ZAI,均衡线*0.99,'↖主力拉升'),COLOR00FF00;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120),COLORLIBLUE;MA250:=MA(CLOSE,250),COLORBLUE;DRAWTEXT(CROSS(MA20,MA30),L,'牛相关注20'),COLORMAGENTA;DRAWTEXT(CROSS(MA30,MA60),L,'初生牛犊30'),COLORGREEN; DRAWTEXT(CROSS(MA60,MA120),L,'霸占大牛60'),COLORBLUE; DRAWTEXT(CROSS(MA120,MA250),L,'牛气冲天120'),COLORYELLOW;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,1.5,0),COLORYELLOW,LINETHICK2;M1:=MA(CLOSE,13);A:=MA(C,5);DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "I">REF("I",1) AND CROSS("I",-100),L*0.99,'⊕底');DRAWTEXT(CROSS(A,M1),M1,'◣周加'),COLORWHITE;DRAWTEXT(A>=REF(A,1) AND REF(A,1)<REF(A,2),A,'◣周买'),COLORYELLOW;{周线上买入,中期持有,月线上更好};{PEAKBARS未来判断明日顶部,收市前指标不消失请逃顶}VAR3A:=PEAKBARS(3,15,1)<10;VAR5A:=IF(VAR3A=1,2,0);顶:= IF(VAR5A=2,2,0);顶A:=IF(顶>REF(顶,1),50,0);DRAWTEXT(顶A=50,H * 1.02,'逃命'),COLOR00FF00;T:=BARSLAST(L>REF(H,1));E:=COUNT(L<REF(H,T+1),T)<2;DRAWTEXT(L<REF(H,T+1 ) AND E,L*0.99,'缺口回补'),COLOR0099FF;Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,L*0.999,'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,H*1.01,'小心跌停'),COLORGREEN;B36:=MA(CLOSE,3) - MA(CLOSE,6);B612:=MA(CLOSE,6) - MA(CLOSE,12);J:=((B36)/(CLOSE))*(10);J1:=((B612)/(CLOSE))*(10);DRAWTEXT((J < (-0.2)) AND (J1 < (-0.2)) AND CROSS(J,J1),(LOW)*(0.999),'大牛'),COLORRED;。

财神金箍棒副图和选股公式源码 通达信

财神金箍棒副图和选股公式源码 通达信

当天在指标下面出现金箍棒信号,极可能是暴涨大赚信号,如发现时涨幅不大可以考虑当场买入,涨幅太大时应根据盘面决定,或可追、或可在封板、或尾盘买!没有未来函数,信号不漂移!最可贵的是该指标当天出信号票少,且经常出票,岀就是精品,易选股,不犯迷糊,如当天没票,说明当天大盘风险大!不像别的指标一选一大串,或者干脆就是好长时间没票,没法看!X_1:=CLOSE-REF(CLOSE,1);X_2:=100*EMA(EMA(X_1,5),3)/EMA(EMA(ABS(X_1),5),3);X_3:=100*EMA(EMA(X_1,13),8)/EMA(EMA(ABS(X_1),13),8);X_4:=X_2>X_3;X_5:=IF(X_4,6,0);X_6:=EMA(CLOSE,8)-EMA(CLOSE,13);X_7:=EMA(X_6,5);X_8:=X_6>X_7;X_9:=IF(X_8,1,0);X_10:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4;X_11:=CLOSE>X_10;X_12:=IF(X_11,5,0);X_13:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;X_14:=SMA(X_13,3,1);X_15:=SMA(X_14,3,1);X_16:=X_14>X_15;X_17:=IF(X_16,2,0);X_18:=REF(CLOSE,1);X_19:=SMA(MAX(CLOSE-X_18,0),5,1)/SMA(ABS(CLOSE-X_18),5,1)*100;X_20:=SMA(MAX(CLOSE-X_18,0),13,1)/SMA(ABS(CLOSE-X_18),13,1)*100;X_21:=X_19>X_20;X_22:=IF(X_21,3,0);X_23:=(-(HHV(HIGH,13)-CLOSE))/(HHV(HIGH,13)-LLV(LOW,13))*100;X_24:=SMA(X_23,3,1);X_25:=SMA(X_24,3,1);X_26:=X_24>X_25;X_27:=IF(X_26,4,0);X_28:=X_8+X_16+X_21+X_26+X_11+X_4-3;【持股】:X_28>0,NODRAW,COLORMAGENTA;【持币】:X_28<0,NODRAW,COLORGREEN;【变盘】:X_28=0,NODRAW,COLORYELLOW;0,COLORYELLOW;STICKLINE(【持股】,0,X_28,2,0),COLORMAGENTA;STICKLINE(【持币】,0,ABS(X_28),2,0),COLORGREEN;STICKLINE(【变盘】,0,1,2,0),COLORYELLOW;DRAWICON(【持股】AND REF(X_28,1)<=0,-0.8,7);DRAWICON(【持币】AND REF(X_28,1)>=0,-0.8,8);【必买】:【持股】AND REF(X_28,1)<=0 AND CROSS(CLOSE,EMA(CLOSE,5)) AND CROSS(CLOSE,EMA(CLOSE,10)) AND CROSS(CLOSE,EMA(CLOSE,20)) AND LOW>REF(LOW,1) AND MACD.MACD>0,NODRAW,COLORRED;STICKLINE(【必买】,-0.5,0,3,0),COLORRED;STICKLINE(【必买】,-0.5,-1,3,0),COLORYELLOW;。

通达信指标公式源码 主图高低点炒股 主图源码

通达信指标公式源码 主图高低点炒股 主图源码

源码:{n1 2 1000 13} {n2 2 1000 21} {n3 2 1000 34} {n4 2 1000 55}N:=5;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);HD:= FILTER(C1,N);RH:=BACKSET(CURRBARSCOUNT=2,BARSLAST(HD)+1);SH:=RH>REF(RH,1);H1:REF(H ,BARSLAST(SH)),LINETHICK1;A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);LD:=FILTER(C2,N);RL:=BACKSET(CURRBARSCOUNT=2,BARSLAST(LD)+1);SL:=RL>REF(RL,1);L1:REF(L ,BARSLAST(SL)),LINETHICK1;HH0:=CONST(HHV(H,120))*1;LL0:=CONST(LLV(L,120))*1;MM0:=CONST((HH0+LL0)/2);HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.2),COLORRE D;LL1:=LL0;HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=(HLMAX-HLMIN);HLMN3:=HHV(V,250)/2;HLMN4:=HHV(V,250);VSTD:=STD(VOL,10),VOLSTICK;VZ:=(VSTD-HLMN3)*HLMN2/HLMN4+HLMN1;STICKLINE(C>O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,1),COLOR881888; STICKLINE(C<=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLOR888518; {N 2 1000 100 }MAVSTD5:=MA(VSTD,5);MAVSTD10:=MA(VSTD,10);STICKLINE(IF(CURRBARSCOUNT<=N,V=CONST(LLV(V,N)),DRAWNULL),VZ,(0 -HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;倍:=V/REF(V,1);VOL1:=VOL,VOLSTICK;换手:=VOL*10000/FINANCE(7);倍量拄:=VOL>=REF(V,1)*1.95 AND C>REF(C,1);梯量拄:=V>=REF(V,1) AND REF(V,1)>=REF(V,2) AND C>O AND REF(C>O,1); STICKLINE(梯量拄,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1,0),COLORLIRED{粉}; STICKLINE(倍量拄,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1,0),COLORYELLOW{黄}; STICKLINE(IF(CURRBARSCOUNT<=N1,V=CONST(LLV(V,N1)),DRAWNULL),VZ ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;STICKLINE(IF(CURRBARSCOUNT<=N2,V=CONST(LLV(V,N)),DRAWNULL),VZ,( 0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;STICKLINE(IF(CURRBARSCOUNT<=N3,V=CONST(LLV(V,N)),DRAWNULL),VZ,( 0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;STICKLINE(IF(CURRBARSCOUNT<=N4,V=CONST(LLV(V,N)),DRAWNULL),VZ,( 0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;{VAR2:=0.0001*AMOUNT,VOLSTICK;百日地量:LV(VAR2,100)=VAR2,STICK,COLORMAGENTA,NODRAW;}N3:=100;百日地量:= V=LLV(V,N3) AND V>0 AND BARSCOUNT(V)>=N3; STICKLINE(百日地量,OPEN,CLOSE,1.8,0),COLORMAGENTA;N1:=13;N2:=55;地量10日:= V=LLV(V,N1) AND V>0 AND BARSCOUNT(V)>=N1;地量50日:= V=LLV(V,N2) AND V>0 AND BARSCOUNT(V)>=N2; STICKLINE(地量10日,OPEN,CLOSE,1.8,0),COLORWHITE;STICKLINE(地量50日,OPEN,CLOSE,1.8,0),COLORWHITE;G2:=REF(C,1);涨停:=IF((C-G2)*100/G2>=(10-0.01*100/G2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORMAGENTA;{STICKLINE(涨停,H,L,0,0),COLORMAGENTA;}跌停:=IF((G2-C)*100/G2>=(10-0.01*100/G2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;涨家数:INDEXADV,NODRAW,COLORLIMAGENTA ;跌家数:INDEXDEC,NODRAW,COLORGREEN;HHH0:=CONST(HHV(H,120))*1;LLL0:=CONST(LLV(L,120))*1;MMM0:=CONST((HHH0+LLL0)/2);HHH1:=IF(CONST(C)<MMM0,LLL0-(HHH0-LLL0)*0.4,LLL0-(HHH0-LLL0)*0.2), COLORRED;LLL1:=LLL0;HHLMAX:=MAX(HHH1,LLL1);HHLMIN:=MIN(HHH1,LLL1);HHLMN1:=(HHLMAX+HHLMIN)/2;HHLMN2:=(HHLMAX-HHLMIN);HHLMN3:=HHV(V,250)/2;HHLMN4:=HHV(V,250);VVZ:=(V-HHLMN3)*HHLMN2/HHLMN4+HHLMN1;STICKLINE(C>=O,VVZ,(0-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,2,1),COLOR RED;STICKLINE(C<O,VVZ,(0-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,2,0),COLORC YAN;{(MA(V,5)-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,COLORFFFFFF;(MA(V,10)-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,COLOR00FFFF;};A11:=CLOSE<OPEN;A12:=OPEN-CLOSE;{第一个阴线的实柱长}B11:=BARSLAST(CLOSE>=OPEN);B12:=REF(CLOSE,B11)-REF(OPEN,B11);{第一个阳线的实柱长}C10:=B11<3;C11:=A12-B12>0;C12:=VOL<REF(VOL,B11);C13:=VOL<REF(VOL,B11) AND REF(VOL,1)<REF(VOL,2);C14:=IF(B11=2,C13,C12);CC:=C10 AND C11 AND C13;{必须条件}G11:=VOL<SUM(VOL,5)/5;{好,不坏}G17:=VOL<(REF(VOL,B11)*1/4+REF(VOL,12)*3/4);{有副作用,禁用}G21:=VOL<(1/3*SUM(VOL,5)/5+1/3*REF(VOL,B11)+1/3*LLV(VOL,5));{好,不坏}G22:=10.00>100*SUM(DYNAINFO(37),5)/5;{小测试无副作用}G23:=10000000*(HIGH-LOW)/VOL;G24:=10000000*(REF(HIGH,B11)-REF(LOW,B11))/REF(VOL,B11);G241:=SUM(G24,12)/12;G25:=G23>G241;GG:=G11 AND G21 AND G22 AND G25;{重要的限制条件}F11:=CC AND GG;DRAWICON(F11,HIGH*1.01,27);{输出三:长阴短柱};T1:=CONST(LLVBARS(LOW,10));T1HIGH:=CONST(REF(HIGH,T1));CCB:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST(CURRBARSCOUNT>CCB+T1 AND H>T1HIGH));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST(CURRBARSCOUNT>CCB+T2 AND HIGH>T2HIGH));T3HIGH:=CONST(REF(HIGH,T3));凹口淘金:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLOR00FFFF,LINETHICK1;DRAWTEXT(ISLASTBAR, T3HIGH, '凹口淘金')LINETHICK1,COLOR00FFFF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),DOTLINE,COLORYELLOW;MAXV:=CONST(HHV(VOL,21));MAXS:=CONST(HHV(HIGH,21));BS:=MAXV/MAXS;VOLUME:=VOL/BS*0.10;ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0));NOTEXT1:MA(VOLUME,2)+ORIGIN;NOTEXT2:MA(VOLUME,6)+ORIGIN;NOTEXT3:MA(VOLUME,30)+ORIGIN;说明:画线包含高底价,凹口掏金平衡线;成交量包含百日地量,百日地量群,5日10日20日量线;主图还包含长阴短拄,长阴短拄群。

通达信买点,共振,财神到三合一指标公式

通达信买点,共振,财神到三合一指标公式

25.通达信徐莨苹买卖指标公式 12439536A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);SHORT:=7; LONG:=19;RMA:=EMA(CLOSE,SHORT);NMA:=EMA(CLOSE,LONG);UP:DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NM A,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA ))+1),0);DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS( RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,R MA))+1),0);徐莨苹买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);趋势区:=IF((EVERY(DOWN>=REF(DOWN,1),1)),4,2)COLOR0000FF,LINETHICK3;徐莨苹低买:IF(((CROSS(趋势区,2.1))),5,0),STICK,COLORRED,LINETHICK3;高卖:IF(((CROSS(3.9,趋势区))),-5,0),STICK,COLORFF9150,LINETHICK3;A7赋值:收盘价-昨收A8赋值:100*A7的6日指数移动平均的6日指数移动平均/A7的绝对值的6日指数移动平均的6日指数移动平均SHORT赋值:7LONG赋值:19RMA赋值:收盘价的SHORT日指数移动平均NMA赋值:收盘价的LONG日指数移动平均输出UP:当满足条件最低价=上次NMA上穿RMA距今天数+1日内最低价的最低值时,在上次NMA上穿RMA距今天数+1日内最低价的最低值位置画直线起点,当满足条件最高价=上次RMA上穿NMA距今天数+1日内最高价的最高值时,在上次RMA上穿NMA距今天数+1日内最高价的最高值位置画直线终点,0表示是否延长.输出DOWN:当满足条件最高价=上次RMA上穿NMA距今天数+1日内最高价的最高值时,在上次RMA上穿NMA距今天数+1日内最高价的最高值位置画直线起点,当满足条件最低价=上次NMA上穿RMA距今天数+1日内最低价的最低值时,在上次NMA上穿RMA距今天数+1日内最低价的最低值位置画直线终点,0表示是否延长.输出徐莨苹买进:(2日内A8的最低值=7日内A8的最低值 AND 统计2日中满足A8<0的天数 AND A8上穿A8的2日简单移动平均) AND 昨日DOWN<2日前的DOWN AND UP>昨日DOWN趋势区赋值:如果(最近1日一直存在DOWN>=昨日DOWN),返回4,否则返回2COLOR0000FF,LINETHICK3输出徐莨苹低买:如果((趋势区上穿2.1)),返回5,否则返回0,STICK,画红色,LINETHICK3输出高卖:如果((3.9上穿趋势区)),返回-5,否则返回0,STICK,COLORFF9150,LINETHICK3三合一指标公式10-06-28 股旁网分类:通达信公式标签: 买点共振RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;VAR3:=(量能-趋势);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,100,2,0),COLOR008888;STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:20,COLORFF00FF,LINETHICK2;高死叉出:90,COLORBLUE,LINETHICK2;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK 2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2 ;条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;{股旁网-股票公式网站 }DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'止'),COLORRED;{DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),60,'跌'),COLORRED;} DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR(REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),65,'买'),COLORRED;DRAWTEXT(条件,20,'买'),COLORRED;STICKLINE(条件,0,20,2,0),COLORRED;DRAWTEXT(条件0,85,'卖'),COLORBLUE;DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,60,'买'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;STICKLINE(TJ4,100,80,2,0),COLORGREEN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'财神到'),COLORRED;★遵守纪律★:100,COLORRED,NODRAW;★交易之魂★:100,COLORRED,NODRAW;通达信操盘密码机构专用10-06-02 股旁网分类:通达信公式标签: 操盘机构看均线,青色均线是操盘线,紫色均线是界点线,青线上穿紫线时买入。

通达信指标公式源码 自用组合主图

通达信指标公式源码 自用组合主图

、参数:N1(1 300 5)N2( 1 300 10)N3(1 300 20)N4(1 300 30)P(1 5 2)M(1 60 20)N(1 500 250) M1(1 500 55)买线:INTPART((SUM(CLOSE*VOL*100,6)/SUM(VOL*100,6))*100.17)/100,COLO RFF00FF,LINETHICK2;工作线:EMA(C,13),COLOR0000FF,LINETHICK2;一线:EMA(C,25),COLORWHITE,LINETHICK2;二线:EMA(CLOSE,99),LINETHICK3,POINTDOT,COLORYELLOW;江恩线:EMA(CLOSE,144),LINETHICK3,POINTDOT,COLORFFCC66;EMA1311:=EMA(C,13),COLOR0000FF,LINETHICK2;EMA341:=EMA(C,34),LINETHICK2,POINTDOT,COLORYELLOW;EMA551:=EMA(C,55),LINETHICK2,POINTDOT,COLORFF00FF;EMA120:=EMA(C,120),LINETHICK2,POINTDOT,COLORFFCC66;AR1:=EMA551>EMA341 AND EMA341>EMA1311;AR2:=BARSLAST((C-EMA1311)/EMA1311*100<-6);AR3:=EMA1311>=REF(EMA1311,2);AR4:=COUNT(CROSS(C,EMA1311),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);STICKLINE(AR6,O,C,2.5,0),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;BR2:=ABS((EMA1311-EMA341)+(EMA341-EMA551))/C<0.2;BR3:=C>EMA551 AND (REF(C,1)<REF(EMA551,1) ORREF(C,2)<REF(EMA551,2) OR REF(C,3)<REF(EMA551,3) ORREF(C,4)<REF(EMA551,4) OR REF(C,5)<REF(EMA551,5));BR4:=BR1 AND BR2 AND BR3;STICKLINE(BR4 AND FILTER(BR4,10),O,C,2.5,0),LINETHICK2,COLOR4080FF; CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA1311,EMA551),3)=1;CR4:=ABS(EMA341-EMA551)/EMA551<0.03;CR5:=EMA551<=EMA120 AND EMA551>=REF(EMA551,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DR1:=EMA1311>EMA341 AND EMA341<EMA551;DR2:=BARSLAST(CROSS(C,EMA551) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA551 ANDBETWEEN((C-EMA551)/EMA551,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);STICKLINE(DR8,O,C,2.5,0),LINETHICK2,COLORFF0080;ER:=BARSLAST(REF(CROSS(EMA551,EMA341),1)) ANDCROSS(EMA341,EMA551);FR:=BARSLAST(REF(CROSS(EMA341,EMA1311),1)) ANDCROSS(EMA1311,EMA341);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA1311>EMA341 AND EMA341>EMA551 ANDEMA1311>REF(EMA1311,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*'),COLOR00FF00;HR2:=EMA1311>=REF(EMA1311,3) AND EMA341>=REF(EMA341,1) AND EMA551>=REF(EMA551,1) AND CROSS(C,EMA1311) AND CROSS(C,EMA341) AND CROSS(C,EMA551);STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,0),LINETHICK2,COLORFF80FF; MA1:=EMA(CLOSE,N1);MA2:=EMA(CLOSE,N2);MA3:=EMA(CLOSE,N3);MA4:=EMA(CLOSE,N4);TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/MIN(MA1,MIN(MA2,MA3))*100<=P;XG:=TJ1 AND TJ2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF-DEA);做多:IF(K>D AND MACD>0 AND V>1,2,0),COLORRED,NODRAW;做空:=IF(K<D AND MACD<0 AND V>1,-2,0),COLOR00FF00,NODRAW;强洗:=IF(MACD>0 AND K<D AND V>1,1,0),COLOR0099FF,NODRAW;弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00,NODRAW; STICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;DRAWICON(FILTER(XG,3),L*0.97,23);GET:=ZIG(3,3),COLORYELLOW;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF; DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'半仓'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'稳赚'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'清'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'有机'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'闪'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'人'),COLORFF00FF; DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'鬼'),COLORFFFF00; DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'神'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'走'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'买点'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)AND EX2,H*1.03,'清'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'少买'), LINETHICK3,COLOR00FFFF;HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:=SQRT(HRY11),COLORGREEN,LINETHICK2;国:=IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1),HRY33 ,DRAWNULL),LINETHICK2,COLORRED;MA5:=EMA(C,5),COLOR0000FF,LINETHICK2;MA6:=REF(MA1,1),COLORFFFFFF;MA7:=EMA(EMA(C,7),6),COLOR00FFFF,LINETHICK2;DRAWKLINE(H,O,L,C);指标王趋势:=(MA(EMA(EMA(EMA(CLOSE,2),2),2),13)*0.99),COLORGREEN; 金砖线:=(HHV((REF(CLOSE,1)-REF(MA(MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1 )-HIGH))),ABS((REF(CLOSE,1)-LOW))),13),1)),12));注意:=DRAWTEXT(CROSS(指标王线,MA6),(LOW)*(0.93),'←---注意');笑:=DRAWTEXT(CROSS(指标王线,MA6) AND 指标王线>MA7,H*(0.93),'←-笑');MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C )/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LL V(CLOSE,7))*100=100)>0AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 -100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);X1:=EMA(((KS/ 10) + EMA(CLOSE,10)),3);AA:=-100*(X1-CLOSE)/X1;AC:=(EMA(AA,5));SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));X2:=IF(((SSL>MM)),MM,SA),COLORFF00FF;Y1:=DMA(((CLOSE+ OPEN) / 2),(VOL / (SMA(VOL,4,1)*4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);X3:=A,COLORYELLOW,LINETHICK1;B:=REF(A,1);VA1:=EMA(上收,8);VA2:=EMA(上收,20);选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A)AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:=MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;T4:=CROSS(选手,箱底)AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);MA20: =MA(C,20);MA30:=MA(C,30);QSXS:=MA20>MA30AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);ZF:=(C/REF(C,1)-1)*100;TDDF:=(L/REF(C,1)-1)*100<=-5AND(REF(HHV(H,5),1)/L-1)*100>=10;N1:=BARSLAST(CROSS(C,MA(C,5)));N2:=BARSLAST(CROSS(MA(C,5),C)); HM:=IF(N1<N2,N1+1,0)*QSXS;Z2:=HM=1AND ZF>=0 AND C>O AND QSXS;KX1:=ZF<=-3 ANDC<O;XDSJ:=BARSLAST(KX1);KX2:=ZF>=3 AND C>O;JBY:=KX2 AND XDSJ<=2AND C>=REF(O*0.99,XDSJ) ANDZF>ABS(REF(ZF,XDSJ)*0.99);Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);DRAWTEXT(Z2AND Z3 ,LOW*0.99,'送钱来'),COLORFF0080;EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR21:=(2*CLOSE+HIGH+LOW)/4;VAR31:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR41:=LLV(LOW,5); VAR51:=HHV(HIGH,4);散户:=EMA((VAR21-VAR41)/(VAR51-VAR41)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR91:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR91,5),5)/EMA(EMA(ABS(VAR91),5),5);VARC:=EMA(EMA(VAR91,20),20)/EMA(EMA(ABS(VAR91),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2),NODRAW;卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLO RYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA( CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2,NODRAW;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRA WNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRA WNULL),COLORCYAN,{LINETHICK2};DRAWICON(CROSS(A1X,0),L-0.15,1);VAR111:=C-REF(C,1);VAR211:=100*EMA(EMA(VAR111,6),6)/EMA(EMA(ABS(VAR111),6),6);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSL AST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BA RSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:=((LLV(VAR211,2)=LLV(VAR211,7)) AND COUNT(VAR211<0,2) AND CROSS(VAR211,MA(VAR211,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);DRAWTEXT(BT,L-0.07,'短牛'),COLORRED;TJ11:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) ANDC<HHV(H,21)*0.82;DRAWTEXT(TJ11,L-0.15,'中牛'),COLORMAGENTA;HR1:=HHV(HIGH,55);HRY2:=LLV(LOW,55);HRY12:=HR1*HRY2;HRY34:=SQRT(HRY12);TJ21:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY34; STICKLINE(TJ21,H,L,2,0),COLORYELLOW;DRAWTEXT(TJ21,L-0.08,'大牛'),COLORYELLOW;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);DRAWTEXT(ST,H+0.09,'清'),COLOR00FF00;DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;DEA2:=EMA(DIF1,9),COLORWHITE,LINETHICK2;AA8:=COUNT(CROSS(DIF1,DEA2),BARSLAST(DEA2>=0));二次金叉:=CROSS(DIF1,DEA2) AND DEA2<0 AND COUNT(AA8=2,21)=1; DRAWTEXT(二次金叉,L-0.08,' 二次金叉'),COLORYELLOW;A18:=BARSLAST(REF(CROSS(DIF1,DEA2),1));底背离:=REF(CLOSE,A18+1)>CLOSE AND DIF1>REF(DIF1,A18+1) AND CROSS(DIF1,DEA2);DRAWTEXT(底背离,L-0.08,' 底背离'),COLOR00FF00;。

通达信稳定盈利主图源码通达信指标源码

通达信稳定盈利主图源码通达信指标源码

自用指标感觉不错,上传分享给大家。

红色箭头买入,绿色箭头卖出。

买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWICON(BU,L-0.1,1);DRAWICON(SEL,H+0.1,2);STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;散户:EMA(CLOSE,5),COLORWHITE;{}操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;界点:MA(CLOSE,20),COLORMAGENTA;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;顶:REFDATE(高1,DATE),COLORRED;一0.809:REFDATE(H1,DATE),COLORYELLOW;二0.618:REFDATE(H2,DATE),COLORMAGENTA;三0.500:REFDATE(H3,DATE),COLORWHITE;四0.382:REFDATE(H4,DATE),COLORGREEN;五0.191:REFDATE(H5,DATE),COLORYELLOW;低:REFDATE(低1,DATE),COLORRED;DRAWICON(C<MA(C,250) AND C>MA(C,10) AND REF(C,1)<REF(O,1)*0.97 AND C/O>1.03 AND V/CAPITAL>0.03,L*0.97,9);。

通达信指标公式源码必赚钱主图指标

通达信指标公式源码必赚钱主图指标

DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黄金线实体中间,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黄金线实体中间1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黄金线实体中间2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黄金线实体中间3,4);。

通达信源码公式指标软件通达信【财神到】主图指标公式 无未来

通达信源码公式指标软件通达信【财神到】主图指标公式 无未来

通达信【财神到】主图指标公式无未来{财神到匘===无未来函数}N:=(27,1,100);N1:=(7,1,100);N2:=(19,1,100);HH:=HHV(H,10);LL:=LLV(L,10);AA:=SMA(C,13,2);DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)<REF(AA,2) AND REF(AA,2)<REF(AA,3),HH,'激进买入'),COLORRED;DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) ANDREF(AA,1)>REF(AA,2),HH,'激进持股'),COLOR0066FF;DRAWTEXT(ISLASTBAR=1 AND AA<REF(AA,1) ANDREF(AA,1)>REF(AA,2),HH,'激进卖出'),COLORGREEN;A1:=MA(C,13);ZX:=REF(A1,13/2+1);DRAWTEXT(ISLASTBAR=1 AND CROSS(C,ZX),LL,'稳健买入'),COLORRED; DRAWTEXT(ISLASTBAR=1 AND C>ZX AND REF(C,1)>REF(ZX,1),LL,'稳健持股'),COLOR0066FF;DRAWTEXT(ISLASTBAR=1 AND C<ZX AND REF(C,1)>REF(ZX,1),LL,'稳健卖'),COLORGREEN;VAR1111:=FORCAST(CLOSE,5);VAR1:=1;平衡线:=(EMA(EMA(EMA(HIGH,3),3),1) * VAR1);VAR2:=(平衡线* 0.85);临界线:WMA(CLOSE,10),LINETHICK2,COLORRED;VAR1A:=POW((CLOSE - 临界线),1);VAR2A:=MA(VAR1A,3);VAR3A:=SQRT(VAR2A);支撑线:=(临界线- (1.96 * VAR3A));IF((临界线< REF(临界线,1)),临界线,DRAWNULL),LINETHICK2,COLORFFFFFF; VAR1Z:=(((CLOSE - OPEN) / OPEN) * 100);VAR2Z:=REF(CLOSE,1);VAR3Z:=((SMA(MAX((CLOSE - VAR2Z),0),6,1) / SMA(ABS((CLOSE -VAR2Z)),6,1)) * 100);VAR4Z:=(COUNT((VAR3Z < 20),20) >= 1);DRAWTEXT(((VAR1Z > 9) AND VAR4Z),LOW,'★屠龙'),LINETHICK4,COLORFFFFDD;JJJ:=(((CLOSE + HIGH) + LOW) / 3);AAA:=EMA(JJJ,3);BBA:=REF(AAA,1);持股:DRAWICON((AAA > BBA),L*0.99,11);VAR3:=REF(CLOSE,1);VAR4:=REF(CLOSE,2);VAR5:=REF(CLOSE,3);VAR6:=REF(CLOSE,9);VAR7:=HHV(CLOSE,9);VAR8:=LLV(CLOSE,9);VARC:=(((VAR3 = VAR8) AND (CLOSE >= VAR4)) OR ((((VAR4 = VAR8) AND (VAR3 <= VAR5)) AND (VAR4 < VAR6)) AND (CLOSE >= VAR3)));黄色买入:STICKLINE(VARC,(VAR3 * 0.94),(VAR4 * 0.94),25,16),COLORFFFFFF; VAR1B:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR2B:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR3B:=(MA(CLOSE,N) + (2 * STD(CLOSE,N)));DRAWICON(CROSS(VAR2B,VAR3B),(HIGH * 1.035),15);DRAWTEXT(CROSS(VAR2B,VAR3B),(HIGH * 1.02),'卖出'),COLORFF00EE; VAR4B:=REF(CLOSE,1);VAR5B:=((SMA(MAX((CLOSE - VAR4B),0),N1,1) / SMA(ABS((CLOSE -VAR4B)),N1,1)) * 100);VAR6B:=CROSS(N2,VAR5B);VAR7B:=FILTER(VAR6B,4);A7:=((((2 * CLOSE) + HIGH) + LOW) / 4);VAR10:=LLV(LOW,34);VAR11A:=HHV(HIGH,34);SK:=EMA((((A7 - VAR1B) / (VAR2B - VAR1B)) * 100),7);SD:=EMA(((0.667 * REF(SK,1)) + (0.333 * SK)),5);DRAWTEXT(IF((((((COUNT((CLOSE < REF(CLOSE,1)),8) / 8) > (6 / 10)) AND (VOL >= (1.5 * MA(VOL,5)))) AND COUNT((SK >= SD),3)) AND (REF(LOW,1) = LLV(LOW,120))),1,0),LOW,'●买进'),COLOR99FFEE;DRAWTEXT(IF((((((((((COUNT((CLOSE < REF(CLOSE,1)),13) / 13) > (6 / 10)) AND COUNT((SK > SD),6)) AND (REF(LOW,5) = LLV(LOW,120))) ANDREF((CLOSE >= OPEN),4)) AND REF((CLOSE > OPEN),3)) AND REF((CLOSE > OPEN),2)) AND REF((OPEN > CLOSE),1)) AND (OPEN >REF(CLOSE,1))),1,0),LOW,'●买进2'),COLORFFFFDD;VAR12:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));DRAWTEXT(IF(((((CLOSE < VAR12) AND ((VOL / 240) > (MA(VOL,5) / 240))) AND (CLOSE > (REF(CLOSE,1) * 1.08))) AND (CLOSE < (MA(CLOSE,13) *1.3))),1,0),LOW,'●抄底'),COLORFFFFDD;VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);M8:=VOL;主力:=(SUM((VAR11 * M8),3) / SUM(M8,3));散户:=主力;M1:=LLV(散户,5);M5:=(SUM((VAR11 * M8),1) / SUM(M8,1));M13:=(SUM((VAR11 * M8),5) / SUM(M8,5));M21:=(SUM((VAR11 * M8),13) / SUM(M8,13));Y:=(SUM((VAR11 * M8),21) / SUM(M8,21));U1:=M5;U3:=M13;XX1:=M21;C5:=((U3 > 散户) AND (散户> XX1));C8:=IF((C5 > 0),LLV(U3,5),HHV(散户,5));C13:=IF((C5 > 0),LLV(散户,8),HHV(散户,5));VAR1118:=IF((C5 > 0),LLV(XX1,13),HHV(散户,5));M1A:=LLV(散户,20);DRAWTEXT((M1A = REF(M1A,1)),M1A,'┬'),LINETHICK5,COLORCC33FF; DRAWTEXT(((REF(M1A,1) < REF(M1A,2)) AND (M1A = REF(M1A,1))),L*0.97,'★'),COLORFFEEDD;{STICKLINE((CLOSE < OPEN),HIGH,LOW,1,0),COLOR8800;STICKLINE((CLOSE < OPEN),HIGH,LOW,0,0),COLORFF00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,8,0),COLOR8800;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,7,0),COLOR9900;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,6,0),COLORAA00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,5,0),COLORBB00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,4,0),COLORCC00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,3,0),COLORDD00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,2,0),COLOREE00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,1,0),COLORFF00;STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),COLORFF;STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),COLOREEFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),COLORFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),COLOR22FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),COLOR44FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),COLOR66FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),COLOR88FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLORAAFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLORCCFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOREEFF;}VAR22:=((LLV(LOW,3) = LLV(LOW,3)) AND (CLOSE >= (OPEN * 1.04))); VAR333:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));VAR44:=(VAR22 AND VAR333);VAR55:=BARSLAST(VAR333);VAR66:=BARSLAST(VAR44);VAR77:=IF((VAR66 > 0),(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100),0); VAR88:=SUM(VAR77,1);VAR93:=IF((VAR55 > 3),(0 - 2),0);DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW*0.96,1); DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW*0.98,23); {====}XA:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);YA:=EMA(CLOSE,10);DRAWTEXT(CROSS(YA,XA),(LOW * 0.95),'←安全C级'),COLORRED;VAR1C:=LLV(LOW,21);VAR2C:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1C) / (VAR2C - VAR1C)) * 100),5);AK:=EMA((((CLOSE - VAR1C) / (VAR2C - VAR1C)) * 50),13);DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);VAR3C:=LLV(LOW,55);VAR4C:=HHV(HIGH,34);VAR5C:=EMA((((CLOSE - VAR3C) / (VAR4C - VAR3C)) * 100),3);VAR6C:=((AK + VAR5C) / 2);VAR7C:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);VAR8C:=EMA(VAR6C,5);BB:=EMA(((0.667 * REF(VAR8C,1)) + (0.333 * VAR8C)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWTEXT((CD = 0.6),(LOW * 0.95),'←安全A级'),COLORGREEN; DRAWTEXT((AB = 1),(LOW * 0.97),'←安全B 级'),COLOR33CC99,COLORYELLOW;{====}压力:MA(REF(HHV(C,30),1),2),COLORGREEN;支撑:MA(REF(LLV(C,30),1),2),COLORRED;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF6600; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.7,0 ),COLORFF7700; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.6,0 ),COLORFF9900; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLORFFBB00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.4,0 ),COLORFFCC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.3,0 ),COLORFFDD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFEE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFFF00;{立体柱子:红色}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.8,0) ,COLOR000033; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.6,0) ,COLOR000066; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0) ,COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.3,0) ,COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF (C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2) =HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3) =HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);红持:VAR9Q,COLOR0000FF,LINETHICK0;{立体柱子:红色}STICKLINE(VAR9Q,C,(O+C)/2,2.8,0),COLOR000044;STICKLINE(VAR9Q,C,(O+C)/2,2.7,0),COLOR000055;STICKLINE(VAR9Q,C,(O+C)/2,2.6,0),COLOR000066;STICKLINE(VAR9Q,C,(O+C)/2,2.5,0),COLOR000077;STICKLINE(VAR9Q,C,(O+C)/2,2.4,0),COLOR000099;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000DD;STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000FF;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);粉变:VARAQ,COLORFF99FF,LINETHICK0;STICKLINE(VARAQ,C,(O+C)/2,2.8,0),COLORFF11FF;STICKLINE(VARAQ,C,(O+C)/2,2.7,0),COLORFF22FF;STICKLINE(VARAQ,C,(O+C)/2,2.6,0),COLORFF33FF;STICKLINE(VARAQ,C,(O+C)/2,2.5,0),COLORFF55FF;STICKLINE(VARAQ,C,(O+C)/2,2.4,0),COLORFF77FF;STICKLINE(VARAQ,C,(O+C)/2,2.3,0),COLORFF99FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFFBBFF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFFDDFF;VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);银灰跌:VARBQ,COLOR888888,LINETHICK0;{立体柱子:银色}STICKLINE(VARBQ,C,(O+C)/2,2.8,0),COLOR333333;STICKLINE(VARBQ,C,(O+C)/2,2.7,0),COLOR444444;STICKLINE(VARBQ,C,(O+C)/2,2.6,0),COLOR555555;STICKLINE(VARBQ,C,(O+C)/2,2.5,0),COLOR777777;STICKLINE(VARBQ,C,(O+C)/2,2.4,0),COLOR999999;STICKLINE(VARBQ,C,(O+C)/2,2.3,0),COLORBBBBBB;STICKLINE(VARBQ,C,(O+C)/2,2,0),COLORDDDDDD;STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORFFFFFF;VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);绿买:VARCQ,COLOR00FF00,LINETHICK0;{立体柱子:绿色}STICKLINE(VARCQ,O,(O+C)/2,2.8,0),COLOR004400;STICKLINE(VARCQ,O,(O+C)/2,2.6,0),COLOR005500;STICKLINE(VARCQ,O,(O+C)/2,2.5,0),COLOR007700;STICKLINE(VARCQ,O,(O+C)/2,2.4,0),COLOR009900;STICKLINE(VARCQ,O,(O+C)/2,2.3,0),COLOR00BB00;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00DD00;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00FF00;VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF (C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);蓝抛:VARDQ,COLORFF9900,LINETHICK0;{立体柱子:深蓝色}STICKLINE(VARDQ,O,(O+C)/2,2.8,0),COLORFF1100;STICKLINE(VARDQ,O,(O+C)/2,2.6,0),COLORFF3300;STICKLINE(VARDQ,O,(O+C)/2,2.5,0),COLORFF5500;STICKLINE(VARDQ,O,(O+C)/2,2.4,0),COLORFF7700;STICKLINE(VARDQ,O,(O+C)/2,2.3,0),COLORFF9900;STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFFBB00;STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFDD00;{立体柱子:金色}ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.8,0),COLOR004444;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.7,0),COLOR005555;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.6,0),COLOR006666;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.5,0),COLOR007777;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.4,0),COLOR009999;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.3,0),COLOR00BBBB;STICKLINE(ZDF>9.8,OPEN,CLOSE,2,0),COLOR00DDDD;STICKLINE(ZDF>9.8,OPEN,CLOSE,1,0),COLOR00FFFF;Z:=(CLOSE > REF(CLOSE,1));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT((XL3 > 0),(LOW - 0.2),'←绝对底部');VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5);VAR5S:=HHV(HIGH,4);散户C:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;XX:=EMA(0.667*REF(散户C,1)+0.333*散户C,2)*VAR3S;DRAWTEXT(CROSS(散户C,XX) AND 散户C<30,L-0.05,'←吸'),COLORRED; VAR1R:=LLV(LOW,2)=LLV(LOW,16) AND CLOSE>=OPEN*1.04;VAR2R:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VAR3R:=VAR1R AND VAR2R;DRAWTEXT(VAR3R,LOW,'-→逢低买入'),COLORFFFFEE;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.99),'←---大胆搏'),COLORYELLOW;SHORT1:=12;LONG1:=26;M:=9;DIFF:=EMA(CLOSE,SHORT1)-EMA(CLOSE,LONG1);DEA:=EMA(DIFF,M);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;DRAWTEXT(低位金叉,L*0.92,'*低位金叉'),COLORF00FF0;SHORT:=12;LONG:=26;A1C:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(A1C=2,21)=1; DRAWTEXT(二次金叉,L*0.90,'*二次金叉'),COLORYELLOW;QC:=REF(CLOSE,1);RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);YX:=((CLOSE>QC) AND C>O);D1:=REF(D,1);DRAWTEXT((((D1<30) AND CROSS(K,D)) AND YX),(LOW * 0.96),'*短买!'),COLORYELLOW;VAR4A:=EMA(CLOSE,3);DRAWTEXT(COUNT(REF(VAR4A,1)<REF(VAR4A,2),5)=5 ANDVAR4A>REF(VAR4A,1),L*0.96,'出拳'),COLORRED;DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4; DRAWTEXT(CROSS(DA-DB,0),L*0.98,'★B'),COLORMAGENTA;AA1:=MA(C,5);BB1C:=MA(C,15);AF:=CROSS(AA1,BB1C);DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;。

通达信指标公式源码极品主图(主图 源码)

通达信指标公式源码极品主图(主图 源码)

PT := REF(HIGH,1)-REF(LOW,1);重心:(HIGH + LOW + CLOSE)/3,NODRAW;压力Ⅰ: 2*重心-LOW,NODRAW;压力Ⅱ:重心+ PT,NODRAW;支撑Ⅰ:2*重心-HIGH,NODRAW;支撑Ⅱ: 重心- PT,NODRAW;MA5:MA(C,5),COLOR888899;MA20:MA(C,20),COLOR0099FF;MA30:MA(C,30),COLORYELLOW;MA60:MA(C,60),COLOR00FF00;MA250:MA(C,250),COLOR0099FF;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORBDB76B;X1:=(C+L+H)/3;DD:=TOTALCAPITAL;SS:=FINANCE(7);GG:=FINANCE(33);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L ,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'S'),COLORGREEN;双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 ANDVAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ; DRAWTEXT(T2=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=60,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

通达信主图指标2W主图(附源码)

通达信主图指标2W主图(附源码)

通达信主图指标2W主图(附源码)通达信主图指标2W主图(附源码)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,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORGREEN;DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+1 5*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF (X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

{追涨逃顶}
空:=EMA(C,5);
均衡:EMA(空,5),COLORWHITE;
中轨:HHV(MA(H,13),13),COLORRED,LINETHICK2;
趋势:LLV(MA(H,13),1),COLORBLUE,LINETHICK2;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
VARC:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*1 00;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100; VAR4:=FILTER(IF(COUNT(VAR3<20,5)>=1 AND
COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5);
VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND
C>REF(C,1),11);
A2:=(100 * (CLOSE - (MA(CLOSE,30)))) / (MA(CLOSE,30));
A3:=100 - ((90 * ((HHV(HIGH,20)) - CLOSE)) / ((HHV(HIGH,20)) -
(LLV(LOW,20))));
A4:=100 - (MA(((100 * ((HHV(HIGH,6)) - CLOSE)) / ((HHV(HIGH,6)) -
(LLV(LOW,6)))),28));
A5:=MA(A4,6);
红持股:=IF((A3 < A5),A5,A3),COLORRED;
DRAWTEXT(红持股AND VAR5,L*0.95,'追'),COLOR00FF00; DRAWICON(红持股AND VAR5,L*0.98,25);
VAR6:=REF(CLOSE,1);
VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100; DRAWTEXT(CROSS(84,VAR7),H*1.04,'逃顶'),COLORYELLOW ; DRAWICON(CROSS(84,VAR7),H*1.02,9);
VA3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VA4:=SMA(VA3,9,1);
VA5:=SMA(VA4,9,1);
VA6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);
VA7:=REF(VA6,1)>13 AND REF(VA6,1)/VA6>1.23 AND
CLOSE/REF(CLOSE,1)>1.03;
感恩庄家:= VA7 AND REF(CLOSE,1)<=COST(5) ;
DRAWTEXT(感恩庄家,L*0.96,'杀底'),COLORFFFFFF ;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
小股民:=EMA(CLOSE,5),COLORWHITE;
操盘:=MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:=MA(CLOSE,20),COLORMAGENTA;。

相关文档
最新文档