{分时写入五日K线} 通达信指标公式源码

合集下载

五彩K线通达信指标公式源码

五彩K线通达信指标公式源码

通达信五彩K线主图指标贴图(主图带使用方法说明){公式名称: 五彩K线主图公式描述:参数数量: 8参数1: N, 最小: 1, 最大: 100, 缺省: 20参数2: 过滤, 最小: 0, 最大: 1, 缺省: 0参数3: 选股, 最小: 1, 最大: 300, 缺省: 99参数4: 抄底, 最小: 0, 最大: 1000, 缺省: 9参数5: 周期, 最小: 0, 最大: 1, 缺省: 0参数6: SHORT, 最小: 1, 最大: 100, 缺省: 14参数7: LONG, 最小: 1, 最大: 100, 缺省: 14参数8: MIDD, 最小: 1, 最大: 100, 缺省: 14公式类型: 技术指标公式-其他类型画线方法: 主图叠加公式版本: 0显示小数: 缺省位数坐标线位置: 自动额外Y轴分界: 无参数精灵:请设置计算参数:N: Param#0 (1.00--100.00)过滤: Param#1 (0.00--1.00)选股: Param#2 (1.00--300.00)抄底: Param#3 (0.00--1000.00)周期: Param#4 (0.00--1.00)SHORT: Param#5 (1.00--100.00)LONG: Param#6 (1.00--100.00)MIDD: Param#7 (1.00--100.00)用法注释:用法:浅蓝注意、红色上升、绿色调整、蓝色下跌、黄色震荡公式源码:}DRAWBAND(MA(CLOSE,120),RGB(155,50,50),MA(CLOSE,250),RGB(83,123,68)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA1:MA(CLOSE,120),DOTLINE,COLORYELLOW;MA2:MA(CLOSE,250),DOTLINE,COLORMAGENTA;X_1:=MA(CLOSE,120);X_2:=MA(CLOSE,250);DRAWTEXT(CROSS(X_1,X_2),X_1,1),COLORYELLOW,LINETHICK4; DRAWTEXT(CROSS(X_2,X_1),X_1,2),COLORWHITE,LINETHICK4; STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN;STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN;STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN;STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN;STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN;STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN;STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN;STICKLINE(CLOSE<X_1 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN; STICKLINE(CLOSE<X_1 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN; STICKLINE(CLOSE<X_1 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORCYAN; STICKLINE(CLOSE<X_1 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORCYAN; STICKLINE(CLOSE<X_1 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORCYAN; STICKLINE(CLOSE>X_1 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; STICKLINE(CLOSE>X_1 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; STICKLINE(CLOSE>X_1 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; STICKLINE(CLOSE>X_1 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; STICKLINE(CLOSE>X_1 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; STICKLINE(CLOSE>X_1 AND X_1>REF(X_1,1) ANDCLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;STICKLINE(CLOSE>X_1 AND X_1>REF(X_1,1) ANDCLOSE>OPEN,OPEN,LOW,0,0),COLORRED;STICKLINE(CLOSE>X_1 AND X_1>REF(X_1,1) ANDCLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;STICKLINE(CLOSE>X_1 AND X_1>REF(X_1,1) ANDCLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;STICKLINE(CLOSE>X_1 AND X_1>REF(X_1,1) ANDCLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;STICKLINE(CLOSE<X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN;STICKLINE(CLOSE<X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN;STICKLINE(CLOSE<X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN;STICKLINE(CLOSE<X_1 AND X_1<REF(X_1,1) ANDCLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN;STICKLINE(CLOSE<X_1 AND X_1<REF(X_1,1) ANDCLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN;STICKLINE(CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN;STICKLINE(CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN;STICKLINE(CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN;STICKLINE(CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN;STICKLINE(CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN;STICKLINE(X_1>X_2 AND CLOSE>X_1 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; STICKLINE(X_1>X_2 AND CLOSE>X_1 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; STICKLINE(X_1>X_2 AND CLOSE>X_1 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; STICKLINE(X_1>X_2 AND CLOSE>X_1 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; STICKLINE(X_1>X_2 AND CLOSE>X_1 ANDCLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;STICKLINE(X_1>X_2 AND CLOSE<X_1 ANDCLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN;STICKLINE(X_1>X_2 AND CLOSE<X_1 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORGREEN; STICKLINE(X_1>X_2 AND CLOSE<X_1 ANDCLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN;STICKLINE(X_1>X_2 AND CLOSE<X_1 ANDCLOSE<=OPEN,HIGH,LOW,0,0),COLORGREEN;STICKLINE(X_1>X_2 AND CLOSE<X_1 ANDCLOSE<=OPEN,OPEN,CLOSE,3,0),COLORGREEN;STICKLINE(X_1>X_2 AND CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN;STICKLINE(X_1>X_2 AND CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN;STICKLINE(X_1>X_2 AND CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN;STICKLINE(X_1>X_2 AND CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN;STICKLINE(X_1>X_2 AND CLOSE>X_1 AND X_1<REF(X_1,1) ANDCLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN;STICKLINE(CLOSE<X_2 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORBLUE; STICKLINE(CLOSE<X_2 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORBLUE;STICKLINE(CLOSE<X_2 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORBLUE; STICKLINE(CLOSE<X_2 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORBLUE; STICKLINE(CLOSE<X_2 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORBLUE; STICKLINE(CLOSE>X_1 AND X_1<X_2 ANDCLOSE>OPEN,HIGH,CLOSE,0,0),COLORYELLOW;STICKLINE(CLOSE>X_1 AND X_1<X_2 ANDCLOSE>OPEN,OPEN,LOW,0,0),COLORYELLOW;STICKLINE(CLOSE>X_1 AND X_1<X_2 ANDCLOSE>OPEN,OPEN,CLOSE,3,1),COLORYELLOW;STICKLINE(CLOSE>X_1 AND X_1<X_2 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORYELLOW; STICKLINE(CLOSE>X_1 AND X_1<X_2 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORYELLOW; DRAWTEXT_FIX(1,0,1.02,0,3),COLORWHITE;。

精品分时通达信指标公式源码

精品分时通达信指标公式源码

A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/C APITAL*100,0)),0);成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR),((100*A2)/A6),0);A8:=IF((ISLASTBAR),((100*A3)/A6),0);A9:=IF((ISLASTBAR),((100*A4)/A6),0);A10:=IF((ISLASTBAR),((100*A5)/A6),0);机构买:(A2),LINETHICK6,COLORRED;机构卖:(A3),LINETHICK6,COLORGREEN;机构进出:机构买-机构卖,NODRAW;散户买:(A4),COLOR5555FF;散户卖:(A5),COLOR55FF55;散户进出:散户买-散户卖,NODRAW;强势:((100*A2)/A6>50);STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW;拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18; STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORRED;DRAWTEXT(ISLASTBAR=1,机构买*0.95,''),LINETHICK2,COLORRED;DRAWTEXT(ISLASTBAR=1,机构卖*0.95,''),LINETHICK2,COLORFFFF55;Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/Q2),1.03),机构买,5);XG:C/Q2;DD1:=1;AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');AAA0:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');AAA3:=STRCAT(STRCAT('散户买入',CON2STR((100*A4)/A6,0)),'%');AAA4:=STRCAT(STRCAT('散户卖出',CON2STR((100*A5)/A6,0)),'%');AAA5:=STRCAT(STRCAT('散户总买入',CON2STR((100*(A4-A5))/A6,0)),'%'); DRAWTEXT_FIX(DD1=1,0.001,0.05,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0.001,0.15,0,AAA2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.001,0.25,0,AAA3),COLORRED;DRAWTEXT_FIX(DD1=1,0.001,0.35,0,AAA4),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.001,0.45,0,AAA0),LINETHICK5,COLORCYAN; DRAWTEXT_FIX(DD1=1,0.001,0.55,0,AAA5),LINETHICK5,COLORCYAN;主力净买额:=(机构进出+散户进出)/成交额,NODRAW;AAA6:=STRCAT(STRCAT('主力净买额',CON2STR(主力净买额,0)),'%');DRAWTEXT_FIX(DD1=1,0.001,0.65,0,AAA6),COLORMAGENTA;。

通达信指标公式源码分时指标机构买卖散户买卖指标无未来

通达信指标公式源码分时指标机构买卖散户买卖指标无未来

通达信指标公式源码分时指标机构买卖散户买卖指标无未来通达信是一种常用的股票行情分析软件,它内置了各种指标公式供投资者使用。

在通达信中,分时指标、机构买卖指标和散户买卖指标是常用的分析工具之一1.分时指标分时指标是一种用来分析股票交易活跃度和市场热度的技术指标。

在通达信中,分时指标可以通过公式语言来计算。

分时成交量公式:v:=MA(VOL,5);ma:=MA(CLOSE,V);ratio:=TURNOVER / v / ma;indicator1:=IF(ratio>=1.1, 1, IF(ratio<=0.9, -1, 0));其中,v表示成交量的5日简单移动平均,ma表示收盘价的移动平均,ratio表示成交额与成交量和收盘价的关系,indicator1表示分时指标的结果。

2.机构买卖指标机构买卖指标是一种用来分析机构投资者的买卖动向的技术指标。

在通达信中,机构买卖指标可以通过公式语言来计算。

机构买卖指标公式:ma:=MA(CLOSE,120);ratio:=MA(CLOSE/ma,30);indicator2:=IF(ratio>1, 1, IF(ratio<1, -1, 0));其中,ma表示收盘价的120日移动平均,ratio表示收盘价与ma的比值的30日移动平均,indicator2表示机构买卖指标的结果。

3.散户买卖指标散户买卖指标是一种用来分析散户投资者的买卖动向的技术指标。

在通达信中,散户买卖指标可以通过公式语言来计算。

散户买卖指标公式:indicator3:=REF(((C-L+H-C)/(H-L))*VOL,1);其中,C、L、H分别表示收盘价、最低价和最高价,VOL表示成交量,indicator3表示散户买卖指标的结果。

需要注意的是,以上指标公式仅为示例,在实际使用中可能需要根据具体需求进行调整和修改。

另外,以上指标仅为分析工具,不能作为独立决策的依据,投资者应结合其他因素进行综合分析和判断。

通达信五线组合拳源码公式

