当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:收集了一些关于资金和做多(空)动能的指标源码
软件名称:[B]收集了一些关于资金和做多(空)动能的指标源码[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2012-04-08 04:18:29
软件简介:
说明:本人这近收集了一些关于资金动向和做多做空的一些指标源码,专门搞一模板(资金动向)希望同行们有所起发和使用方便出发点。当然在这里本人申明并否本人作品。至于主图我用未来和没有未来加以改进了,我一直在用这模板,虽然不是极品,感觉比较顺手,所以推存大家参考。同时来减少新进学员共享币不多之苦。那么至于每个指标的用法让每个人自己去研究,我认为指标只是一种参考价值,更如况每人的操作理念不同。谢谢慎用!
主副图源码汇总: 合并主图: { AA主图合并主图} AAA:=(2.5*C+H+L+O)/5.5; VVAR1:=(4*AAA+3*REF(AAA,1)+2*REF(AAA,2)+REF(AAA,3))/10.18; VVAR2:=(HHV(VVAR1,5)+HHV(VVAR1,10)+HHV(VVAR1,20))/3; VVAR3:=(LLV(VVAR1,5)+LLV(VVAR1,10)+LLV(VVAR1,20))/3; VVAR4:=(HHV(VVAR2,5)+HHV(VVAR2,10)+HHV(VVAR2,20))/3; VVAR5:=(LLV(VVAR3,5)+LLV(VVAR3,10)+LLV(VVAR3,20))/3; VVAR6:=(LLV(VVAR1,2)+LLV(VVAR1,4)+LLV(VVAR1,6))/3; DRAWBAND(VVAR1,RGB(155,50,50),VVAR6,RGB(250,250,0)); 短线:VVAR1,COLORWHITE; 中线:VVAR6,COLORYELLOW; {绝 sha点主图} N:=20;M:=32;P1:=80;P2:=100; VAR1:=(C+H+O+L)/4; 卖出:=XMA(VAR1,N)*(1+P1/1000),COLORFFFFFF,LINETHICK3; 买入:=XMA(VAR1,M)*(1-P2/1000),COLOR0000FF,LINETHICK3; DRAWBAND(卖出,RGB(200,50,55),卖出*1.03,RGB(0,100,50)); DRAWBAND(买入,RGB(0,55,0),买入*0.97,RGB(55,55,0)); 幅度:100*(卖出-买入)/买入,NODRAW; MA1:=MA(VAR1,3); STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN; STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN; STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN; STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN; STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN; STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA; STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA; DRAWTEXT(CROSS(C,卖出),卖出*1.05,'卖出'),COLOR00FFFF; 机会来临:=REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2; RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3; D2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3; J2:=3*K2-2*D2; BB1:=EMA(J2,5); BB2:=REF(BB1,1); 金叉:=CROSS(BB1,BB2); DRAWTEXT(CROSS(C,买入) AND BB1>BB2 AND C>REF(O,2),买入*0.95,'买入'),COLOR0000FF; DRAWICON(CROSS(C,买入) AND 金叉 AND 机会来临 ,LOW*0.96,26); DRAWTEXT(CROSS(C,买入) AND 金叉 AND 机会来临,LOW*0.92,'【绝 sha点】'),COLOR00FF00; 副图: VOL-TDX软件自有的 机构建仓: N:=9;M1:=3;M2:=3;P:=9; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1),COLORRED,LINETHICK2; D:=SMA(K,M2,1),COLOR00FF00; JJ:=P*(3*D-2*K),COLOR00FF00; J:=((3 * K) - (2 * D)); MAIRU:= CROSS(K,D) AND K<20; MAICHU:= CROSS(D,K) AND D>80; 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(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; VAR9:=IF(VAR8>100,100,VAR8); 吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF00FF0; 快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F; 慢线:SMA(快线,M1,1),COLORRED,LINETHICK2; 空:SMA(慢线,M2,1),COLOR00FF00; 牛股:IF(BARSLAST(CROSS(慢线,空))<P AND BARSLAST(CROSS(空,慢线))<P AND CROSS(慢线,空) AND 慢线<20,90,0),STICK,COLORFF937F; STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F; BB:=IF(BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<30,20,0); 买:STICKLINE(BB,0,20,7,1),COLORYELLOW; AA:=IF(BARSLAST(CROSS(快线,慢线))>=4 AND CROSS(慢线,快线) AND 快线>50,20,0); 卖:STICKLINE(AA,80,100,7,1),COLOR00FF00; 买底部: A1:=DATE <= 1070615; 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; 绿持币:IF((A3 > A5),A5,A3),COLORGREEN; 强弱:(A5),LINETHICK1,COLORYELLOW; A6:=(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))); A7:=(10); 百万测底:((CROSS(A6,A7)) * 75) * A1,LINETHICK2,COLOR0000FF; A8:=(REF(CLOSE,1)) / CLOSE; A9:=MIN((MA(((AMOUNT / VOL) / 100),15)),(EMA(((AMOUNT / VOL) / 100),15))); A10:=((1 - ((SMA(((LOW * A8) - (A8 / 10)),6,1)) / (EMA(((AMOUNT / VOL) / 100),15)))) * 100) - (100 / 10); A11:=((((1 - ((MA((LOW - (A8 / 10)),6)) / A9)) * (DMA(CLOSE,(VOL / CAPITAL)))) / (MA(LOW,6))) * 100) - (100 / 10); A12:=((((A10 + (A11 / 10)) > 0) AND (DATE > 1000101)) AND (DATE < 1991231)) AND ((COUNT((((1 - (CLOSE / (REF(CLOSE,1)))) > 0.099) AND ((1 - ((REF(CLOSE,1)) / (REF(CLOSE,2)))) > 0.099)),20)) < 3); A13:=(((((((A10 + (A11 / 10)) > -3.688) AND (DATE > 1000101)) AND (DATE < 1991231)) AND ((CLOSE / (REF(CLOSE,1))) > 1.02)) AND ((COUNT((((1 - (CLOSE / (REF(CLOSE,1)))) > 0.099) AND ((1 - ((REF(CLOSE,1)) / (REF(CLOSE,2)))) > 0.099)),20)) < 3)) AND (((REF(CLOSE,1)) / (REF(CLOSE,2))) < 0.95)) AND ((CLOSE / (HHV(HIGH,20))) < 0.855); 灵桥黑马:((IF(((((100 < 100) AND ((A10 + (A11 / 10)) > 0)) AND (DATE > 1000101)) AND (DATE < 1991231)),(A12 = 1),(A13 = 1))) * 100) * A1,LINETHICK2,COLORRED; A14:=EMA(CLOSE,8); A15:=EMA(A14,20); A16:=CROSS(A14,A15); A17:=A14 < (EMA(CLOSE,120)); 大波黑马起步:((A16 AND A17) * 75) * A1,LINETHICK2,COLORYELLOW; A18:=SUM((IF((CLOSE > (REF(CLOSE,1))),VOL,(IF((CLOSE < (REF(CLOSE,1))),(0 - VOL),0)))),0); A19:=SUMBARS(VOL,CAPITAL); A20:=(IF((CLOSE > (LLV(CLOSE,A19))),1,-1)) * (IF((A18 > (LLV(A18,A19))),1,-1)); A21:=IF((A20 = -1),1,0); A22:=(COUNT((A21 = 1),8)) > 2; A23:=((SUM(AMOUNT,13)) / ((AMOUNT / VOL) / 100)) / 100; A24:=DMA((((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7),(VOL / A23)); A25:=(((CLOSE - A24) / A24) * 100) < -15; A26:=((CLOSE - (MIN(((REF(CLOSE,5)) * 0.865),((REF(CLOSE,21)) * 0.772)))) / CLOSE) < 0.05; A27:=REF(LOW,1); A28:=((SMA(ABS((LOW - A27)),3,1)) / (SMA((MAX((LOW - A27),0)),3,1))) * 100; A29:=EMA((IF((CLOSE * 1.2),(A28 * 10),(A28 / 10))),3); A30:=LLV(LOW,38); A31:=HHV(A29,38); A32:=IF((LLV(LOW,90)),1,0); A33:=((EMA((IF((LOW <= A30),((A29 + (A31 * 2)) / 2),0)),3)) / 618) * A32; (STICKLINE(A33,0,A33,6,1)) ,COLORBLUE; 底部不买你后悔:(IF(((A25 AND A26) AND A22),60,0)) * A1; 主力参考: A:=VOL*CLOSE; B:=SUM(A,1)/SUM(VOL,1); B1:=EMA(B,17); 主力:(B-B1)*100/B,COLORRED; 进:STICKLINE(主力>=0 AND 0>=REF(0,1),0,主力,3,0),COLORRED; 出:STICKLINE(主力<0 AND 0>=REF(0,1),0,主力,3,0),COLORGREEN; 大鱼特SE: MAV:=(C*2+H+L)/4; SK := EMA(MAV,15) - EMA(MAV,35); SD := EMA(SK,6); 中轴:0; 空方主力 : (-2*(SK-SD))*3.8,COLORGREEN; 多方主力 : (2*(SK-SD))*3.8,COLORRED; DRAWBAND(多方主力,RGB(255,0,0),空方主力,RGB(0,0,220)); 资金流入流出: 万:AMOUNT/10000,COLORFF00FF,NODRAW; VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 流入万:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,NODRAW; 流出万:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW; 额万:流入万+流出万,COLORFFFF00,NODRAW; {线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;} YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW; {量:(线),VOLSTICK;} 分界:0; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5;
[url=http://www.70822.com/soft/sort013/sort05/down-46766.html]收集了一些关于资金和做多(空)动能的指标源码[/url]