《通达信指标公式源码-一个非常有用的操盘主图(操盘主图-四方力道-波段主图-先知主图)(共7页).doc》由会员分享,可在线阅读,更多相关《通达信指标公式源码-一个非常有用的操盘主图(操盘主图-四方力道-波段主图-先知主图)(共7页).doc(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上趋势线:MA(C,30),DOTLINE COLORFF00CC;IF(趋势线=REF(趋势线,1),趋势线,DRAWNULL),DOTLINE,COLORYELLOW;回归斜率线A:EMA(SLOPE(C,21)*20+C,42);回归斜率线B:REF(回归斜率线A,2);IF(回归斜率线AREF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORRED;IF(回归斜率线AREF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORRED;IF(回归斜率线B回归斜率线A AND MAHL10,EMA(C,3),LLV(EMA(H+L)/2,
2、5),30);AMAHL3:=IF(EMA(C,2)回归斜率线A AND MAHL10,LLV(EMA(H+L)/2,5),30),EMA(C,5);A回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154);C昨C红K柱+CO红K柱 C昨C红K柱 C=昨C是跟白色 24线CO红K柱 C REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(CREF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE REF(CLOSE,1) AND CO ,OP
3、EN,CLOSE,2.1,0 ),COLOR;STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),C
4、OLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
5、STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CO,C,O,3,0),COLORFFCC00;STICKLINE(CREF(C,1) AND CO ,OPEN,CLOSE,3,0 ),COLOR;STICKLINE(CREF(C,1) AND CO ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE REF(C,1) ,OPEN,CLOSE,2.
6、1,0 ),COLORFF4400;STICKLINE(CLOSE REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;DRAWICON(C
7、ROSS(经典K,经典D),L*0.96,26);高亮红回归斜率买:IF(CROSS(EMA(C,3),回归斜率线A),(L-(H-L)/3),DRAWNULL),POINTDOT,COLOR0000FF;高亮红回归斜率买_:DRAWICON(CROSS(EMA(C,3),回归斜率线A),L*0.98,1),买;回归斜率卖:IF(CROSS(回归斜率线A,EMA(C,2),(H+(H-L)/3),DRAWNULL),POINTDOT,COLOR00CF00;中绿卖:DRAWICON(CROSS(回归斜率线A,EMA(C,2),H*1.03,2);经典KDJ卖:IF(CROSS(经典D,经典K)
8、,(H+(H-L)/2),DRAWNULL),CROSSDOT,LINETHICK3,COLOR00CF00;中绿;RSV:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);DRAWTEXT(CROSS(J,REF(J+0.01,1) AND X2 AND J20,LOW*0.99,买),COLORYELLOW; DRAWICON(CROSS(J,REF(J+0.01,1) AND X2 AND J0.6 AND (MIN(O
9、,C)-L)/(H-L)0.6 AND VOL=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;DRAWTEXT(跌停,H+0.1,跌停),COLORGREEN;涨停:=IF(REF(C,1)*1.095-C0),RGB(255,0,0),RGB(23,125,255);DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV)-20,62,950,IF(CONST(大宗出0),RGB(23,125,255)
10、,RGB(255,0,0);DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV)-20,122,950,IF(CONST(非大宗进0),RGB(255,0,0),RGB(23,125,255);DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV)-20,154,950,IF(CONST(非大宗出0),RGB(23,125,255),RGB(255,0,0);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,主力进出),COLORMAGENTA;DRAWTEXT_FIX(CURRBA
11、RSCOUNT=1,0.107,1,0,散户进出),COLORCYAN;M1:=EMA(EMA(C,21),3);M2:=EMA(EMA(C,34),3);TT2:=CROSS(C,M1)AND CROSS(C,M2);DRAWTEXT(TT2,L*0.96,阳);四方力道四方力道V1:=DMA(HIGH + LOW) + (CLOSE * 2) / 4.15),0.9);HY1:=REF(EMA(V1,3),1);实时线:MA(CLOSE,1),COLOR;神秘线:HY1,COLOR;DRAWTEXT(CROSS(CLOSE,HY1),LOW*0.95,B),LINETHICK2,COLOR
12、YELLOW;DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.08,S),LINETHICK3,COLORWHITE;APP:=(VOL / (HIGH - LOW) * 2) - ABS(CLOSE - OPEN);ZL:=IF(CLOSE OPEN),(APP * (HIGH - LOW),IF(CLOSE OPEN),(0 - (APP * (HIGH - CLOSE) + (OPEN - LOW),IF(CLOSE OPEN),(0 - (APP * (HIGH - LOW),(0 - (VOL / 2);库存能量:=MA(ZL + SF),2);库存平均:=MA(Z
13、L + SF),5);DRAWTEXT(CROSS(库存能量,库存平均),L*0.97,),COLORFF00FF,LINETHICK4;波段主图工作线:=MA(CLOSE,1);趋势线:MA(CLOSE,18)COLORGREEN,LINETHICK2;强势线:MA(CLOSE,3)COLORRED,LINETHICK2;TT2:=DMA(HIGH + LOW) + (CLOSE * 2) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;K:=SMA(RSV,3,1)
14、;D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=(SMA(MAX(CLOSE - LC),0),3,1) / SMA(ABS(CLOSE - LC),3,1) * 100);FF:=EMA(CLOSE,3);MA144:EMA(CLOSE,144),POINTDOT,COLORWHITE;MA318:EMA(C,318);AA1:=AMOUNT/VOL;BB1:=L1.2;DD1:=LMA(C,5)*0.921;EE1:=VOLMA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C
15、,1)/REF(C,1);P1:=IF(CREF(O,1) AND F0,1,0);P2:=IF(CREF(O,2) AND F0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);DRAWTEXT(CROSS(工作线,趋势线)AND J55,LOW,入)COLORWHITE;DRAWTEXT(CROSS
16、(CLOSE,TT1)AND J55,LOW,买),COLORRED;DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,顶),COLOR00FFFF;DRAWTEXT(FF1,L*0.99,超短),COLOR00FF00;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;STICKLINE(TT4,OPEN,CLOSE,3,0),COLORGREEN;TT5:=5;V1:=MA(HIGH,30)*1.15;V2:=MA(HIGH,3)*1.03;V3:=MA(LOW,3)*0.97;V4:=MA(LOW,30)*0.85;GET:ZIG(3
17、,TT5)COLORWHITE,LINETHICK3;先知主图VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW100,100,VAR8);STICKLINE(VAR9-150,0,VAR9,0.1,0), COLORFF00FF;吸筹指标:(CLOSE
18、-MA(CLOSE,40)/MA(CLOSE,40)*100,COLOR00FF00;STICKLINE(CROSS(吸筹指标,-24),100,0,1,0), COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5)/MA(CLOSE,5)*100, COLORFF00FF;放量拉升:IF(CROSS(吸筹指标,-24),1,0), COLORFFFFFF;获利:STICKLINE(REF(KDJ.J,1)0,60,0,1,0),COLOR0000FF;VARK1:=(CLOSE-LLV(LOW,27)/(HHV(HIGH,27)-LLV(LOW,27)*100;VARK2:=R
19、EVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:SMA(VARK3,3,1), COLORRED,LINETHICK2;波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线: 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),COLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9)/(HH
20、V(HIGH,9)-LLV(LOW,9)*100;K1:SMA(RSV9,3,1);DK1:K1-REF(K1,1),COLORSTICK;出手就赢:IF(DK17 AND REF(DK1,1)9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢0,50 ,1);STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,底),COLORWHITE ;DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,钱),COLOR33FFCC;DRAWT
21、EXT(REF(KDJ.J,1)0,50,买),COLORRED ;DRAWTEXT(CROSS(吸筹指标,-24),80,底),COLORWHITE ;RSV:=(CLOSE - LLV(LOW,9) / (HHV(HIGH,9) - LLV(LOW,9) * 100);短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3 * K) - (2 * D);AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=(ATAN(AA10 - REF(AA10,1) * 3.1416) * 10);BB12:=(A
22、TAN(AA12 - REF(AA12,1) * 3.1416) * 10);MA13:=MA(CLOSE,13);VARB:=(CLOSE - MA(CLOSE,6) / MA(CLOSE,6) * 100);VARC:=(CLOSE - MA(CLOSE,12) / MA(CLOSE,12) * 100);VARD:=(CLOSE - MA(CLOSE,24) / MA(CLOSE,24) * 100);VARE:=(VARB + (2 * VARC) + (3 * VARD) / 6);VARF:=MA(VARE,3);STICKLINE(CROSS(J,0) AND (VARF = (0 - 7),0,88,2,0),COLORBLUE;DRAWICON(CROSS(J,0) AND (VARF 10,25,0,1,0),COLORYELLOW;建仓区: IF(VARO710),0,20),LINETHICK3 ,COLORRED;专心-专注-专业