通达信五线组合拳源码公式

通达信五线组合拳源码公式:V ARA:=(MA(C,13)+MA(C,17))/2;V ARB:=(STD(C,13)+STD(C,17))/2;V ARC:=IF((C>REF(C,1)),88,0);V ARD:=V ARA+0.72*V ARB;V ARF:=IF(((C)/(REF(C,1))>1.05) AND H/C<1.01 AND V ARC>0,91,0);V ARE:=IF(VARB>1.88 ,MA(V ARD,3),V ARD);V ARG:=EMA(EMA(C,9),9);CON:=(VARG-REF(V ARG,1))/REF(V ARG,1)*1000;HCON:=100*WINNER(C*0.95);V AR1:=EMA(EMA(EMA(C,5),5),5);V AR2:=V AR1-REF(V AR1,1)+V AR1;V AR3:=CROSS(V AR2,MA(V AR2,26));V AR4:=CROSS(MA(C,13),MA(C,21));V AR5:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;V AR6:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27)) /(HHV(H,27)-LLV(L,27))*100,5,1),3,1);V AR7:=IF(VAR6<=10,30,0);V ARJ:=SMA(V AR5,3,1);V ARK:=SMA(V ARJ,3,1);V ARL:=EMA(SMA((C-LLV(L,19))/(HHV(H,19)-LLV(L,19))*100,8,1),3);V ARM:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;V AR8:=(V ARL>20 AND V ARL<80);V AR9:=((V ARL-REF(V ARL,1))>3 AND V AR8);V AR10:=EMA(((C-LLV(L,22))/(HHV(H,22)-LLV(L,22)))*100,5);V AR11:=EMA(((C-LLV(L,22))/(HHV(H,22)-LLV(L,22)))*50,13);止赢:V ARE*1.1,COLORRED,LINETHICK2;压力:V ARE*1.05,COLORBLUE,LINETHICK2;支撑:V ARE*0.95,COLOR18FF18,LINETHICK2;反转:V ARE*0.9,COLORYELLOW,LINETHICK2;平衡:V ARE,COLORFFFFFF,LINETHICK3;DRAWTEXT(ISLASTBAR,止赢,'止赢'),COLORRED;DRAWTEXT(ISLASTBAR,压力,'压力'),COLORBLUE;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLOR18FF18;DRAWTEXT(ISLASTBAR,反转,'反转'),COLOR18CCFF;DRAWTEXT(ISLASTBAR,平衡,'平衡'),COLORFFFFFF;DRAWTEXT(FILTER((V ARF>90),34),LOW*0.965,'◆'),COLORRED;STICKLINE(HCON>50 AND COST(85)<C AND CON>0,O,C,1.8,0),COLORFF00FF; DRAWTEXT(V AR3 AND V AR4,L*0.95,'圆底'),COLORYELLOW;STICKLINE(CROSS(V ARJ,V ARK) AND CROSS(MACD.DIF, MACD.DEA),C,O,1,0),COLORYELLOW;DRAWTEXT(V AR7<REF(V AR7,1),L*0.98,'抢'),COLORYELLOW;DRAWTEXT(FILTER(V AR9,5),L*0.97,'加'),COLORFF00FF;DRAWICON(CROSS(76,V ARM),H,6);重心:AMOUNT/VOL/100,POINTDOT,LINETHICK5,COLORYELLOW;布林极限:BB,COLORFF00FF,NODRAW;RSI1:RSI.RSI1,COLORRED,NODRAW;KDJJ:KDJ.J,COLORWHITE,NODRAW;STICKLINE(CROSS(V AR10, V AR11),O,C,1.6,1),COLORRED;STICKLINE(CROSS(V AR10, V AR11),O,C,1,1),COLORRED;DRAWTEXT(FILTER(CROSS(C,反转) OR CROSS(C,支撑) OR CROSS(C,平衡) OR CROSS(C,压力),3),L*0.995,'买'),COLORRED;DRAWTEXT(FILTER(CROSS(反转,C) OR CROSS(支撑,C) OR CROSS(平衡,C) OR CROSS(压力,C),3),H*1.02,'卖'),COLORGREEN;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORRED,LINETHICK3;DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KB1:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0,1,0),COLORYELLOW,LINETHI CK3;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0,'时窗'),COLORYELLOW;MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)); DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX); DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;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;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,LOW*0.99,'老鼠仓'),COLOR4080FF;XXS:=MA(LOW,5)*(1-5/100);XXS1:=MA(HIGH,5)*(1+5/100);均线:=C,COLORGREEN;AAAA:=CLOSE/REF(CLOSE,3)<=0.85 AND CROSS(C,XXS) AND C>REF(C,1),LINETHICK0 ;DRAWTEXT(AAAA,L*0.95,'下影买'),COLORRED;BBAA:=CROSS(XXS1,C);DRAWTEXT(CROSS(XXS1,C),H,'开盘逃'),COLORWHITE;DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,H,'明日走'),COLORYELLOW;AAA:=MA(LOW,5)*(1-5/100);BBB:=(HHV(AAA,5)+LLV(AAA,5))/2;DRAWTEXT(CROSS(BBB,L) AND BBB>REF(BBB,1),L*0.98,'←斋主回马枪'),COLORWHITE;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);DRAWTEXT(REF(CROSS(DEA,DIF),1) AND CROSS(DIF,DEA),L*0.97,'★←老李夺命抢'),COLORMAGENTA;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;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;BB5:=A TAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;EMA3:=EMA(C,3);DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),LOW*0.99,'★∠45'),COLORFFFFFF;TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10);V AR27:=REF(CLOSE,1);V AR28:=SMA(MAX(CLOSE-V AR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100; DRAWICON((IF(CROSS(76,V AR28),1,0)) OR CROSS(70,RSI),H*1.01,2);DRAWICON((IF(CROSS(V AR28,21),1,0)),L*0.97,1);DRAWTEXT((IF(CROSS(76,V AR28),1,0)) OR CROSS(84,RSI),H*1.03,'快跑') ,COLORYELLOW;股价:MA(C,3),COLORGREEN,LINETHICK2;B:=股价<REF(股价,1);短线:IF(B-1,股价,DRAWNULL)COLORMAGENTA,LINETHICK2;V AR4A:=EMA(CLOSE,3);DRAWICON(COUNT(REF(V AR4A,1)<REF(V AR4A,2),5)=5 AND V AR4A>REF(VAR4A,1),L*0.98,4);DRAWTEXT(COUNT(REF(V AR4A,1)<REF(V AR4A,2),5)=5 AND V AR4A>REF(VAR4A,1),L*0.96,'出拳');。

通达信指标公式源码k线系列

通达信指标公式源码k线系列

VAR01:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR02:=(REF(VAR01,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR03:=(REF(VAR02,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR04:=(REF(VAR03,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR05:=(REF(VAR04,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR06:=(REF(VAR05,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR07:=(REF(VAR06,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR08:=(REF(VAR07,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR09:=(REF(VAR08,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR09,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)); VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR01);VAR1A:=((REF(VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;一句话:3根k线,收盘创新高(低)变色。

通达信指标公式源码K线解盘主图源码

通达信指标公式源码K线解盘主图源码

通达信指标公式源码K线解盘主图源码在判断股票日后趋势的时候必然要用到一些小k线组合的知识,这个指标就涉及到了平常最常用的一些k线组合形态,从而自动判断后势股价的涨跌。

{K线形态解盘}TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));AAA:=CONST(HHV(H,90));BBB:=CONST(LLV(L,100));DRAWBAND(AAA,RGB(50,100,00),BBB,RGB(00,00,00));MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,60);MA5:MA(CLOSE,120);DRAWKLINE(H,O,L,C);T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 ANDREF(OPEN,1)> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<ref(close,2)),1,0));< bdsfid="100" p=""></ref(close,2)),1,0));<>T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<ref(close,2)),1,0));< bdsfid="112" p=""></ref(close,2)),1,0));<>T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE <MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96AND CLOSE<ref(open,1)< bdsfid="123" p=""></ref(open,1)<>AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<ref(close,1))),1,0));< bdsfid="126" p=""></ref(close,1))),1,0));<>T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<ref(close,1)),1,0));< bdsfid="129" p=""></ref(close,1)),1,0));<>T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03AND OPENREF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1) ,REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 ANDABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<0.98),1,0));<="" p="">T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2) -REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1) <=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE, 2))<=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<ref(open,1)< bdsfid="160" p=""></ref(open,1)<>AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<<="" openEMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<="" bdsfid="170" p="" ref(close,2)REF(CLOSE,1)<ref(open,1)< bdsfid="172" p=""></ref(open,1)<>AND REF(LOW,4)<="" bdsfid="174" p="" ref(low,4)REF(LOW,4)REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2)AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)>REF(OPEN,1)AND REF(LOW,4)<="" bdsfid="186" p="" ref(low,4)REF(LOW,4)REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) ANDCLOSE/OPEN<0.97 ANDCLOSE<ref(close,4)),1,0));< bdsfid="193" p=""></ref(close,4)),1,0));<>T26{跳空缺口}:=CONST(IF(HIGHREF(HIGH,1),1,0)); T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<ref(close,2)<="">AND CLOSE<ref(close,1)),1,0));< bdsfid="198" p=""></ref(close,1)),1,0));<>T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND(CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<="" bdsfid="212" p="">CLOSE>OPENAND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR(REF(CLOSE,1)>REF(OPEN,1)AND CLOSE<="" and="" bdsfid="217" p="">/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<="" p="">>REF(O,1) AND C<ref(o,1)),1,0));< bdsfid="222" p=""></ref(o,1)),1,0));<>T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T38{M10}:=CONST(V*比REF(MA(V,5),1));T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<ref(ma(v,5),1));< bdsfid="227" p=""></ref(ma(v,5),1));<> T40{M12}:=CONST(V*比<ref(ma(v,5),1));<="" p="">T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,TS5+0.03,TS5);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS12:=IF(T12=1,TS11+0.03,TS11); TS13:=IF(T13=1,TS12+0.03,TS12); TS14:=IF(T14=1,TS13+0.03,TS13); TS15:=IF(T15=1,TS14+0.03,TS14); TS16:=IF(T16=1,TS15+0.03,TS15); TS17:=IF(T17=1,TS16+0.03,TS16); TS18:=IF(T18=1,TS17+0.03,TS17); TS19:=IF(T19=1,TS18+0.03,TS18); TS20:=IF(T20=1,TS19+0.03,TS19); TS21:=IF(T21=1,TS20+0.03,TS20); TS22:=IF(T22=1,TS21+0.03,TS21); TS23:=IF(T23=1,TS22+0.03,TS22); TS24:=IF(T24=1,TS23+0.03,TS23); TS25:=IF(T25=1,TS24+0.03,TS24); TS26:=IF(T26=1,TS25+0.03,TS25); TS27:=IF(T27=1,TS26+0.03,TS26); TS28:=IF(T28=1,TS27+0.03,TS27); TS29:=IF(T29=1,TS28+0.03,TS28); TS30:=IF(T30=1,TS29+0.03,TS29); TS31:=IF(T31=1,TS30+0.03,TS30); TS32:=IF(T32=1,TS31+0.03,TS31); TS33:=IF(T33=1,TS32+0.03,TS32); TS34:=IF(T34=1,TS33+0.03,TS33); TS35:=IF(T35=1,TS34+0.03,TS34); TS36:=IF(T36=1,TS35+0.03,TS35); TS37:=IF(T37=1,TS36+0.03,TS36); TS38:=IF(T38=1,TS37+0.03,TS37); TS39:=IF(T39=1,TS38+0.03,TS38); TS40:=IF(T40=1,TS39+0.03,TS39);TS42:=IF(T42=1,TS41+0.03,TS41);TS43:=IF(T43=1,TS42+0.03,TS42);DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升‖'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落‖'),COLORFFFF00 ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号‖'),COLORFFFF00 ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升‖'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖'),CO LORFFFF00 ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖'),COLORFFFF00 ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升‖'),COLORFF00FF ;DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈‖'),COLOR0000FF ;DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号‖'),COLORFFFF00 ;DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号‖'),COLORFFFF00 ;DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号‖'),COLORFFFF00 ;DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。

通达信五日持股稳赢指标源码无未来函数

通达信五日持股稳赢指标源码无未来函数

通达信五日持股稳赢指标源码无未来函数通达信是国内最为流行的股票软件之一,具有丰富的功能和指标。

其中,五日持股稳赢指标是一种常用的技术指标,可以用来判断股票的买入和卖出时机。

本文将介绍通达信五日持股稳赢指标的源码,帮助读者了解其原理和应用。

五日持股稳赢指标是一种基于股票价格和成交量的技术指标,用于判断股票的强势和弱势。

其计算方法相对简单,通过比较股票的收盘价和成交量,来判断股票的走势和买卖信号。

以下是通达信五日持股稳赢指标的源码:```python# 导入通达信数据接口模块import tdx# 获取股票的收盘价和成交量数据close_price = tdx.get_close_price('000001.SZ', 5) # 获取五日收盘价数据volume = tdx.get_volume('000001.SZ', 5) # 获取五日成交量数据# 计算五日持股稳赢指标indicator = []for i in range(5):if close_price[i] > close_price[i-1] and volume[i] > volume[i-1]:indicator.append(1) # 买入信号elif close_price[i] < close_price[i-1] and volume[i] < volume[i-1]:indicator.append(-1) # 卖出信号else:indicator.append(0) # 无信号# 输出五日持股稳赢指标print(indicator)```以上是通达信五日持股稳赢指标的源码,通过导入通达信数据接口模块,可以获取股票的收盘价和成交量数据。

然后,通过比较前一日和当日的收盘价和成交量,来判断股票的走势和买卖信号。

如果当日的收盘价和成交量均大于前一日,则为买入信号;如果当日的收盘价和成交量均小于前一日,则为卖出信号;如果收盘价和成交量都没有变化,则为无信号。

通达信指标公式源码K线解盘 主图源码

通达信指标公式源码K线解盘 主图源码

在判断股票日后趋势的时候必然要用到一些小k线组合的知识,这个指标就涉及到了平常最常用的一些k线组合形态,从而自动判断后势股价的涨跌。

{K线形态解盘}TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));AAA:=CONST(HHV(H,90));BBB:=CONST(LLV(L,100));DRAWBAND(AAA,RGB(50,100,00),BBB,RGB(00,00,00));MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,60);MA5:MA(CLOSE,120);DRAWKLINE(H,O,L,C);T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 ANDREF(OPEN,1)> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) ANDMIN(CLOSE,OPEN)> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1) ,REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 ANDABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2) -REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1) <=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE, 2))<=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) ANDREF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2)AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)>REF(OPEN,1)AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) ANDREF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) ANDCLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0)); T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1) <REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND(CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) ANDCLOSE>OPENAND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR(REF(CLOSE,1)>REF(OPEN,1)AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1)),1,0));T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));T40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,TS5+0.03,TS5);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12=1,TS11+0.03,TS11);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T18=1,TS17+0.03,TS17);TS19:=IF(T19=1,TS18+0.03,TS18);TS20:=IF(T20=1,TS19+0.03,TS19);TS21:=IF(T21=1,TS20+0.03,TS20);TS22:=IF(T22=1,TS21+0.03,TS21);TS23:=IF(T23=1,TS22+0.03,TS22);TS24:=IF(T24=1,TS23+0.03,TS23);TS25:=IF(T25=1,TS24+0.03,TS24);TS26:=IF(T26=1,TS25+0.03,TS25);TS27:=IF(T27=1,TS26+0.03,TS26);TS28:=IF(T28=1,TS27+0.03,TS27);TS29:=IF(T29=1,TS28+0.03,TS28);TS30:=IF(T30=1,TS29+0.03,TS29);TS31:=IF(T31=1,TS30+0.03,TS30);TS32:=IF(T32=1,TS31+0.03,TS31);TS33:=IF(T33=1,TS32+0.03,TS32);TS34:=IF(T34=1,TS33+0.03,TS33);TS35:=IF(T35=1,TS34+0.03,TS34);TS36:=IF(T36=1,TS35+0.03,TS35);TS37:=IF(T37=1,TS36+0.03,TS36);TS38:=IF(T38=1,TS37+0.03,TS37);TS39:=IF(T39=1,TS38+0.03,TS38);TS40:=IF(T40=1,TS39+0.03,TS39);TS41:=IF(T41=1,TS40+0.03,TS40);TS42:=IF(T42=1,TS41+0.03,TS41);TS43:=IF(T43=1,TS42+0.03,TS42);DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升‖'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落‖'),COLORFFFF00 ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号‖'),COLORFFFF00 ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升‖'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖'),COLORFFFF00 ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖'),COLORFFFF00 ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升‖'),COLORFF00FF ;DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈‖'),COLOR0000FF ;DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号‖'),COLORFFFF00 ;DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号‖'),COLORFFFF00 ;DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号‖'),COLORFFFF00 ;DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。

通达信指标公式源码 分时主图 打板 做t 追涨

通达信指标公式源码 分时主图 打板 做t 追涨

使用说明:1,加入量比指标,粉色条:量比>5, 兰色条:量比>2.5,2,macd大家不用教,3,彩带是分时均线,做t.结合macd,粉进兰出。

4,分时线变桔黄色,涨停可能较大,如左上角三色带全紫,涨幅不大可追!(新手慎为)5,狮子,红球,金指,均为强势信号,如多指标共振,果断杀入!指标只做参考,同一只枪,高手弹无虚发,低手可能自伤,祝大家投顺利!无法导入的用这个去掉了左上角色条先建一引用公式否则左上角色条不显示引用公式源码如下{FSKY 分时K线引用}今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);源码:{反转MACD 参数: p, 0, 20, 4;}{前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=200/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,355,0);A2:=IF(ZX>=KP,0,355);A3:=IF(ZX>=KP,0,0);DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,355,0);A5:=IF(昨收>=昨开,0,355);A6:=IF(昨收>=昨开,0,0);DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,355,0);A8:=IF(前收>=前开,0,355);A9:=IF(前收>=前开,0,0);DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}RC:=DYNAINFO( 3);量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933;量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF; DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));{首次起爆}TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:SUM(C*V,TT)/SUM(V,TT),LINETHICK1,COLOR00FFE1;{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*2 ;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=C/DYNAINFO(3)<=1.02;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VC:=BARSSINCE(每日一点)+1;首次起爆价:REF(C,VC-1),NODRAW;今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:REF(TIME/10000,VC),NODRAW;已爆分钟:VC-1,NODRAW;首次起爆量:=REF(VOL,VC-1);DRAWICON(已爆分钟>=2,RC-0.1,11);{出现金手指,至少已经确认2分钟了}; {MACD P:1,20,4;}{RC:=DYNAINFO( 3);}S2:=SMA(C,2,1);S6:=SMA(C,6,1);DK:=2*(S2-S6);STICKLINE(DK>0,RC,RC+DK,0,1),COLOR0000AA;STICKLINE(DK<0,RC,RC+DK,0,1),COLOR00AA00;AP1:=REF(C,P)=HHV(C,2*P+1);BB1:=FILTER(AP1,P);CC1:=BACKSET(BB1,P+1);DD1:=FILTER(CC1,P);{高点}AP2:=REF(C,P)=LLV(C,2*P+1);BB2:=FILTER(AP2,P);CC2:=BACKSET(BB2,P+1);DD2:=FILTER(CC2,P);{低点}上:=REF(C,BARSLAST(DD1)),COLORFF00FF,NODRAW;下:=REF(C,BARSLAST(DD2)),COLOR00FF00,NODRAW;相对能量:(C-下)/(上-下)*100,COLORYELLOW,NODRAW;R11:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);S11:=R11>REF(R11,1);压力线:DRAWLINE(DD1,C,S11,C,1),COLOR00FF00;T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);U11:=T11>REF(T11,1);支撑线:DRAWLINE(DD2,C,U11,C,1),COLOR00FFFF;STICKLINE(C>0,下,下,1,0),COLOR00FF00;STICKLINE(C>0,上,上,1,0),COLORFF00FF;DRAWNUMBER(ISLASTBAR,压力线,压力线),COLOR00FF00; DRAWNUMBER(ISLASTBAR,支撑线,支撑线),COLOR00FFFF;R1:=MA(C,13);R2:=SMA(R1,5,2);DRAWBAND(R1,RGB(255,0,125),R2,RGB(0,111,255));C,LINETHICK2,COLORDDDDDD;{涨停}地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);涨停:IF(DYNAINFO(7)>地,1,0),NODRAW,COLOR0088FF;涨:=IF(涨停=1,C+0.0075,DRAWNULL),COLOR8000FF,LINETHICK2; DRAWBAND(涨,RGB(255,211,0),C-0.0075,RGB(255,125,0));时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));STICKLINE(时间=1,CS1,CS2,1.2,0),COLOR008888;均价A:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;{CONST(IF(时间,HHV(H,0),REF(HHV(H,0),N))),COLOR000066,DOTLINE; CONST(IF(时间,LLV(L,0),REF(LLV(L,0),N))),COLOR006600,DOTLINE; CONST(IF(N,LLV(L,1),REF(LLV(L,0),N))),COLOR888888;CONST(IF(N,HHV(L,1),REF(HHV(L,0),N))),COLOR888888;}{涨停2}AA:=BARSLAST(TIME=103000);CC:=REF(HHV(C,0),AA+1);VV:=REF(HHV(V,0),AA+1);ZF:=CC/DYNAINFO(3)<1.05;涨停2:=CROSS(C,CC) AND V>VV AND ZF,COLOR0000FF;DRAWICON(涨停2,RC-0.06,13);{开量冲板}资金:=C*IF(PERIOD=0 AND MINUTE=31,VOL,0),COLORSTICK,NODRAW;{√}冲板线:=(CAPITAL/100)*1/20,COLORCYAN,LINETHICK1,NODRAW;单量必板线:=资金>1000;{分时图单量超1000万资金};单量冲板线:=资金>冲板线AND 资金<1000;{分时图单量超500万资金}; DRAWICON(单量必板线ANDDYNAINFO(4)/DYNAINFO(3)>1.01,RC+0.03,31);{1000万处画仙人指} DRAWICON(单量冲板线ANDDYNAINFO(4)/DYNAINFO(3)>1.01,RC-0.03,23);{500万处画十字星,以示警戒};。

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码

分时k线(源码)引用指标名称{FSKY}预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);ZO:REF(O,1);ZC:REF(C,1);ZH:REF(H,1);ZL:REF(L,1);JO:REF(O,2);JC:REF(C,2);JH:REF(H,2);JL:REF(L,2);JO3:REF(O,3);JC3:REF(C,3);JH3:REF(H,3);JL3:REF(L,3);JO4:REF(O,4);JC4:REF(C,4);JH4:REF(H,4);JL4:REF(L,4);JO5:REF(O,5);JC5:REF(C,5);JH5:REF(H,5);JL5:REF(L,5);JO6:REF(O,6);JC6:REF(C,6);JH6:REF(H,6);JL6:REF(L,6);JO7:REF(O,7);JC7:REF(C,7);JH7:REF(H,7);JL7:REF(L,7);JO8:REF(O,8);JC8:REF(C,8);JH8:REF(H,8);JL8:REF(L,8);MA2:MA(C,2);MA3:MA(C,3);MA4:MA(C,4);MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA60:MA(C,60);上涨家数:INDEXADV;下跌家数:INDEXDEC;{分时K线}D0:=HOUR=9 AND MINUTE=30;D1:=HOUR=9 AND MINUTE=40;D2:=HOUR=9 AND MINUTE=50;D3:=HOUR=10 AND MINUTE=0;D4:=HOUR=10 AND MINUTE=30;D5:=HOUR=11 AND MINUTE=0;D6:=HOUR=13 AND MINUTE=0;D7:=HOUR=13 AND MINUTE=30;D8:=HOUR=14 AND MINUTE=0;D9:=HOUR=14 AND MINUTE=30;D10:=HOUR=14 AND MINUTE=40;D11:=HOUR=14 AND MINUTE=50;D12:=HOUR=14 AND MINUTE=55;D0D:=IF(D0=0,C,DRAWNULL);D1D:=IF(D1=1,C,DRAWNULL);D2D:=IF(D2=1,C,DRAWNULL);D3D:=IF(D3=1,C,DRAWNULL);D4D:=IF(D4=1,C,DRAWNULL);D5D:=IF(D5=1,C,DRAWNULL);D6D:=IF(D6=1,C,DRAWNULL);D7D:=IF(D7=1,C,DRAWNULL);D8D:=IF(D8=1,C,DRAWNULL);D9D:=IF(D9=1,C,DRAWNULL);D10D:=IF(D10=1,C,DRAWNULL);D11D:=IF(D11=1,C,DRAWNULL);D12D:=IF(D12=1,C,DRAWNULL);时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE; CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))); {STICKLINE(时间=1,CS1,CS2,-1,0),COLORGREEN;}DA:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】'); DRAWTEXT_FIX(DA,0.85,0.01,0,AA),COLORWHITE;{分时量}预测量:="FSKY.预测量#DAY";主买:="FSKY.主买#DAY";前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=500/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,255,0);A2:=IF(ZX>=KP,0,255);A3:=IF(ZX>=KP,0,255);{DRAWRECTREL(0,80,MM*预测量,110,RGB(90,90,90)); DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));DRAWRECTREL(0,80,MM*主买,110,RGB(250,250,280));}昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,255,0);A5:=IF(昨收>=昨开,0,255);A6:=IF(昨收>=昨开,0,255);{DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));}前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,255,0);A8:=IF(前收>=前开,0,255);A9:=IF(前收>=前开,0,255);{DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}{分时K线}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*4000;CL:=500-(ZX/ZS-1)*4000;HI:=500-(ZG/ZS-1)*4000;LO:=500-(ZD/ZS-1)*4000;N1:=IF(TIME>=130000 OR TIME<91500,360,860); DRAWRECTREL(N1+4,OP,N1+8,HI,RGB(255,0,255)); DRAWRECTREL(N1+4,CL,N1+8,LO,RGB(0,128,0));Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1-10,OP,N1+22,CL,RGB(Q1,Q2,Q3)); ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*4000;ZCP:=500-(ZC/ZS-1)*4000;ZZG:=500-(ZH/ZS-1)*4000;ZZD:=500-(ZL/ZS-1)*4000;DRAWRECTREL(N1-36,ZKP,N1-32,ZZG,RGB(255,0,255)); DRAWRECTREL(N1-36,ZCP,N1-32,ZZD,RGB(0,128,0));Q4:=IF(ZC>=ZO,255,0);Q5:=IF(ZC>=ZO,0,255);Q6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1-49,ZKP,N1-17,ZCP,RGB(Q4,Q5,Q6)); JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";JH:="FSKY.JH#DAY";JL:="FSKY.JL#DAY";ZZKP:=500-(JO/ZS-1)*4000;ZZCP:=500-(JC/ZS-1)*4000;ZZZG:=500-(JH/ZS-1)*4000;ZZZD:=500-(JL/ZS-1)*4000;DRAWRECTREL(N1-76,ZZKP,N1-72,ZZZG,RGB(255,0,255)); DRAWRECTREL(N1-76,ZZCP,N1-72,ZZZD,RGB(0,128,0)); Q7:=IF(JC>=JO,255,0);Q8:=IF(JC>=JO,0,255);Q9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-89,ZZKP,N1-57,ZZCP,RGB(Q7,Q8,Q9)); JO3:="FSKY.JO3#DAY";JC3:="FSKY.JC3#DAY";JH3:="FSKY.JH3#DAY";JL3:="FSKY.JL3#DAY";ZZKP3:=500-(JO3/ZS-1)*4000;ZZCP3:=500-(JC3/ZS-1)*4000;ZZZG3:=500-(JH3/ZS-1)*4000;ZZZD3:=500-(JL3/ZS-1)*4000;DRAWRECTREL(N1-116,ZZKP3,N1-112,ZZZG3,RGB(255,0,255)); DRAWRECTREL(N1-116,ZZCP3,N1-112,ZZZD3,RGB(0,128,0));Q10:=IF(JC3>=JO3,255,0);Q11:=IF(JC3>=JO3,0,255);Q12:=IF(JC3>=JO3,0,255);DRAWRECTREL(N1-129,ZZKP3,N1-97,ZZCP3,RGB(Q10,Q11,Q12)); JO4:="FSKY.JO4#DAY";JC4:="FSKY.JC4#DAY";JH4:="FSKY.JH4#DAY";JL4:="FSKY.JL4#DAY";ZZKP4:=500-(JO4/ZS-1)*4000;ZZCP4:=500-(JC4/ZS-1)*4000;ZZZG4:=500-(JH4/ZS-1)*4000;ZZZD4:=500-(JL4/ZS-1)*4000;DRAWRECTREL(N1-156,ZZKP4,N1-152,ZZZG4,RGB(255,0,255)); DRAWRECTREL(N1-156,ZZCP4,N1-152,ZZZD4,RGB(0,128,0));Q13:=IF(JC4>=JO4,255,0);Q14:=IF(JC4>=JO4,0,255);Q15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-169,ZZKP4,N1-137,ZZCP4,RGB(Q13,Q14,Q15)); JO5:="FSKY.JO5#DAY";JC5:="FSKY.JC5#DAY";JH5:="FSKY.JH5#DAY";JL5:="FSKY.JL5#DAY";ZZKP5:=500-(JO5/ZS-1)*4000;ZZCP5:=500-(JC5/ZS-1)*4000;ZZZG5:=500-(JH5/ZS-1)*4000;ZZZD5:=500-(JL5/ZS-1)*4000;DRAWRECTREL(N1-196,ZZKP5,N1-192,ZZZG5,RGB(255,0,255)); DRAWRECTREL(N1-196,ZZCP5,N1-192,ZZZD5,RGB(0,128,0));Q16:=IF(JC5>=JO5,255,0);Q17:=IF(JC5>=JO5,0,255);Q18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-209,ZZKP5,N1-177,ZZCP5,RGB(Q16,Q17,Q18)); JO6:="FSKY.JO6#DAY";JC6:="FSKY.JC6#DAY";JH6:="FSKY.JH6#DAY";JL6:="FSKY.JL6#DAY";ZZKP6:=500-(JO6/ZS-1)*4000;ZZCP6:=500-(JC6/ZS-1)*4000;ZZZG6:=500-(JH6/ZS-1)*4000;ZZZD6:=500-(JL6/ZS-1)*4000;DRAWRECTREL(N1-236,ZZKP6,N1-232,ZZZG6,RGB(255,0,255)); DRAWRECTREL(N1-236,ZZCP6,N1-232,ZZZD6,RGB(0,128,0));Q19:=IF(JC6>=JO6,255,0);Q20:=IF(JC6>=JO6,0,255);Q21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-249,ZZKP6,N1-217,ZZCP6,RGB(Q19,Q20,Q21)); JO7:="FSKY.JO7#DAY";JC7:="FSKY.JC7#DAY";JH7:="FSKY.JH7#DAY";JL7:="FSKY.JL7#DAY";ZZKP7:=500-(JO7/ZS-1)*4000;ZZCP7:=500-(JC7/ZS-1)*4000;ZZZG7:=500-(JH7/ZS-1)*4000;ZZZD7:=500-(JL7/ZS-1)*4000;DRAWRECTREL(N1-276,ZZKP7,N1-272,ZZZG7,RGB(255,0,255)); DRAWRECTREL(N1-276,ZZCP7,N1-272,ZZZD7,RGB(0,128,0));Q22:=IF(JC7>=JO7,255,0);Q23:=IF(JC7>=JO7,0,255);Q24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-289,ZZKP7,N1-257,ZZCP7,RGB(Q22,Q23,Q24)); JO8:="FSKY.JO8#DAY";JC8:="FSKY.JC8#DAY";JH8:="FSKY.JH8#DAY";JL8:="FSKY.JL8#DAY";ZZKP8:=500-(JO8/ZS-1)*4000;ZZCP8:=500-(JC8/ZS-1)*4000;ZZZG8:=500-(JH8/ZS-1)*4000;ZZZD8:=500-(JL8/ZS-1)*4000;DRAWRECTREL(N1-316,ZZKP8,N1-312,ZZZG8,RGB(255,0,255)); DRAWRECTREL(N1-316,ZZCP8,N1-312,ZZZD8,RGB(0,128,0));Q25:=IF(JC8>=JO8,255,0);Q26:=IF(JC8>=JO8,0,255);Q27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-329,ZZKP8,N1-297,ZZCP8,RGB(Q25,Q26,Q27)); DRAWLINE(D0=0,D0D,D1=1,D1D,0),COLORBLUE,LINETHICK2; DRAWLINE(D1=1,D1D,D2=1,D2D,0),COLORBLUE,LINETHICK2; DRAWLINE(D2=1,D2D,D3=1,D3D,0),COLORBLUE,LINETHICK2; DRAWLINE(D9=1,D9D,D10=1,D10D,0),COLORBLUE,LINETHICK2; DRAWLINE(D10=1,D10D,D11=1,D11D,0),COLORBLUE,LINETHICK2; DRAWLINE(D11=1,D11D,D12=1,D12D,0),COLORBLUE,LINETHICK2;MA2:="FSKY.MA2#DAY";MA3:="FSKY.MA3#DAY";MA4:="FSKY.MA4#DAY";MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*4000;DRAWRECTREL(N1-3,XMA5-2,N1+15,XMA5+2,RGB(255,0,0));MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*4000;DRAWRECTREL(N1-10,XMA10-2,N1+25,XMA10+2,RGB(0,255,0));MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*4000;DRAWRECTREL(N1-20,XMA20-2,N1+35,XMA20+2,RGB(0,0,255));MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*4000;DRAWRECTREL(N1-30,XMA60-2,N1+45,XMA60+2,RGB(255,255,255));。

分时叠加5日 指标公式

分时叠加5日 指标公式

分时叠加5日指标公式
【最新版】
目录
1.分时叠加 5 日指标公式概述
2.分时叠加 5 日指标公式的计算方法
3.分时叠加 5 日指标公式的应用
4.结论
正文
一、分时叠加 5 日指标公式概述
分时叠加 5 日指标公式,是一种股票技术分析方法,主要用于研究股票的短期走势。

它将股票的当日分时图与过去五日的分时图进行叠加,从而形成一个独特的指标,以帮助投资者更好地判断股票的短期走势。

二、分时叠加 5 日指标公式的计算方法
分时叠加 5 日指标公式的计算方法较为简单,主要分为以下几个步骤:
1.获取股票的当日分时图数据。

2.获取过去五日的分时图数据。

3.将过去五日的分时图数据与当日的分时图数据进行叠加。

4.计算叠加后的分时图的均线,形成分时叠加 5 日指标。

三、分时叠加 5 日指标公式的应用
分时叠加 5 日指标公式的应用主要体现在以下几个方面:
1.判断股票的短期走势。

如果分时叠加 5 日指标呈现上升趋势,则说明股票的短期走势较好;反之,如果分时叠加 5 日指标呈现下降趋势,
则说明股票的短期走势较差。

2.寻找股票的买入和卖出点。

通过观察分时叠加 5 日指标的变化,投资者可以较为准确地找到股票的买入和卖出点。

3.评估股票的风险。

分时叠加 5 日指标可以帮助投资者评估股票的风险,从而更好地进行投资决策。

{分时写入五日K线} 通达信指标公式源码

{分时写入五日K线} 通达信指标公式源码

{分时写入五日K线}{幅图---名字写分时引用} O1:REF(O,1);C1:REF(C,1);H1:REF(H,1);L1:REF(L,1);O2:REF(O,2);C2:REF(C,2);H2:REF(H,2);L2:REF(L,2);O3:REF(O,3);C3:REF(C,3);H3:REF(H,3);L3:REF(L,3);O4:REF(O,4);C4:REF(C,4);H4:REF(H,4);L4:REF(L,4);O5:REF(O,5);C5:REF(C,5);H5:REF(H,5);L5:REF(L,5);O6:REF(O,6);C6:REF(C,6);H6:REF(H,6);L6:REF(L,6);{放到分时主图代码最前面} O5:="分时引用.O5#DAY"; C5:="分时引用.C5#DAY"; H5:="分时引用.H5#DAY"; L5:="分时引用.L5#DAY"; O4:="分时引用.O4#DAY"; C4:="分时引用.C4#DAY"; H4:="分时引用.H4#DAY"; L4:="分时引用.L4#DAY"; O3:="分时引用.O3#DAY"; C3:="分时引用.C3#DAY"; H3:="分时引用.H3#DAY"; L3:="分时引用.L3#DAY"; O2:="分时引用.O2#DAY"; C2:="分时引用.C2#DAY"; H2:="分时引用.H2#DAY"; L2:="分时引用.L2#DAY";O1:="分时引用.O1#DAY";C1:="分时引用.C1#DAY";H1:="分时引用.H1#DAY";L1:="分时引用.L1#DAY";O0:=DYNAINFO(4);C0:=DYNAINFO(7);H0:=DYNAINFO(5);L0:=DYNAINFO(6);HH1:=MAX(H1,H2);HH2:=MAX(H3,H4);HH3:=MAX(MAX(H0,H5),MAX(HH1,HH2));LL1:=MIN(L1,L2);LL2:=MIN(L3,L4);LL3:=MIN(MIN(L0,L5),MIN(LL1,LL2));HL:=999/(HH3-LL3);C52:=999-((C5-LL3)*HL);H52:=999-((H5-LL3)*HL);L52:=999-((L5-LL3)*HL);O52:=999-((O5-LL3)*HL);C42:=999-((C4-LL3)*HL);H42:=999-((H4-LL3)*HL);L42:=999-((L4-LL3)*HL);O42:=999-((O4-LL3)*HL);C32:=999-((C3-LL3)*HL);H32:=999-((H3-LL3)*HL);L32:=999-((L3-LL3)*HL);O32:=999-((O3-LL3)*HL);C22:=999-((C2-LL3)*HL);H22:=999-((H2-LL3)*HL);L22:=999-((L2-LL3)*HL);O22:=999-((O2-LL3)*HL);C12:=999-((C1-LL3)*HL);H12:=999-((H1-LL3)*HL);L12:=999-((L1-LL3)*HL);O12:=999-((O1-LL3)*HL);C02:=999-((C0-LL3)*HL);H02:=999-((H0-LL3)*HL);L02:=999-((L0-LL3)*HL);O02:=999-((O0-LL3)*HL);DRAWRECTREL( 8,H52, 8,L52,RGB(IF(C5>=O5,200,0),IF(C5>=O5,0,200),0)); DRAWRECTREL( 0,C52,16,O52,RGB(IF(C5>=O5,128,0),IF(C5>=O5,0,128),0)); DRAWRECTREL(28,H42,28,L42,RGB(IF(C4>=O4,200,0),IF(C4>=O4,0,200),0)); DRAWRECTREL(20,C42,36,O42,RGB(IF(C4>=O4,128,0),IF(C4>=O4,0,128),0)); DRAWRECTREL(48,H32,48,L32,RGB(IF(C3>=O3,200,0),IF(C3>=O3,0,200),0));DRAWRECTREL(40,C32,56,O32,RGB(IF(C3>=O3,128,0),IF(C3>=O3,0,128),0)); DRAWRECTREL(68,H22,68,L22,RGB(IF(C2>=O2,200,0),IF(C2>=O2,0,200),0)); DRAWRECTREL(60,C22,76,O22,RGB(IF(C2>=O2,128,0),IF(C2>=O2,0,128),0)); DRAWRECTREL(88,H12,88,L12,RGB(IF(C1>=O1,200,0),IF(C1>=O1,0,200),0)); DRAWRECTREL(80,C12,96,O12,RGB(IF(C1>=O1,128,0),IF(C1>=O1,0,128),0)); DRAWRECTREL(108,H02,108,L02,RGB(IF(C0>=O0,200,0),IF(C0>=O0,0,200),0)); DRAWRECTREL(100,C02,116,O02,RGB(IF(C0>=O0,128,0),IF(C0>=O0,0,128),0));。

分时买卖通达信指标公式源码

分时买卖通达信指标公式源码

分时买卖通达信指标公式源码```pythonstudy(title="分时买卖通达信指标", shorttitle="FTB",overlay=true)highPrice = highlowPrice = lowavgPrice = (highPrice + lowPrice) / 2ptVolume = volumeftVolume = na(volume) ? volume : ptVolumecalcStep = 5ptChanges = abs(change(avgPrice) / avgPrice) * 100ftChanges = na(ptChanges) ? ptChanges : sum(ptChanges, calcStep)ftBuyV = ftVolume * (ftVolume >= ftVolume[1] ? ftChanges : 0) ftSellV = ftVolume * (ftVolume <= ftVolume[1] ? ftChanges : 0)ftBuySum = cum(ftBuyV)ftSellSum = cum(ftSellV)ftBuyRatio = ftBuySum / ftSellSum * 100plot(ftBuyRatio, title="FTB", color=ftBuyRatio >= 100 ?green : red)```这段代码是使用Pine Script语言编写的分时买卖通达信指标。

以下是代码的解释:-第2行:设定指标的标题和简称,并调整指标显示在主图上。

-第4-7行:计算最高价、最低价和平均价。

-第9行:设定普通交易的成交量。

-第10行:判断是否存在分时买卖信号,如果没有则将成交量设为普通交易的成交量,否则设为分时交易成交量。

-第12行:设定计算步长为5-第14行:计算价格变动百分比。

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码分时k线(源码)引用指标名称{FSKY}预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<="" p=""> 今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);ZO:REF(O,1);ZC:REF(C,1);ZH:REF(H,1);ZL:REF(L,1);JO:REF(O,2);JC:REF(C,2);JH:REF(H,2);JL:REF(L,2);JO3:REF(O,3);JC3:REF(C,3);JH3:REF(H,3);JL3:REF(L,3);JO4:REF(O,4);JC4:REF(C,4);JH4:REF(H,4);JL4:REF(L,4);JO5:REF(O,5);JC5:REF(C,5);JH5:REF(H,5);JL5:REF(L,5);JO6:REF(O,6);JC6:REF(C,6);JH6:REF(H,6);JL6:REF(L,6);JO7:REF(O,7);JC7:REF(C,7);JH7:REF(H,7);JL7:REF(L,7);JO8:REF(O,8);JC8:REF(C,8);JH8:REF(H,8);JL8:REF(L,8);MA2:MA(C,2);MA3:MA(C,3);MA4:MA(C,4);MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA60:MA(C,60);上涨家数:INDEXADV;下跌家数:INDEXDEC;{分时K线}D0:=HOUR=9 AND MINUTE=30; D1:=HOUR=9 AND MINUTE=40;D2:=HOUR=9 AND MINUTE=50;D3:=HOUR=10 AND MINUTE=0;D4:=HOUR=10 AND MINUTE=30;D5:=HOUR=11 AND MINUTE=0;D6:=HOUR=13 AND MINUTE=0;D7:=HOUR=13 AND MINUTE=30;D8:=HOUR=14 AND MINUTE=0;D9:=HOUR=14 AND MINUTE=30;D10:=HOUR=14 AND MINUTE=40;D11:=HOUR=14 AND MINUTE=50;D12:=HOUR=14 AND MINUTE=55;D0D:=IF(D0=0,C,DRAWNULL);D1D:=IF(D1=1,C,DRAWNULL);D2D:=IF(D2=1,C,DRAWNULL);D3D:=IF(D3=1,C,DRAWNULL);D4D:=IF(D4=1,C,DRAWNULL);D5D:=IF(D5=1,C,DRAWNULL);D6D:=IF(D6=1,C,DRAWNULL);D7D:=IF(D7=1,C,DRAWNULL);D8D:=IF(D8=1,C,DRAWNULL);D9D:=IF(D9=1,C,DRAWNULL);D10D:=IF(D10=1,C,DRAWNULL);D11D:=IF(D11=1,C,DRAWNULL);D12D:=IF(D12=1,C,DRAWNULL);时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE; CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))); {STICKLINE(时间=1,CS1,CS2,-1,0),COLORGREEN;}DA:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】'); DRAWTEXT_FIX(DA,0.85,0.01,0,AA),COLORWHITE;{分时量}预测量:="FSKY.预测量#DAY";主买:="FSKY.主买#DAY";前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=500/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,255,0);A2:=IF(ZX>=KP,0,255);A3:=IF(ZX>=KP,0,255);{DRAWRECTREL(0,80,MM*预测量,110,RGB(90,90,90)); DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));DRAWRECTREL(0,80,MM*主买,110,RGB(250,250,280));}昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,255,0);A5:=IF(昨收>=昨开,0,255);A6:=IF(昨收>=昨开,0,255);{DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));}前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,255,0);A8:=IF(前收>=前开,0,255);A9:=IF(前收>=前开,0,255);{DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}{分时K线}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*4000;CL:=500-(ZX/ZS-1)*4000;HI:=500-(ZG/ZS-1)*4000;LO:=500-(ZD/ZS-1)*4000;N1:=IF(TIME>=130000 OR TIME<91500,360,860); DRAWRECTREL(N1+4,OP,N1+8,HI,RGB(255,0,255)); DRAWRECTREL(N1+4,CL,N1+8,LO,RGB(0,128,0));Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1-10,OP,N1+22,CL,RGB(Q1,Q2,Q3));ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*4000;ZCP:=500-(ZC/ZS-1)*4000;ZZG:=500-(ZH/ZS-1)*4000;ZZD:=500-(ZL/ZS-1)*4000;DRAWRECTREL(N1-36,ZKP,N1-32,ZZG,RGB(255,0,255)); DRAWRECTREL(N1-36,ZCP,N1-32,ZZD,RGB(0,128,0));Q4:=IF(ZC>=ZO,255,0);Q5:=IF(ZC>=ZO,0,255);Q6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1-49,ZKP,N1-17,ZCP,RGB(Q4,Q5,Q6)); JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";JH:="FSKY.JH#DAY";JL:="FSKY.JL#DAY";ZZKP:=500-(JO/ZS-1)*4000;ZZCP:=500-(JC/ZS-1)*4000;ZZZG:=500-(JH/ZS-1)*4000;ZZZD:=500-(JL/ZS-1)*4000;DRAWRECTREL(N1-76,ZZKP,N1-72,ZZZG,RGB(255,0,255)); DRAWRECTREL(N1-76,ZZCP,N1-72,ZZZD,RGB(0,128,0));Q7:=IF(JC>=JO,255,0);Q8:=IF(JC>=JO,0,255);Q9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-89,ZZKP,N1-57,ZZCP,RGB(Q7,Q8,Q9)); JO3:="FSKY.JO3#DAY";JC3:="FSKY.JC3#DAY";JH3:="FSKY.JH3#DAY";JL3:="FSKY.JL3#DAY";ZZKP3:=500-(JO3/ZS-1)*4000;ZZCP3:=500-(JC3/ZS-1)*4000;ZZZD3:=500-(JL3/ZS-1)*4000;DRAWRECTREL(N1-116,ZZKP3,N1-112,ZZZG3,RGB(255,0,255)); DRAWRECTREL(N1-116,ZZCP3,N1-112,ZZZD3,RGB(0,128,0));Q10:=IF(JC3>=JO3,255,0);Q11:=IF(JC3>=JO3,0,255);Q12:=IF(JC3>=JO3,0,255);DRAWRECTREL(N1-129,ZZKP3,N1-97,ZZCP3,RGB(Q10,Q11,Q12)); JO4:="FSKY.JO4#DAY";JC4:="FSKY.JC4#DAY";JH4:="FSKY.JH4#DAY";JL4:="FSKY.JL4#DAY";ZZKP4:=500-(JO4/ZS-1)*4000;ZZCP4:=500-(JC4/ZS-1)*4000;ZZZG4:=500-(JH4/ZS-1)*4000;ZZZD4:=500-(JL4/ZS-1)*4000;DRAWRECTREL(N1-156,ZZKP4,N1-152,ZZZG4,RGB(255,0,255)); DRAWRECTREL(N1-156,ZZCP4,N1-152,ZZZD4,RGB(0,128,0));Q13:=IF(JC4>=JO4,255,0);Q14:=IF(JC4>=JO4,0,255);Q15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-169,ZZKP4,N1-137,ZZCP4,RGB(Q13,Q14,Q15)); JO5:="FSKY.JO5#DAY";JC5:="FSKY.JC5#DAY";JH5:="FSKY.JH5#DAY";JL5:="FSKY.JL5#DAY";ZZKP5:=500-(JO5/ZS-1)*4000;ZZCP5:=500-(JC5/ZS-1)*4000;ZZZD5:=500-(JL5/ZS-1)*4000;DRAWRECTREL(N1-196,ZZKP5,N1-192,ZZZG5,RGB(255,0,255)); DRAWRECTREL(N1-196,ZZCP5,N1-192,ZZZD5,RGB(0,128,0));Q16:=IF(JC5>=JO5,255,0);Q17:=IF(JC5>=JO5,0,255);Q18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-209,ZZKP5,N1-177,ZZCP5,RGB(Q16,Q17,Q18)); JO6:="FSKY.JO6#DAY";JC6:="FSKY.JC6#DAY";JH6:="FSKY.JH6#DAY";JL6:="FSKY.JL6#DAY";ZZKP6:=500-(JO6/ZS-1)*4000;ZZCP6:=500-(JC6/ZS-1)*4000;ZZZG6:=500-(JH6/ZS-1)*4000;ZZZD6:=500-(JL6/ZS-1)*4000;DRAWRECTREL(N1-236,ZZKP6,N1-232,ZZZG6,RGB(255,0,255)); DRAWRECTREL(N1-236,ZZCP6,N1-232,ZZZD6,RGB(0,128,0));Q19:=IF(JC6>=JO6,255,0);Q20:=IF(JC6>=JO6,0,255);Q21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-249,ZZKP6,N1-217,ZZCP6,RGB(Q19,Q20,Q21)); JO7:="FSKY.JO7#DAY";JC7:="FSKY.JC7#DAY";JH7:="FSKY.JH7#DAY";JL7:="FSKY.JL7#DAY";ZZKP7:=500-(JO7/ZS-1)*4000;ZZCP7:=500-(JC7/ZS-1)*4000;ZZZD7:=500-(JL7/ZS-1)*4000;DRAWRECTREL(N1-276,ZZKP7,N1-272,ZZZG7,RGB(255,0,255)); DRAWRECTREL(N1-276,ZZCP7,N1-272,ZZZD7,RGB(0,128,0));Q22:=IF(JC7>=JO7,255,0);Q23:=IF(JC7>=JO7,0,255);Q24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-289,ZZKP7,N1-257,ZZCP7,RGB(Q22,Q23,Q24)); JO8:="FSKY.JO8#DAY";JC8:="FSKY.JC8#DAY";JH8:="FSKY.JH8#DAY";JL8:="FSKY.JL8#DAY";ZZKP8:=500-(JO8/ZS-1)*4000;ZZCP8:=500-(JC8/ZS-1)*4000;ZZZG8:=500-(JH8/ZS-1)*4000;ZZZD8:=500-(JL8/ZS-1)*4000;DRAWRECTREL(N1-316,ZZKP8,N1-312,ZZZG8,RGB(255,0,255)); DRAWRECTREL(N1-316,ZZCP8,N1-312,ZZZD8,RGB(0,128,0));Q25:=IF(JC8>=JO8,255,0);Q26:=IF(JC8>=JO8,0,255);Q27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-329,ZZKP8,N1-297,ZZCP8,RGB(Q25,Q26,Q27));DRAWLINE(D0=0,D0D,D1=1,D1D,0),COLORBLUE,LINETHICK2; DRAWLINE(D1=1,D1D,D2=1,D2D,0),COLORBLUE,LINETHICK2; DRAWLINE(D2=1,D2D,D3=1,D3D,0),COLORBLUE,LINETHICK2; DRAWLINE(D9=1,D9D,D10=1,D10D,0),COLORBLUE,LINETHICK2; DRAWLINE(D10=1,D10D,D11=1,D11D,0),COLORBLUE,LINETHICK2;DRAWLINE(D11=1,D11D,D12=1,D12D,0),COLORBLUE,LINETHICK 2;MA2:="FSKY.MA2#DAY";MA3:="FSKY.MA3#DAY";MA4:="FSKY.MA4#DAY";MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*4000;DRAWRECTREL(N1-3,XMA5-2,N1+15,XMA5+2,RGB(255,0,0));MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*4000;DRAWRECTREL(N1-10,XMA10-2,N1+25,XMA10+2,RGB(0,255,0));MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*4000;DRAWRECTREL(N1-20,XMA20-2,N1+35,XMA20+2,RGB(0,0,255));MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*4000;DRAWRECTREL(N1-30,XMA60-2,N1+45,XMA60+2,RGB(255,255,255));。

通达信指标公式源码 资金攻击量(分时可用)

通达信指标公式源码 资金攻击量(分时可用)

{中轴设置}昨收:=DYNAINFO(3);HH:=DYNAINFO(5);LL:=DYNAINFO(6);FK:=MAX(HH-昨收,昨收-LL)*0.1;ZS:=昨收-FK*3.2;Q1:=昨收-FK*3.22;Q2:=昨收-1*FK*3.22;Q3:=昨收-5*FK*3.2;TJ:=FILTER(C,239)>0,NODRAW;TJJ:=SUM(TJ,0),NODRAW;TJA:=CONST(TJJ),NODRAW;流通盘:CAPITAL*100/100000000,NODRAW;资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00; 资金出入:=资金流入+资金流出,COLORSTICK;NN:=2400;HD:=HHV(资金出入,NN);LD:=LLV(资金出入,NN);最高:=CONST(HD),NODRAW;最低:=CONST(LD),NODRAW;HLMAX:=最高;HLMIN:=最低;HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2*1.3;HLMN4:=(100-0)/1*1.3;中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;轴差:=最高-最低;DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0));资金流量:资金出入,COLORFFFFFF,LINETHICK1;资金比:资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPE N;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0; 攻击流量:攻击量A+攻击量B,COLORSTICK;NOTEXT攻击线:攻击流量,COLORYELLOW,LINETHICK1;攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));{STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;}DRAWRECTREL(110,10,400,90,RGB(0,75,200));DRAWRECTREL(110,10,250,90,RGB(0,250,50));DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(200,50,0)); DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;DRAWRECTREL(610,10,900,90,RGB(0,75,200));DRAWRECTREL(610,10,750,90,RGB(0,250,50));DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(175,50,0)); DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;量:=VOL,VOLSTICK;五日量:=MA(量,5),COLORWHITE;TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*1;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VV:=BARSSINCE(每日一点)+1;首次起爆价:=REF(C,VV-1),NODRAW;起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:=REF(TIME/10000,VV),NODRAW;已爆分钟:=VV-1,NODRAW;{画出底线和红球}首次起爆量:=REF(VOL,VV-1);DRAWICON(已爆分钟>=2,最低,13);{出现红球,至少已经确认2分钟了};MMA30:=EMA(CLOSE,30);强弱界定:=IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL);分时均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU))) /SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AM OUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))) );二十☆:=EXPMA((DCLOSE/VBNH),20),COLORRED,LINETHICK1;六十★:=EXPMA((DCLOSE/VBNH),60),COLORLIGREEN,LINETHICK1;FAA:=BARSLAST(TIME=100000);FCC:=REF(HHV(C,0),FAA+1);FVV:=REF(HHV(V,0),FAA+1);ZF:=FCC/DYNAINFO(3)<1.05;XG1:=CROSS(C,FCC) AND V>FVV AND ZF,COLORWHITE;FAA1:=BARSLAST(TIME=110000);FCC1:=REF(HHV(C,0),FAA1+1);FVV1:=REF(HHV(V,0),FAA1+1);ZF1:=FCC1/DYNAINFO(3)<1.05;XG2:=CROSS(C,FCC1) AND V>FVV1 AND ZF1,COLORYELLOW;突破:=XG1 OR XG2,COLORRED;VT:=BARSSINCE(突破)+1;首次突破价:=REF(C,VT-1),NODRAW;突破收益:(DYNAINFO(7)-首次突破价)/首次突破价*100,NODRAW;拉升量:=IF(C>REF(C,1),VOL,0);昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW;攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,最低,1,0),COLORCYAN;STICKLINE(每日一点,最低+轴差*0.65,最低,1,0),COLORMAGENTA;STICKLINE(突破,最低+轴差*0.50,最低,1,0),COLORWHITE;STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,最低,1,0),COLORYELLOW;STICKLINE(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低,最低+轴差*0.2,1,0),COLORGREEN; DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,1); DRAWICON(每日一点,最低+轴差*0.65,1);DRAWICON(突破,最低+轴差*0.50,17);DRAWICON(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,9);{ M}DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,'☆攻击'),COLORCYAN;DRAWTEXT(每日一点,最低+轴差*0.65,'∠起爆'),COLORGREEN;DRAWNUMBER(每日一点,最低+轴差*0.55,首次起爆价),COLORGREEN; {DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;};DRAWTEXT(突破,最低+轴差*0.50,'分时突破'),COLORWHITE;DRAWNUMBER(突破,最低+轴差*0.40,首次突破价),COLORWHITE;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,'★迹'),COLORYELLOW;{DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.01),MAX(资金流量,攻击流量),18);} DRAWTEXT(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,'关注'),COLORRED;。

通达信智能五日箱体主图源码

通达信智能五日箱体主图源码

通达信智能五日箱体主图源码通达信智能五日箱体主图源码MA60:=MA(CLOSE,60)COLORMAGENTA;MA120:=MA(CLOSE,120)COLORLIRED;DRAWBAND(MA(CLOSE,60),RGB(96,50,96),MA(CLOSE,120),R GB(15,96,96));STICKLINE(OPEN<=REF(LOW,5)ANDREF(LOW,WEEKDAY)<REF(LOW,5),REF(LOW,5),REF(LOW,WEEKDA Y),20,1),COLORCYAN;STICKLINE(OPEN>=REF(HIGH,5)ANDREF(HIGH,WEEKDAY)>REF(HIGH,5),REF(HIGH,5),REF(HIGH,WEEK DAY),20,01),COLORYELLOW;{阳K线}STICKLINE(CLOSE>=OPEN,C,O,4.7,0),COLOR000033;STICKLINE(CLOSE>=OPEN,C,O,3.9,0),COLOR000055;STICKLINE(CLOSE>=OPEN,C,O,3,0),COLOR000077;STICKLINE(CLOSE>=OPEN,C,O,2.1,0),COLOR000099;STICKLINE(CLOSE>=OPEN,C,O,1,0),COLOR0000DD;{阳线上下影}STICKLINE(CLOSE>=OPEN,L,H,0,0), COLORRED;{阴K线}STICKLINE(CLOSE<OPEN,C,O,4.7,0),COLOR003300;STICKLINE(CLOSE<OPEN,C,O,3.9,0),COLOR005500;STICKLINE(CLOSE<OPEN,C,O,3,0),COLOR007700;STICKLINE(CLOSE<OPEN,C,O,2.1,0),COLOR009900;STICKLINE(CLOSE<OPEN,C,O,1,0),COLOR00DD00;{阴线上下影}STICKLINE(CLOSE<OPEN,L,H,0,0), COLOR00EC00;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍} H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1,DOTLINE;DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1,DOTLINE;J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD ))+1); J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BAR SLAST(LD),H,L),0),COLORWHITE,LINETHICK1,DOTLINE;。

五彩K线公式(通达信版)

五彩K线公式(通达信版)

五彩K线公式(通达信版)五彩K线公式:K110 (早晨之星) 缺省周期:⽇线BACKSET(REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1) < REF(CLOSE,2) ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),3)五彩K线公式:K120 (黄昏之星) 缺省周期:⽇线BACKSET(REF(CLOSE,2)/REF(OPEN,2) > 1.03 ANDREF(OPEN,1) > REF(CLOSE,2) ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 ANDCLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2),3)五彩K线公式:K130 (⼗字星) 缺省周期:⽇线CLOSE=OPEN AND HIGH<>LOW五彩K线公式:K132 (长⼗字) 缺省周期:⽇线CLOSE=OPEN ANDHIGH/LOW > 1.03五彩K线公式:K134 (垂死⼗字) 缺省周期:⽇线CLOSE=OPEN ANDCLOSE=LOW ANDCLOSE<>HIGH五彩K线公式:K140 (早晨⼗字星) 缺省周期:⽇线BACKSET(REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1) < REF(CLOSE,2) ANDREF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),3)五彩K线公式:K150 (黄昏⼗字星) 缺省周期:⽇线BACKSET(REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1) > REF(CLOSE,2) ANDREF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2),3)五彩K线公式:K160 (射击之星) 缺省周期:⽇线MIN(OPEN,CLOSE)=LOW ANDHIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) ANDCLOSE > MA(CLOSE,5)五彩K线公式:K165 (倒转锤头) 缺省周期:⽇线MIN(OPEN,CLOSE)=LOW ANDHIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) ANDCLOSE < MA(CLOSE,5)五彩K线公式:K170 (锤头) 缺省周期:⽇线HIGH = MAX(OPEN,CLOSE) ANDHIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) ANDCLOSE < MA(CLOSE,5)五彩K线公式:K180 (吊颈) 缺省周期:⽇线HIGH = MAX(OPEN,CLOSE) ANDHIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) ANDCLOSE > MA(CLOSE,5)五彩K线公式:K190 (穿头破脚) 缺省周期:⽇线BACKSET((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96 ANDCLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1))OR(REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04 ANDCLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1)),2)五彩K线公式:K200 (乌云盖顶) 缺省周期:⽇线BACKSET(REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.97 ANDOPEN>REF(CLOSE,1) ANDCLOSE<REF(CLOSE,1),3)五彩K线公式:K210 (曙光初现) 缺省周期:⽇线BACKSET(REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.03 ANDOPEN<REF(CLOSE,1) ANDCLOSE>REF(CLOSE,1),2)五彩K线公式:K220 (⾝怀六甲) 缺省周期:⽇线BACKSET(ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1)),2)五彩K线公式:K230 (⼗字胎) 缺省周期:⽇线BACKSET(ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) ANDCLOSE > MIN(REF(CLOSE,1),REF(OPEN,1)),2)五彩K线公式:K240 (平顶) 缺省周期:⽇线BACKSET(ABS(HIGH-REF(HIGH,1))/HIGH<0.001,2)五彩K线公式:K250 (平底) 缺省周期:⽇线BACKSET((ABS(LOW-REF(LOW,1))/LOW<0.001 andabs(ref(low,1)-ref(low,2))/ref(low,1)<=0.001),2)五彩K线公式:K260 (⼤阳烛) 缺省周期:⽇线CLOSE/OPEN>1.05 ANDHIGH/LOW < CLOSE/OPEN+0.018五彩K线公式:K270 (⼤阴烛) 缺省周期:⽇线OPEN/CLOSE > 1.05 ANDHIGH/LOW < OPEN/CLOSE+0.018五彩K线公式:K280 (好友反攻) 缺省周期:⽇线BACKSET((REF(CLOSE,1)<REF(OPEN,1) ANDCLOSE>OPEN ANDABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)OR(REF(CLOSE,1)>REF(OPEN,1) ANDCLOSE<OPEN ANDABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),2)五彩K线公式:K290 (跳空缺⼝) 缺省周期:⽇线BACKSET(HIGH<REF(LOW,1) ORLOW>REF(HIGH,1),2)五彩K线公式:K300 (三个⽩武⼠) 缺省周期:⽇线BACKSET(REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)>REF(OPEN,1) ANDCLOSE>OPEN ANDREF(CLOSE,1)>REF(CLOSE,2) ANDCLOSE>REF(CLOSE,1),3)五彩K线公式:K310 (三只乌鸦) 缺省周期:⽇线BACKSET(REF(CLOSE,2)<REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1) ANDCLOSE<OPEN ANDREF(CLOSE,1)<REF(CLOSE,2) ANDCLOSE<REF(CLOSE,1),3)五彩K线公式:K320 (双飞乌鸦) 缺省周期:⽇线BACKSET(REF(CLOSE,1)<REF(OPEN,1) ANDCLOSE<OPEN ANDCLOSE/OPEN<0.98,1)五彩K线公式:K330 (上升三部曲) 缺省周期:⽇线BACKSET(REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) ANDREF(CLOSE,2)<REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1) ANDREF(LOW,4)<REF(LOW,3) ANDREF(LOW,4)<REF(LOW,2) ANDREF(LOW,4)<REF(LOW,1) ANDREF(HIGH,4)>REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2) ANDREF(HIGH,4)>REF(HIGH,1) ANDCLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4),5)五彩K线公式:K340 (下跌三部曲) 缺省周期:⽇线BACKSET(REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) ANDREF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)>REF(OPEN,1) ANDREF(LOW,4)<REF(LOW,3) ANDREF(LOW,4)<REF(LOW,2) ANDREF(LOW,4)<REF(LOW,1) ANDREF(HIGH,4)>REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2) ANDREF(HIGH,4)>REF(HIGH,1) ANDCLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4),5)五彩K线公式:K350 (长下影) 缺省周期:⽇线(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667五彩K线公式:K360 (长上影) 缺省周期:⽇线(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,COLORBLUE 五彩K线公式:K370 (分离) 缺省周期:⽇线BACKSET(OPEN=REF(OPEN,1) AND(CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0,2)五彩K线公式:K380 (光头阳线) 缺省周期:⽇线HIGH=CLOSE ANDHIGH<>LOW五彩K线公式:K390 (光脚阴线) 缺省周期:⽇线LOW=CLOSE ANDHIGH<>LOW五彩K线公式:K400 (孕育线) 缺省周期:⽇线参数描述: N(1,100,2)N1(1,100,2)N2(1,100,2)N3(1,100,1)BACKSET(REF(CLOSE,2)>REF(OPEN,2) AND(REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=N/100 ANDREF(OPEN,1)>=REF(CLOSE,1) AND(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=N1/100 ANDREF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) ANDC>=OPEN AND(CLOSE-OPEN)/OPEN>=N2/100AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=N3/100,3)。

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

{分时写入五日K线}
{幅图---名字写分时引用} O1:REF(O,1);
C1:REF(C,1);
H1:REF(H,1);
L1:REF(L,1);
O2:REF(O,2);
C2:REF(C,2);
H2:REF(H,2);
L2:REF(L,2);
O3:REF(O,3);
C3:REF(C,3);
H3:REF(H,3);
L3:REF(L,3);
O4:REF(O,4);
C4:REF(C,4);
H4:REF(H,4);
L4:REF(L,4);
O5:REF(O,5);
C5:REF(C,5);
H5:REF(H,5);
L5:REF(L,5);
O6:REF(O,6);
C6:REF(C,6);
H6:REF(H,6);
L6:REF(L,6);
{放到分时主图代码最前面} O5:="分时引用.O5#DAY"; C5:="分时引用.C5#DAY"; H5:="分时引用.H5#DAY"; L5:="分时引用.L5#DAY"; O4:="分时引用.O4#DAY"; C4:="分时引用.C4#DAY"; H4:="分时引用.H4#DAY"; L4:="分时引用.L4#DAY"; O3:="分时引用.O3#DAY"; C3:="分时引用.C3#DAY"; H3:="分时引用.H3#DAY"; L3:="分时引用.L3#DAY"; O2:="分时引用.O2#DAY"; C2:="分时引用.C2#DAY"; H2:="分时引用.H2#DAY"; L2:="分时引用.L2#DAY";
O1:="分时引用.O1#DAY";
C1:="分时引用.C1#DAY";
H1:="分时引用.H1#DAY";
L1:="分时引用.L1#DAY";
O0:=DYNAINFO(4);
C0:=DYNAINFO(7);
H0:=DYNAINFO(5);
L0:=DYNAINFO(6);
HH1:=MAX(H1,H2);
HH2:=MAX(H3,H4);
HH3:=MAX(MAX(H0,H5),MAX(HH1,HH2));
LL1:=MIN(L1,L2);
LL2:=MIN(L3,L4);
LL3:=MIN(MIN(L0,L5),MIN(LL1,LL2));
HL:=999/(HH3-LL3);
C52:=999-((C5-LL3)*HL);
H52:=999-((H5-LL3)*HL);
L52:=999-((L5-LL3)*HL);
O52:=999-((O5-LL3)*HL);
C42:=999-((C4-LL3)*HL);
H42:=999-((H4-LL3)*HL);
L42:=999-((L4-LL3)*HL);
O42:=999-((O4-LL3)*HL);
C32:=999-((C3-LL3)*HL);
H32:=999-((H3-LL3)*HL);
L32:=999-((L3-LL3)*HL);
O32:=999-((O3-LL3)*HL);
C22:=999-((C2-LL3)*HL);
H22:=999-((H2-LL3)*HL);
L22:=999-((L2-LL3)*HL);
O22:=999-((O2-LL3)*HL);
C12:=999-((C1-LL3)*HL);
H12:=999-((H1-LL3)*HL);
L12:=999-((L1-LL3)*HL);
O12:=999-((O1-LL3)*HL);
C02:=999-((C0-LL3)*HL);
H02:=999-((H0-LL3)*HL);
L02:=999-((L0-LL3)*HL);
O02:=999-((O0-LL3)*HL);
DRAWRECTREL( 8,H52, 8,L52,RGB(IF(C5>=O5,200,0),IF(C5>=O5,0,200),0)); DRAWRECTREL( 0,C52,16,O52,RGB(IF(C5>=O5,128,0),IF(C5>=O5,0,128),0)); DRAWRECTREL(28,H42,28,L42,RGB(IF(C4>=O4,200,0),IF(C4>=O4,0,200),0)); DRAWRECTREL(20,C42,36,O42,RGB(IF(C4>=O4,128,0),IF(C4>=O4,0,128),0)); DRAWRECTREL(48,H32,48,L32,RGB(IF(C3>=O3,200,0),IF(C3>=O3,0,200),0));
DRAWRECTREL(40,C32,56,O32,RGB(IF(C3>=O3,128,0),IF(C3>=O3,0,128),0)); DRAWRECTREL(68,H22,68,L22,RGB(IF(C2>=O2,200,0),IF(C2>=O2,0,200),0)); DRAWRECTREL(60,C22,76,O22,RGB(IF(C2>=O2,128,0),IF(C2>=O2,0,128),0)); DRAWRECTREL(88,H12,88,L12,RGB(IF(C1>=O1,200,0),IF(C1>=O1,0,200),0)); DRAWRECTREL(80,C12,96,O12,RGB(IF(C1>=O1,128,0),IF(C1>=O1,0,128),0)); DRAWRECTREL(108,H02,108,L02,RGB(IF(C0>=O0,200,0),IF(C0>=O0,0,200),0)); DRAWRECTREL(100,C02,116,O02,RGB(IF(C0>=O0,128,0),IF(C0>=O0,0,128),0));。

相关文档
最新文档