通达信_指标公式源码大全(20200618074821)
通达信技术指标公式源码大全
通达信技术指标公式源码大全简介该文档收集了通达信软件中的各种技术指标的公式源码,为用户提供了便于研究和使用的资源。
通达信软件是一款常用的股票分析软件,其技术指标功能强大且灵活,能够帮助用户进行股票分析和决策。
内容该文档包含了以下技术指标的公式源码:1. 移动平均线(MA)2. 相对强弱指标(RSI)3. 随机指标(KDJ)4. 布林线指标(BOLL)5. 指数移动平均线(EMA)6. 平滑异同移动平均线(MACD)7. 加权移动平均线(WMA)8. 成交量指标(VOL)9. 威廉指标(W%R)10. 动向指标(DMI)11. 随机相对强弱指数(W%R)12. 平均成交量(AVP)13. 梅斯线(MS)使用方法1. 打开通达信软件,并进入相应的分析页面。
2. 在计算指标的输入框中输入相应的公式源码。
3. 确认输入正确无误后,点击计算按钮。
4. 通达信软件将根据公式源码计算指标数值,并在图表中展示。
注意事项1. 在使用该文档中的公式源码时,建议仔细检查输入的代码是否与文档中的一致。
2. 请谨慎使用该文档提供的公式源码,并在实际操作前先进行充分的理论和实践研究。
3. 本文档中的公式源码仅供参考,不保证在所有情况下都能正确使用和产生预期效果。
结论通过收集通达信软件中的各种技术指标的公式源码,该文档为用户提供了便于研究和使用的资源。
希望用户在使用时能够注意检查代码准确性,并充分理解和实践相关的理论知识。
祝愿用户在股票分析和决策中取得良好的效果。
注意:本文档中的内容仅供参考,请自行验证和确认后使用。
通达信 指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+*REF(A,1)+*REF(A,2)+*REF(A,3)+*REF(A,4))/;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,,1),COLOR4440FF;STICKLINE(KX1,O,L,,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,,0),COLOR4440FF;STICKLINE(KX2,C,L,,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,,1),COLORFFFF33;STICKLINE(KX3,O,L,,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,,0),COLORFFFF33;STICKLINE(KX4,C,L,,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,,0),COLORRED; XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(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;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE (C>=O,C,O,,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLI NE(C>=O,C,O,,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICK LINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,,0),COLOR454500;STICK LINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,,0),COLOR656500;STICK LINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,,0),COLOR858500;STICK LINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989 )/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONT H-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZR R,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T ,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=RE F(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE, T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,,0),COLORFFCCAA;STICKLINE(平衡线<启动线,启动线,平衡线,,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*,13)-EMA((C+L)/2,3)-((C+L)/2)*;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编着:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编着>75,AABB,AABB*,15,1),COLOR0000FF; VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,*(AABB+AABB*/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,,,LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。
简单明了通达信指标公式源码
简单明了通达信指标公式源码
以下是通达信指标公式的源码(部分):
1.移动平均线(MA)
```
MA(CLOSE,N):收盘价的N日简单移动平均线
MA(C,N):C为输入数据,例如指标的参数可以是成交量、MACD柱等;
```
2.指数平滑移动平均线(EMA)
```
EMA(C,N):收盘价的N日指数平滑移动平均线
```
3.相对强弱指标(RSI)
```
RSI(C,N):C为收盘价序列,N为计算周期;
```
4. 随机相对强弱指标(StochRSI)
```
StochRSI(C, N, M1, M2): C为收盘价序列,N为计算RSI的周期,
M1为计算K值的周期,M2为计算D值的周期;
```
5.BOLL指标(布林线)
```
BOLL(CLOSE,N,P):C为收盘价序列,N为计算布林线的周期,P为布林线上下轨的标准差倍数;
```
6.指数平均数指标(EMA)
```
EMA(CLOSE,N):收盘价序列的N日指数平均数;
```
7.指数平滑异同平均线(MACD)
```
MACD(CLOSE,SHORT,LONG,M):C为收盘价序列,SHORT为快速移动平均线的时间周期,LONG为慢速移动平均线的时间周期,M为移动平均线的移动天数;
```
8.能量潮(OBV)
```
OBV(CLOSE,V):C为收盘价序列,V为成交量序列;
```
以上是通达信指标公式的部分源码,还有其他指标的源码未列出。
通达信技术指标公式源码大全
通达信技术指标公式源码大全一、简介本文档提供了通达信技术指标公式源码的大全,旨在帮助用户了解和使用通达信软件中的各种技术指标。
二、技术指标公式源码以下是一些常用的技术指标公式源码:1. 移动平均线(MA):C := CLOSE;MA(C, n)2. 相对强弱指标(RSI):LC := REF(C, 1);R := SMA(MAX(C-LC, 0), n, 1) / SMA(ABS(C-LC), n, 1) * 100;RSI := SMA(R, m, 1);3. 布林线(BOLL):MA(C, n);BOLLUP := MA(C, n) + k * STD(C, n);BOLLDOWN := MA(C, n) - k * STD(C, n);4. 动量指标(MOM):MOM := C - REF(C, n);5. 成交量指标(VOL):VOL := V;6. 相对强弱指数(RSI):RSV:=(CLOSE-LLV(LOW,M))/((HHV(HIGH,M)-LLV(LOW, M))*100);;7. 平均成交量(AVP):AVP:=(C+M+O+L)/4*V*T/F;三、使用指南使用以上的技术指标公式源码,可以在通达信软件中进行相关指标的计算和显示。
用户可以根据自己的需要,调整指标参数和相关代码,以获得所需的分析结果。
请注意,以上源码仅供参考,具体使用时需要根据实际情况进行修改和优化。
结论本文档提供了通达信技术指标公式源码的大全,希望能对用户在通达信软件中应用技术指标提供帮助。
用户可以根据实际需求,选择合适的指标公式源码进行使用。
通达信指标公式源码大全
源代码:获利:EMA(EMA(EMA(高,5),5)*1.15,colorfffff,LINETHICK1;风险:EMA(EMA(高,5),5)*1.1,颜色黄色;回溯:EMA(均线(EMA(高,5),5),5)*1.05,COLOR00FF00;平衡:EMA(EMA(EMA(高,5),5),COLORFF00FF,LINETHICK1;反弹:均线(均线(均线(高,5),5)*0.95,灰线,线厚1;超卖:均线(均线(均线,5),5)*0.9,颜色蓝,线厚1;VAR3:=LLV(高,240);VAR4:=100*(闭合VAR3)/VAR3;VAR5:=(CLOSE-LLV(低,528))/(HHV(高,528)-LLV(低,528))*100;VAR6:=(CLOSE-LLV(关闭,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;变量7:=0;VAR8:=SMA(最大(闭合参考(CLOSE-REF(闭合,1)),34,1)/SMA(ABS(闭合参考(CLOSE,1)),7,1)*100;VAR9:=SMA(最大(闭合参考(CLOSE-REF(闭合,1)),0),13,1)/SMA(ABS(闭合参考(CLOSE,1)),13,1)*100;VAR10:=IF(槽巴(3,16,1)=0且高>低+0.04,4,0);VAR11:=ZIG(3,6)>参考(ZIG(3,6),1)和REF(ZIG(3,6),1)<=REF(ZIG(3,6),2)和REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=参考(ZIG(3,6),2)和REF(ZIG(3,6),2)>=参考(ZIG(3,6),3);VAR13:=ZIG(3,22)>参考(ZIG(3,22),1)和REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)和REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=参考(ZIG(3,22),2)和REF(ZIG(3,22),2)>=参考(ZIG (3,22),3);VAR15:=ZIG(3,51)>参考(ZIG(3,51),1)和REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)和REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)=参考(ZIG(3,51),2)和REF(ZIG(3,51),2)>=参考(ZIG (3,51),3);VAR17:=ZIG(3,72)>参考(ZIG(3,72),1)和REF(ZIG(3,72),1)<=参考(ZIG (3,72),2)和REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)=参考(ZIG(3,72),2)和REF(ZIG(3,72),2)>=参考(ZIG (3,72),3);VAR19:=EMA(关闭,2)-EMA(关闭,150);买1:=VAR10;购买2:=(VAR11+VAR13+VAR15+VAR17);卖出1:=(VAR12+VAR14+VAR16+VAR18);B:IF(buy 1>0或buy 2>0,LOW*0.99,DRAWNULL),交叉点,LINETHICK3,COLORYELLOW;S:IF(卖出1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;{丽都方舟}VAR100:=(100-((90*(HHV(高,20)-关))/(HHV(高,20)-LLV(低,20)));VAR200:=(100-((90*(HHV(高,20)-关闭))/(HHV(高,20)-LLV(低,20)));VAR300:=(100-MA(((100*(HHV(高,5)-关))/(HHV(高,5)-LLV(低,5)),34));F:IF(CROSS(VAR200,MA(VAR300,5)),低*0.98,DRAWNULL),交叉点,LINETHICK3;股票公式交换分类:指数公式索引说明1摆动交易指标说明源代码:获利:EMA(EMA(EMA(高,5),5)*1.15,colorfffffff,linehick1;风险:EMA(均线(EMA(高,5),5)*1.1,黄色;返回值:EMA(EMA(EMA(EMA(高(5,5)),5)*1.05,color00ff00;平衡:EMA(EMA(EMA(高,5),5),colorf00ff,linehigh1;反弹:均线(均线(均线,5),5)*0.95,灰色,线高1;超卖:均线(均线(均线,5),5)*0.9,蓝线,线高1;VAR3:=LLV(高,240);VAR4:=100*(闭合VAR3)/VAR3;VAR5:=(CLOSE-LLV(低,528))/(HHV(高,528)-LLV(低,528))*100;VAR6:=[CLOSE-LLV(关闭,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;变量7:=0;VAR8:=SMA(最大(闭合参考(闭合,1)),34,1)/SMA(ABS(闭合参考(闭合,1)),7,1)*100;VAR9:=SMA(最大(闭合参考(CLOSE-REF(闭合,1)),0),13,1)/SMA(ABS (闭合参考(CLOSE,1)),13,1)*100;VAR10:=IF(槽巴(3,16,1)=0且高>低+0.04,4,0);VAR11:=ZIG(3,6)>参考(ZIG(3,6),1)和REF(ZIG(3,6),1)<=REF(ZIG (3,6),2)和REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=参考(ZIG(3,6),2)和REF(ZIG(3,6),2)>=参考(ZIG (3,6),3);VAR13:=ZIG(3,22)>参考(ZIG(3,22),1)和REF(ZIG(3,22),1)<=REF(ZIG (3,22),2)和REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=参考(ZIG(3,22),2)和REF(ZIG(3,22),2)>=参考(ZIG (3,22),3);VAR15:=ZIG(3,51)>参考(ZIG(3,51),1)和REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)和REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)=参考(ZIG(3,51),2)和REF(ZIG(3,51),2)>=参考(ZIG (3,51),3);VAR17:=ZIG(3,72)>参考(ZIG(3,72),1)和REF(ZIG(3,72),1)<=参考(ZIG (3,72),2)和REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)=参考(ZIG(3,72),2)和REF(ZIG(3,72),2)>=参考(ZIG (3,72),3);VAR19:=EMA(关闭,2)-EMA(关闭,150);购买1:=var10;购买2:=(var11+var13+var15+var17);卖出1:=(var12+var14+var16+var18);B:如果(买入1>0或买入2>0,低*0.99,做空),交叉点,行距3,颜色为黄色;S:if(卖出1>0,高位*1.01,拉长),交叉点,linehigh3,绿色;丽都方舟VAR100:=(100-((90*(HHV(高,20)-关))/(HHV(高,20)-LLV(低,20)));VAR200:=(100-((90*(HHV(高,20)-关闭))/(HHV(高,20)-LLV(低,20)));VAR300:=(100-MA(((100*(HHV(高,5)-关))/(HHV(高,5)-LLV(低,5))),34);F:IF(cross(VAR200,MA(VAR300,5)),低*0.98,DRAWNULL),交叉点,LINETHICK3;说明:这个指标的未来是不可能的。
通达信最全指标公式源码,给大家分享实用的技术指标
通达信最全指标公式源码,给⼤家分享实⽤的技术指标源码:MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主⼒:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF (MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF( MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK2;拉升提⽰主图+⼀⼿遮天副图+主⼒追踪副图。
超⽜龙头主图主图源码:展开全⽂TY:=C;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;参考重点关注主⼒追踪副图股票实盘分析和技术分享,,坚持每⼀天给⼤家分享实盘经验,教⼤家如何在个股起爆前把握主升浪个股,让所有粉丝朋友逐步建⽴出属于⾃⼰的⼀套交易系统。
通达信公式指标源码止盈主图指标公式.docx
通达信止盈主图指标公式VARl:=(HIGH+L0W+0PEN+CL0SE)/4;黄金线:=EMA(3*VAR1-2*SMA(VAR1,2,1),13)Z COLORYELLOW Z LINETHICK2; CJ:=(3*C+L+O+H)/6;多空线:=(20*CJ+19*REF(CJ,l)+18*REF(CJ,2)+17*REF(CJ,3)+16*REF(CJ,4)+15* REF(CJ,5)+14*REF(CJ/6)+13*REF(CJ,7)+12*REF(CJ,8)+ll*REF(CJ,9)+10* REF(CJ」0)+9*REF(CJ,ll)+8*REF(CJ」2)+7*REF(CJ,13)+6*REF(CJ,14)+5* REF(CJ,15)+4*REF(CJ/16)+3*REF(CJ」7)+2*REF(CJ,18)+REF(CJ/20))/210, COLORFFOOFF 丄INETHICK2;亚当:=((HIGH + LOW + CLOSE)/3-MA((HIGH + LOW + CLOSE)/3,14))*100/ (1・5*AVEDEV((HIGH + LOW + CLOSE)/3,14));N: = l,100,12;夏娃: = EMA(亚当,N); X2:=亚当;X3:=夏娃;STICKLINE(X2>=X3z LOW,HIGH z O,0),COLORRED;STICKLINE(X2>=X3,CLOSE,OPEN z3z O)z COLOROOOOAA;STICKLINE(X2>=X3Z CLOSE,OPEN Z2,0)Z COLOROOOOCC;STICKLINE(X2>=X3,CLOSE,OPEN Z1,0)Z COLOROOOODD;STICKLINE(X2>=X3,CLOSE,OPEN,0.3,0),COLOROOOOFF;STICKLINE(X2<X3,CLOSE,OPEN,0.3,0),COLORFFFFOO;STICKLINE(X2<X3,CLOSE Z OPEN Z1,0),COLORDDDDOO;STICKLINE(X2<X3,CLOSE,OPEN Z2,0),COLORAAAAOO;STICKLINE(X2<X3z CLOSE z OPEN z3z O),COLOR888800;STICKLINE(X2<X3,LOW z HIGH,O z O),COLORFFFFOO;STICKLINE(X2vX3 ANDC〉=黄金线AND 黄金线> =多空线z OPEN z CLOSE z3z O),COLORFFOOFF;STICKLINE(X2<X3 AND C> =多空线AND Cv黄金线Z OPEN,CLOSER,0),COLORBLUE;Xl:=(C+L+H)/3;BB13:=ATAN(EMA(X1Z13)-REF(EMA(X1Z13)Z1))*3.1416*1O;EMA8:=EMA(C Z8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10), EMA8/Z45 fl-1),COLORWHITE;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KBl:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34)Z KB2Z KB2-0.8*BO,1,0),COLORYELL OW 丄INETHICK3;DRAWTEXT((El+0)/34=FLOOR((El+0)/34),KB2-B0/,时窗'),COLORYELLOW; VAR81: = 1;VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20,COLORYELLOW,LINETHICK2;高死叉岀:=90,COLORGREEN 丄INETHICK3;VAR84:=LLV(LOW Z5);VAR85:=HHV(HIGH,4);C1:=(EMA((((VAR82-VAR84)/(VAR85・VAR84))*100),4)*VAR81),COLORFF00FF ,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINET HICK2;条件:=CROSS(C1,C2) AND Cl<40;条件0:=CROSS(C2,C1) AND Cl>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1Z C2) AND REF(Cl,l)<20;TJ4:=CROSS(C2,C1) AND REF(Cl」)>80;DRAWTEXT(条件0Z H*1.02;S,)Z COLORBLUE;{DRAWTEXT(CROSS(C1Z75)Z H*1.013/,险区'),COLORGREEN;} DRAWTEXT(TJ3/L*0.98;买jCOLORFFOOFF;均线:=MA(C,13)Z COLOROOFFFF;X8:=,,MACD.MACD n;X:=HHV(REF(X8,l),BARSLAST(X8>0)+l);A8:=(X8/REF(X8z l)-l)*100;Al: = BARSLAST(CROSS(0,A8))+1;DRAWTEXT(X8>0.618 AND CROSS(X,X8),H*1.035;止赢COLORBLUE; STICKLINE(X8>0.618 AND CROSS(X,X8)Z H*1.02,H*1.021,20,1),COLORBLUE; DRAWTEXT(REF(C z BARSLAST(REF(CROSS(,,MACD.DIF n,,,MACD.DEA H),l))+l)> C ANDREF(,,MACD.DIF,,Z BARSLAST(REF(CROSS(,,MACD.DIF,,;,MACD.DEA,,),1))+1) <"MACD.DIF n AND CROSS(n MACD.DIF',,,,MACD.DEA n) >0,L-0.02;*M'),COLORFF00FF;{MACD 底背离}DRAWTEXT(REF(C z BARSLAST(REF(CROSS(,,KDJ.K,,z,,KDJ.D n\l))4-l)>C AND REF(“KDJ・K:BARSLAST(REF(CROSS(”KDJ・KTKDJ・D”),l))+l)v“KDJ・ie AND CROSSC,KDJ.K,,,,,KDJ.D n)丄・0・10,©K)COLORFF00FF;{KDJ 底背离} DRAWTEXT(REF(C,BARSLAST(REF(CROSS(,,RSI.RSIl n,n RSLRSI2,l)z l))+l)>CANDREFCRSI・RSI1:BARSLAST(REF(CROSS(”RSLRSI1TRSI・RSI2J1))+1) <,,RSI.RSI1" AND CROSS(“RSI・RSI1TRSI・RSI2”)>O,L-O.18,,0R,),COLORFFOOFF;{RSI 底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(,,MACD.DEA,7,MACD.DIF n)z l))+l)< C ANDREF(,,MACD.DIF,I/BARSLAST(REF(CROSS(,,MACD.DEA,,Z,,MACD.DIF,,),1))+1) >n MA CD.DIF H AND CROSS(”MACD・DEATMACD・DIF“)>0,H+0・16,*M)COLORGREEN;{MACD 顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(H KDJ.D,,;,KDJ.K,I),1))+1)<CAND REF(,,KDJ.K,,Z BARSLAST(REF(CROSS(,,KDJ.D,,Z,,KDJ.K,,)Z1))+1) >"KDJ.K n AND CROSSC,KDJ.D,7,KDJ.K,,)>0,H+0.08,,©K,)Z COLORGREEN;{KDJ 顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CR0SS(,,RSLRSI2,,,n RSLRSIl H)z l))+l)<CANDREFC,RSLRSI1,,,BARSLAST(REF(CR0SS(,,RSLRSI2,,Z,,RSI.RSI1,,)Z1))+1)>,,RSL RSI1"ANDCROSSC,RSLRSI2,I Z,,RSI.RSI1H)>0Z H+0.04/♦R,)Z COLORGREEN;{RSI 顶背离};CCC:C,COLORFFFFFF;UPPER : MA(CLOSE,14)*1.06,POINTDOT Z COLORFF99FF Z LINETHICK2;LOWER : MA(CLOSE,14)*0.94,POINTDOT,COLORFFOOFF丄INETHICK2;MID:(UPPER+LOWER)/2,NODRAW,COLOROOFFFF 丄INETHICK1;VAR91:=(2*CLOSE+HIGH+LOW+OPEN)/5;A51:(EMA(VAR91z l)+EMA(VAR91/2)+EMA(VAR91,3)+EMA(VAR91,4))/4,COLORCY AN,LINETHICK1;W51:=(EMA(VAR91,1)+EMA(VAR91,2)+EMA(VAR91,3)+EMA(VAR91,4))/4; DRAWICON(CROSS(UPPER,CCC),UPPER Z15);。
通达信20个高准确率选股公式源码
通达信20个高准确率选股公式源码是不是每次看收盘的涨停股望而兴叹,明明自己看过这个股票,当时为什么没买!都是对自己没有信心的表现。
我也分享20个高准确率的选股公式,有的含未来,仅供参考,结合指标分析。
推荐20个高成功率选股公式之一Var00:=LWINNER(1,CLOSE);Var1:=FORCAST(Var00,10);Var2:=MA(Var1,3);Var3:=MA(Var2,12);Var4:=MA(Var3,16);Var5:=MA(Var4,31);Var6:=MA(Var5,55);Var7:=Var5; Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;Var9:=Var2>Var1*0.95;Var1h:=INDEXC;Var2h:=MA(Var1h,6);Var3h:=MA(Var1h,24);Var4h:=MA(Var1h,32);Var5h:=MA(Var1h,62);Var6h:=MA(Var1h,105);Var7h:=Var5h; Var8h:=Var4h>Var2h*1.11 AND Var3h>Var2h*1.095;Var9h:=Var2h>Var1h*0.95;pt:=(if(h=l and c=o and l=c and c>0 and ref(h,1)=ref(l,1) and ref(c,1)=ref(o,1)and ref(h,1)=ref(c,1) and ref(c,1)>0,0,1))>0;(Var7h AND Var8h AND Var9h AND CLOSE/COST(8)<=0.7985 and (count(c=l,4)<3 or c>ref(c,1)))and pt orVar7 and Var8 and Var9 and CLOSE/COST(5)<=0.8 AND((Var1>OPEN OR Var1>REF(OPEN,1) ORREF(Var1,1)))====================================== ========================================= =====推荐20个高成功率选股公式之二条件选股公式:BFBZ (20天10%利润,成功率98.52%信号量2209) 缺省周期:日线Var1:=INDEXC;Var2:=MA(Var1,6);Var3:=MA(Var1,24);Var4:=MA(Var1,32);Var5:=MA(Var1,62);Var6:=MA(Var1,105);Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98;Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;Var9:=Var2>Var1*0.95;Var7 AND Var8 AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));====================================== ====================================== 推荐20个高成功率选股公式之三条件选股公式:魔鬼组合 (99.65% 缺省周期:日线Var2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;Var9:=(Var3+Var4+Var5+Var6+Var7+Var8)/6;VarA:=EMA(Var9,3);VarB:=ABS(Var6-Var8);VarC:=(Var9+VarB)/2;VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VarE:=VarD+VarC;VarF:=IF(Var2>0 AND VarE<0,200,0);Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);Var11:=IF(VarE<0 AND Var10=-50,100,0);Var12:=MA(CLOSE,3);Var13:=REF(CLOSE,2)*0.865;Var14:=REF(CLOSE,13)*0.772;Var15:=MIN(Var13,Var14);Var16:=100*VOL/CAPITAL;Var17:=MA(CLOSE,13);Var18:=IF((CLOSE-Var15)/CLOSE<0.03 AND SUM(Var16,5)/5<1.8,1,0);Var19:=IF(Var18>0 AND (Var10<0 OR Var2>0),100,0);Var1A:=Var19;Var1B:=IF(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0) AND Var19<10,50,0);Var1C:=(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0);Var1D:=VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;Var1E:=Var1C OR Var1D;g:=MA(CLOSE,80)-MA(CLOSE,10)/3;aaa:=Var1A and CLOSE<g;Var2a:=1;Var3a:=Var2a*(CLOSE-MA(CLOSE,33))/MA(CLOSE,33)*100;bbb:=HHV(CLOSE,13)/CLOSE>1.15 AND HIGH/LOW>1.08 AND CROSS(-30,Var3);Var1bb:=INDEXC;Var2b:=MA(Var1bb,6);Var3b:=MA(Var1bb,24);Var4b:=MA(Var1bb,32);Var5b:=MA(Var1bb,62);Var6b:=MA(Var1bb,105);Var7b:=Var5b<REF(Var5b,1) AND Var6b<REF(Var6b,1) AND Var5b<Var6b*0.98;Var8b:=Var4b>Var2b*1.11 AND Var3b>Var2b*1.095;Var9b:=Var2b>Var1bb*0.95;ccc:=Var7b AND Var8b AND Var9b AND CLOSE/COST(8)<=0.8 AND(CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) ORREF(CLOSE,1)<REF(OPEN,1));Var1cc:=DMA(CLOSE,VOL/MA(VOL,4)/4);Var2c:=DMA(CLOSE,VOL/MA(VOL,33)/33);Var3c:=(CLOSE-Var1cc)/Var1cc*100<-11;Var4c:=(Var1cc-Var2c)/Var2c*100<-22.3;Var5c:=Var3c AND Var4c;ddd:=Var5c AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND(REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND(REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND(REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND(REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND(REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7)) ;A1:=INDEXC;A2:=MA(A1,5);A3:=MA(A1,20);A4:=MA(A1,30);B1:=A4>A2*1.08 AND A3>A2*1.055;B2:=A2>A1*1.03;B3:=B1 AND B2;M1:=MA(C,5);M2:=MA(C,10);M3:=M1<M2;N1:=(M1-C)/C>(9/100);N2:=(M2-M1)/M1>0.05;N3:=(H>L*1.07) AND COUNT(H>L*1.04,5)>2;N4:=COUNT(M3,7)>=7;N5:=N1 AND N2 AND N3 AND N4;eee:=B3 AND N5;ff:=(ref(c,32)-close)/ref(c,32)>=0.385;fff:=ccc and ff;Xar1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);Xar2:=(CLOSE-xar1)/xar1*100+30-(REF(HIGH,13)/CLOSE-1.35)*100;Xar3:=(CLOSE-ref(CLOSE,5))/CLOSE*100<-9;当前获利:=WINNER(CLOSE);大盘涨跌:=ema((INDEXC-ma(INDEXC,10))/INDEXC*100,14)<-4.9;换手率:=(ma(v,5)-VOL)/CAPITAL*100<0.8;量能变化:=(vol-MA(vol,21))/vol*100;买入信号:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND换手率 AND 量能变化>18;{飞雪迎春:(Xar2<-8.1 AND 买入信号=1);}{DRAWTEXT(飞雪迎春=1,0.8,'飞雪迎春' );}gg1:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND换手率 AND 量能变化>18;ggg:=aaa and gg1;(aaa and bbb) or (aaa and ccc) or (aaa and ddd) or (aaa and eee)or fff or ggg============================================================================ 推荐20个高成功率选股公式之四条件选股公式:飞鹰优化 (90.87%缺省周期:日线Var1:=CLOSE/MA(CLOSE,40)*100<78;Var2:=CLOSE/MA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.051;Var4:=Var3 AND COUNT(Var3,5)>1;Var4 AND (Var1 OR Var2) andma(c,27)/close>1.169 and ma(c,17)/close>1.158 andclose<ma(c,120) and ma(c,60)<ma(c,120) and ma(c,60)>ma(c,30) and "cci">-210============================================================================ 推荐20个高成功率选股公式之五条件选股公式:BIMOWANG (成功率93.12 信号3736 缺省周期:日线Var1:=EMA(WINNER(CLOSE)*70,3);Var2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);Var3:=CLOSE/MA(CLOSE,40)*100<76;Var4:=CLOSE/MA(CLOSE,60)*100<74;Var5:=HIGH>LOW*1.051;Var6:=Var5 AND COUNT(Var5,5)>1;Var6 AND (Var3 OR Var4) AND Var2<20 AND Var1<20AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5;============================================================================ 推荐20个高成功率选股公式之六条件选股公式:股神选股(20天10利润成功率92.88% 信号量4310 缺省周期:日线参数描述: N(1,30,22)N2(1,10,5)N3(1,5,3)N4(-50,0,-30)Var1:=IF(DATE>=1031231, 0, 1);Var2:=CLOSE<0.980*REF(CLOSE, 1);Var3:=OPEN<REF(CLOSE, 1);Var4:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100*Var1;Var5:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100*Var1;Var6:=MA(COST(N)/LOW, N3);Var7:=Var6>1.5 AND Var4>N2 AND Var5<N4;Q:Var7 OR (COUNT(Var7, 10) AND Var2 OR COUNT(Var7, 20) AND Var3)*Var1;====================================== ====================================== 推荐20个高成功率选股公式之七原公式加密,以下源码是从网上找的,不知是否与原公式一样,还请高手特别版。
通达信指标—20个最牛抄底公式及2个组合公式源码,喜欢可复制
通达信指标—20个最牛抄底公式及2个组合公式源码,喜欢可复制1、金牛起步{金牛起步副图}VAR1:=VOL<MA(VOL,5) AND MA(VOL,5)<MA(VOL,55);VAR2:=CLOSE/REF(CLOSE,1)>1.028;VAR3:= MA(CLOSE,10)>CLOSE*1.05;VAR4:=MA(CLOSE,10)<CLOSE*1.1;VAR5:=MA(CLOSE,60)>CLOSE*1.28;XG:VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5,COLORYELLOW;DRAWTEXT(XG,0.7,'金牛起步'),COLORYELLOW;指标说明:1、上涨没有放大量,当日成交量还低于5日平均成交量,且成交量5均线小于成交量55的8折,(var1,,是不是想找阶段地量?)2、当天上涨大于2.8%以上,可能表示有主力行为;(var2)3、股价还低于10均线,但距离不远,有一个中到大阳线就可以站上;(var3,var4)4、超跌有反弹,股价远低于60均线;(VAR5)5、MACD值大于 -0.6;(var6)其中MACD值这个条件值得商榷,可能是想表示离0轴不远吧。
实际上,macd值的单位是元,百元股和十元股的MACD值变化范围有很大区别,直接用有点不合适。
2、海底活鱼{海底活鱼副图}BIAS0:=(C-MA(C,2))/MA(C,2)*100;HXL:=V/CAPITAL*100;D1:=INDEXC;D2:=MA(D1,13);DR2:=D2>1.050*D1;E1:=(C-HHV(C,12))/HHV(C,12)*10;E2:=(C-REF(C,26))/REF(C,26)*10;E3:=MA(C,3);SJ1:=DR2;SJ2:=E2<-2.30;SJ3:=BIAS0<-2.7;SJ5:=SJ1 AND SJ2 AND SJ3;SJ6:=CROSS(0.5,SJ5);JS1:=CROSS(SJ6,0.5);JS2:=BARSLAST(JS1=1);JS3:=JS2<=5 AND C<REF(C,JS2);PMDY:=SJ6 OR JS3;VAR1:=CLOSE/MA(CLOSE,20)*100<80;VAR2:=CLOSE/MA(CLOSE,40)*100<78;VAR3:=CLOSE/MA(CLOSE,60)*100<72;VAR4:=HIGH>LOW*1.051;VAR5:=VAR4 AND COUNT(VAR4,5)>1;XG:PMDY AND VAR5 AND (VAR1 OR VAR2 OR VAR3);3、钻石底{钻石底}VBR:=C<REF(C,4);NT0:=BARSLASTCOUNT(VBR);TJ21:=NT0=6 ;底6:=COUNT(NT0=6,5)=1;VBR1:=DMA(CLOSE,VOL/SUM(VOL,34));VBR2:=DMA(CLOSE, VOL/SUM(VOL,13));VBR3:=(CLOSE-VBR1)/VBR1*100;VBR4:=(CLOSE-VBR2)/VBR2*100;Y1:=VBR4<=-17 AND VBR3<=-25;去除ST:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1);去除停牌:=DYNAINFO(4)>0;去除:=去除ST AND 去除停牌;Q1:=底6 AND Y1 AND 去除;超卖区:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,2);Q2:=超卖区<-20 ;钻石底XG:Q1 AND Q2 AND O!=C AND C>REF(C,1)*0.91 AND C<REF(C,1)AND INDEXC<REF(INDEXC,1) AND REF(C>REF(C,1),1);。
通达信公式指标大集合(源码)
通达信公式指标大集合(源码)[通达信]拉升在即——《斜面推高》短线选股公式参数:N(1,100,15),P(1,20,9);A:=((C-REF(C,N))/REF(C,N))*100;EA:=CROSS(C>O,N)>N/2;EC:=MA(C,5)>MA(C,10);B:A<=P AND EA AND EC AND MIN(C,O)>MA(C,10);[通达信]主图指标——优化后的鳄鱼线{鳄鱼线}趋势:FORCAST(C,13),COLORFFFFFF,LINETHICK1;七:MA(C,7),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,7) C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;乖离线:=((C-REF(COST(90),1))/20 250)*1.20;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1;DRAWTEXT(突破盘整,L-0.10,1);VAR1:=(H L)/2;上唇:REF(SMA(VAR1,5,1),3),COLORGREEN,LINETHICK1;牙齿:REF(SMA(VAR1,8,1),5),COLORRED,LINETHICK1,CROSSDOT;下颚:REF(SMA(VAR1,13,1),8),COLORBLUE,LINETHICK4,POINTDOT;通达信指标公式:操盘手(超准!)EMA13:EMA(C,13),COLORWHITE;EMA21:EMA(C,21),COLORYELLOW;EMA34:EMA(C,34),COLORFF00FF;EMA120:EMA(C,120),COLORFFCCCC;EMA250:MA(C,250),COLORFFCC66;X1:=(C L H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);STICKLINE(X2>X3 AND C>EMA13,LOW,HIGH,0.1,1),COLORRED;STICKLINE(X2>X3 AND C>EMA13,CLOSE,OPEN,5,1),COLORRED;STICKLINE(X2 STICKLINE(X2 DRAWTEXT(CROSS(X2,X3),L-0.09,'关注'),COLORWHITE,LINETHICK2;GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR2:=EMA13>EMA21 AND EMA21>EMA34 AND EMA13>REF(EMA13,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) GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;GR8:=GR6 AND GR7;LC := REF(CLOSE,1);RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;换手:=100*V/CAPITAL;DRAWTEXT(FILTER(RSI6>95 AND 换手>=7,3) OR FILTER(BIAS5>9,3) OR GR8,H*1.04,'警惕'),COLOR00FF00,LINETHICK2;BB13:=ATAN(EMA13-REF(EMA13,1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA13>REF(EMA13,1),10),EMA8,'全仓进'),COLORWHITE,LINETHICK2;网上吹嘘要几千元的“涨停先锋Ⅲ(波段指标)”【通达信版】副图:A4:=MA(CLOSE,20);A5:=(CLOSE>MA(CLOSE,5));A6:=(MA(CL OSE,5)>MA(CLOSE,10));A7:=(CLOSE>MA(CLOSE,10));A8:=(MA(CLOSE,5)>MA(CLOSE ,20));A9:=(CLOSE>MA(CLOSE,20));A10:=REF(A4,1);A11:=(A4> A10);AVX:(((((IF(A5,10,(0 - 10)) IF(A6,10,(0 - 10))) IF(A7,10,(0 -10))) IF(A8,10,(0 - 10))) IF(A9,10,(0 - 10))) IF(A11,10,(0 -10))),COLOR0000FF;AVX零轴:0,COLOR00FFFF;实现利润最大化的法宝——波段操作指标(AVX)很多投资者都曾有过这样的苦恼:留不住好股票。
通达信副图指标公式源码大全
实用标准文档副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺 : SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪: VAR3,COLORBLUE;波: VAR4, COLORRED;段: VAR5 ,COLORYELLOW;VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;STICKLINE(VAR6,0,VAR4+15,5,0), COLORGREEN;VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+25,' 抄底 '),COLORYELLOW; STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4-1,' 放量 '),COLORGREEN; VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5;STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORYELLOW;实用标准文档VARA:=CROSS(VAR5,VAR4) AND REF(VAR4,1)>80;STICKLINE(VARA,VAR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-25,' 逃顶'), COLORYELLOW;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CL0SE>=-0.25 AND VAR15<22 AND VAR16<28 ANDVAR17>50;STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE;弹?')丄 INETHICK7,C0L0RWHITE;2、分类资金A:=IF((CL0SE>126.32),(AM0UNT)/(100000),V0L);主力 :MA(A,4),LINETHICK0,C0L0RYELL0W;游资 :MA(A,8),LINETHICK0,C0L0R00FF00;大户 :MA(A,16),LINETHICK0,C0L0RRED;散户 :MA(A,32),LINETHICK0,C0L0RF0F000;警戒线 :MA(A,180),C0L0RFF66FF,LINETHICK1; 主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0, 主力 ,3,0),C0L0R009CFF;STICKLINE(( 主力 ,2.8,0),C0L0R009CFF; STICKLINE(( 主力 ,2.5,0),C0L0R00C0FF; STICKLINE(( 主力 ,1.5,0),C0L0R00D1FF; STICKLINE(( 主力 ,1,0),C0L0R00EAFF; STICKLINE(( 主力 ,0.7,0),C0L0RYELL0W;STICKLINE(( DRAWTEXT(CROSS(VAR20,0.5)AND C0UNT(VAR20=1,10)=1,60,' 百万导主比:ABS (((主力)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0RYELL0W; 游比:ABS (((游资)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0R00FF00; 大比:ABS (((大户)/(主力 游资 大户 散户 ))*(100)),LINESTICK,C0L0RRED;散比:ABS (((散户)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0RF0F000;STICKLINE(( 游资> 0),0,游资,3,0),COLOR00C100;STICKLINE(( 游资> 0),0,游资,2.8,O),COLOROOCAOO;STICKLINE(( 游资> 0),0,游资,2.5,O),COLOROOD3OO;STICKLINE(( 游资> 0),0,游资,1.5,0),COLOROODBOO;STICKLINE(( 游资> 0),0, 游资,1 ,0),COLOR00EA00;STICKLINE(( 游资> 0),0,游资,0.7,0),COLORGREEN;STICKLINE(( 大户> 0),0, 大户 ,3,0),COLOR1020AA;STICKLINE(( 大户> 0),0, 大户 ,2.8,0),COLOR1020BB;STICKLINE(( 大户> 0),0, 大户 ,2.5,0),COLOR1020CC;STICKLINE(( 大户> 0),0, 大户 ,1.5,0),COLOR1020DD;STICKLINE(( 大户> 0),0, 大户 ,1,0),COLOR1020EE;STICKLINE(( 大户> 0),0, 大户 ,0.7,0),COLORRED;STICKLINE(( 散户> 0),0, 散户 ,3,0),COLORFF7700;STICKLINE(( 散户> 0),0, 散户 ,2.8,0),COLORFF8800;STICKLINE(( 散户> 0),0, 散户 ,2.5,0),COLORFF9900;STICKLINE(( 散户 > 0),0, 散户 ,1.5,0),COLORFFAA00; STICKLINE(( 散户 > 0),0, 散户,1,0),COLORFFBBOO;STICKLINE(( 散户 > 0),0, 散户 ,0.7,0),COLORLIBLUE;3、黑马起爆点VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),C0L0RGREEN;敌:50,COLORFFAA00 ,L INETHICK3;A:80;B:20;买:STICKLINE(CROSS(下,无),3,2O,2,O),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS( 下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),7O,9O,2,O),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),9O,99,2,O),COLORFF99OO,LINETHICK1;DRAWTEXT(CROSS( 下,天),70,' '),COLORFFFFCC;选股 2:IF(CROSS( 下,20),1,0);DRAWICON((CROSS( 下,20) ),20,1);DRAWICON((CROSS( 下,20) ),-20,25);4、宁波绝密(相传为宁波涨停敢死队的绝密指标)AND WOL:IF(CURRBARSCOUNT=1PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V135:MA(VOLUME,135);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买 :IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;主卖 :IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;STICKLINE( 主买 >0,0, 主买 ,2,0),COLORRED;{STICKLINE( 主卖 >0, 主买 ,VOL,2,1),COLOR00FF80;}STICKLINE(主买 <REF(主买,1)AND 主买 >0,0,主买,2,0),COLOROOFFFF;换手:VOL/CAPITAL*100,POINTDOT;二十日换手 :SUM( 换手 ,20);5、起涨点换手率 %:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;AND VVOL:=IF(CURRBARSCOUNT=1PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;虚拟量比 :VVOL/(REF(MA(V,5),1)),LINETHICK0,COLORRED;获利比例 %:WINNER(C)*100,COLORLIBLUE;涨幅 %:(C-REF(C,1))/REF(C,1)*100,LINETHICK0;量比 1:= 量比 >1.5 OR 虚拟量比 >1.5;换手率 %1:= 换手率 %>5;获利比例 %1:= 获利比例 %>70;涨幅 %1:= 涨幅 %>3;启动 := 换手率 %1 AND 量比 1 AND 获利比例 %1 AND 涨幅 %1 ;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;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 VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR实用标准文档VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股 :VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场 :=IF( 红色持股 ,JRL,DRAWNULL);明离场价 :=离场 ,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOROOOOFF,NODRAW;青色观望 :VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFFOOOO,NODRAW;黄色低买 :VAR19,COLOR33AACC,NODRAW;洋红离场 :VAR1A,COLORMAGENTA,NODRAW;急跌关注 :(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW;上市日期年 :REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFFOOFF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOROOFFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,3O,1),COLOROOOOFF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,3O,1),COLOROOFFOO;实用标准文档STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5; STICKLINE( 红色持股,CLOSE,O,2.8,0),COLOR000055; STICKLINE( 红色持股,CLOSE,O,2,0),COLOR000088; STICKLINE( 红色持股,CLOSE,O,1.5,0),COLOR0000AA; STICKLINE( 红色持股,CLOSE,O,1,0),COLOR0000CC; STICKLINE( 红色持股,CLOSE,O,0.5,0),COLOR0000EE; STICKLINE( 青色观望,CLOSE,O,2.8,0),COLOR555500; STICKLINE( 青色观望,CLOSE,O,2,0),COLOR888800; STICKLINE( 青色观望,CLOSE,O,1.5,0),COLORAAAA00; STICKLINE( 青色观望,CLOSE,O,1,0),COLORCCCC00; STICKLINE( 青色观望,CLOSE,O,0.5,0),COLOREEEE00; CO:=(C-O);STICKLINE( 急跌关注 ,O,C-CO/2,2.8,0),COLOR555555; STICKLINE( 急跌关注 ,O,C-CO/2,2,0),COLOR888888; STICKLINE( 急跌关注 ,O,C-CO/2,1.5,0),COLORAAAAAA; STICKLINE( 急跌关注 ,O,C-CO/2,1,0),COLORCCCCCC; STICKLINE( 急跌关注 ,O,C-CO/2,0.5,0),COLOREEEEEE; STICKLINE( 黄色低买 ,O,O+CO/3,2.8,0),COLOR335555; STICKLINE( 黄色低买 ,O,O+CO/3,2,0),COLOR338888;实用标准文档STICKLINE( 黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE( 黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE( 黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE( 洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE( 洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE( 洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE( 洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE( 洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;压力 :MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;支撑 :MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;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)+15*REF(X,5)+14*REF (X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(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,LINETHICK2;DD:= 多空线 <REF( 多空线 ,1);IF(DD, 多空线 ,DRAWNULL),COLOR00FFFF,LINETHICK2;实用标准文档A:=(PMA> 多空线 );IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;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);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,' '),COLORYELLOW;8、彩色成交量STICKLINE(VOL > 0,VOL,0,3,0),COLOR333333;STICKLINE(VOL > 0,VOL,0,2.5,0),COLOR998855;STICKLINE(VOL > 0,VOL,0,1.7,0),COLORBBAA77;STICKLINE(VOL > 0,VOL,0,0.9,0),COLORDDCC99;STICKLINE(VOL > 0,VOL,0,0.04,0),COLORFFEEBB;换手 :=VOL/CAPITAL*100,COLORRED;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,3,0),COLOR00AAAA;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,2.5,0),COLOR00CCCC;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,1.7,0),COLOR00EEEE;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,0.08,0),COLOR00FFFF;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,2.5,0 ),COLOR00BB00;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900;实用标准文档STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,0.8,0 ),COLOR00FF00; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,3,0),COLORBROWN; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,2.5,0),COLOR0000AA; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,1.7,0),COLOR0000CC; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,0.8,0),COLOR0000DD;五天均量 :MA(VOL,5),COLORRED,LINETHICK0.01;廿天均量 :MA(VOL,20),COLORWHITE,LINETHICK0.01;HSS:=V/CAPITAL*100,NODRAW;{ 显示当日换手 }五天换手率 :SUM(HSS,5),NODRAW;廿天换手率 :SUM(HSS,20),NODRAW;抛压 :STICKLINE(CROSS(84,RSI),0 ,VOL,1.5,0),COLORBLUE,LINETHICK5; V24:MA(VOL,24),COLORLIBLUE;V10:MA(VOL,10),COLORRED;V3:MA(VOL,3),COLORLIGRAY;9、涨停回马枪(有主图)均价线 :=AMOUNT/V/100;C2:=REF(C,1);涨停 :=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE( 涨停 ,0,5,6,0),COLORYELLOW;DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;实用标准文档MA13:=MA(C,13),COLORGRAY;MA21:=MA(C,21),COLORWHITE;支撑线 :=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1);操作线 :=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线 :=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线 :=45;震仓线 2:=50;逃命线 :=80;抄底线 :=20;绝底线 :=5;PP2:= 操作线<震仓线 2 AND REF( 操作线,1)> 震仓线 2 ;PP:=操作线 < 震仓线 AND REF(操作线,1)>震仓线;PP3:= 操作线<抄底线 AND REF( 操作线,1)> 抄底线 ;HH:=COUNT( 涨停,13)>=1;STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;STICKLINE(PP AND HH,0,5,3,0),COLORRED;STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;DRAWTEXT(PP2 AND HH,8,' 预警'),COLORRED;DRAWTEXT(PP AND HH,8,' 预警'),COLORRED;DRAWTEXT(PP3 AND HH,8,' 预警'),COLORRED;A:=SMA(L,4,3) ;绿色买入 :IF (((A AND REF(PP ,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP ,1) AND HH ,0,10,1,0),COLORGREEN;DRAWICON(A AND REF(PP ,1) AND HH,12,1);STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN;DRAWICON(A AND REF(PP3,1) AND HH,12,1);10 、海风 3 号M1:=MA(CLOSE,1);M2:=(LOW+HIGH+CLOSE)/3;M3:= MA(M2,5);M4:= HHV(M3,10);Z:=HHV((M1<M4),10) OR HHV((M1<M4),10);S:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3);DRAWTEXT( FILTER(CROSS(S ,60 ),20),L*0.98,' ▲'),COLORYELLOW ;{DRAWTEXT(FILTER( Z,9),H*1.028,' ★') ,COLORBLUE;STICKLINE( S>60,O,C,4,0) ,COLORFF9BFB;}STICKLINE( S>60,O,C,2,0) ,COLORRED;{STICKLINE( S>60,O,C,1.5,0) ,COLORFD9BFB; }STICKLINE( S>60,H,L,0,0) ,COLORRED;{STICKLINE( S<60,O,C,4,0) ,COLOR01DC38;STICKLINE( S<60,O,C,2.5,0) ,COLOR01FE41;}STICKLINE( S<60,O,C,2,0) ,COLORGREEN;STICKLINE( S<60,H,L,0,0) ,COLORGREEN;VAR1:MA(CLOSE,5);VAR2:MA(CLOSE,10);VAR3:MA(CLOSE,20);VAR60:MA(CLOSE,60);VAR120:MA(CLOSE,120);VAR4:=OPEN<VAR1 OR OPEN<VAR2 OR OPEN<VAR3;VAR5:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));VAR6:=VOL/MA(VOL,30)>1.2;VAR7:=CLOSE/REF(CLOSE,1)>1.049;VAR8:=VAR4 AND VAR5 AND VAR6 AND VAR7;VAR9:=VAR8 AND (REF(BARSLAST(VAR8),1)>60 OR BARSSINCE(VAR8)=0); DRAWICON(VAR9 ,L*0.98,1) ;STICKLINE( VAR9,O,C,6,0) ,COLORYELLOW;STICKLINE( VAR9,H,L,0.6,0) ,COLORYELLOW;11 、涨停时间窗(通达信金融终端副图) N:=13;WR 大于 80 考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))丄 INETHICKO; 均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;ZT:=C/REF(C,1)>1.O97;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;DRAWTEXT(ZT,L*1.1,' 涨停 '),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987); STICKLINE(AA,0,L*0.5,2,0),COLORBLUE;DRAWTEXT(AA,L*0.6,' 警戒 '),COLORWHITE;STICKLINE(AA AND VARZT=2,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=2,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=4,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=4,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=7,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=7,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=12,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=12,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=20,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=20,L*0.9,' 时间窗 '),COLORWHITE;。
精品抄底通达信指标公式源码
精品抄底通达信指标公式源码网上有个不错的公示,我修改了一下,感觉还不错,发出来给大家。
x_1:=6;x_2:=80;x_3:=ref(close,1);x_4:=sma(max(close-x_3,0),18,1)/sma(abs(close-x_3),13,1)*100;x_5:=sma(max(close-x_3,0),24,1)/sma(abs(close-x_3),20,1)*100;x_6:=barslast(x_5<48)<=3andcross(x_4,x_5);x_7:=(close-ma(close,48))/ma(close,20)*100x_10:=ema((close-x_8)/(x_9-x_8)*100,4);x_11:=ema(0.667*ref(x_10,1)+0.333*x_10,2);x_12:=1011131;x_13:=if(date<=x_12,x_7,0)orif(date<=x_12,x_2,0);x_14:=ref(close,1);x_15:=sma(max(close-x_14,0),7,1)/sma(abs(close-x_14),7,1)*100;x_16:=sma(max(close-x_14,0),13,1)/sma(abs(close-x_14),13,1)*100;x_17:=barslast(x_16<43)<=3andcross(x_15,x_16);x_18:=(close-ma(close,43))/ma(close,20)*100x_21:=ema((close-x_19)/(x_20-x_19)*100,4);x_22:=ema(0.667*ref(x_21,1)+0.333*x_21,2);x_23:=1011131;x_24:=if(date<=x_23,x_18,0)orif(date<=x_23,x_2,0);x_25:=0-(-1)*x_17andx_18andcross(x_21,x_22)andx_21<=25;x_26:=ref(close,1);x_27:=sma(max(close-x_26,0),7,1)/sma(abs(close-x_26),7,1)*100;x_28:=sma(max(close-x_26,0),13,1)/sma(abs(close-x_26),13,1)*100;x_29:=barslast(x_28<33)<=3andcross(x_27,x_28);x_30:=(close-ma(close,33))/ma(close,20)*100x_33:=ema((close-x_31)/(x_32-x_31)*100,4);x_34:=ema(0.667*ref(x_33,1)+0.333*x_33,2);x_35:=1011131;x_36:=if(date<=x_35,x_30,0)orif(date<=x_35,x_2,0);x_37:=0-(-1)*x_29andx_30andcross(x_33,x_34)andx_33<=25;x_38:=ref(close,1);x_39:=sma(max(close-x_38,0),7,1)/sma(abs(close-x_38),7,1)*100;x_40:=sma(max(close-x_38,0),13,1)/sma(abs(close-x_38),13,1)*100;x_41:=barslast(x_40<23)<=3andcross(x_39,x_40);x_42:=(close-ma(close,23))/ma(close,20)*100x_45:=ema((close-x_43)/(x_44-x_43)*100,4);x_46:=ema(0.667*ref(x_45,1)+0.333*x_45,2);x_47:=1011131;x_48:=if(date<=x_47,x_42,0)orif(date<=x_47,x_2,0);x_49:=0-(-1)*x_41andx_42andcross(x_45,x_46)andx_45<=25;x_50:=(ma(close,60)-low)/ma(close,20)*200;x_51:=(ma(close,60)-low)/ma(close,60)*200;x_52:=(ma(close,30)-low)/ma(close,60)*200;x_53:=ref(close,1);x_54:=sma(max(close-x_53,0),7,1)/sma(abs(close-x_53),7,1)*100;x_55:=filter(ref(x_54,1)<20andx_54>ref(x_54,1),5);x_56:=close/m a(close,40)<0.74;x_57:=5;x_58:=ema(close,x_57);x_59:=ema(x_58,x_57);x_60:=x_58-ref(x_58,1);x_61:=x_59-ref(x_59,1);x_62:=abs(x_58-x_59);x_63:=(high-low)/ref(close,1)>0.05;x_64:=(x_60+x_61)/2;x_65:=pow(x_62,1)*pow(x_64,3);x_66:=x_65/hhv(abs(x_65),x_57*3);x_67:=count(x_6 3,5)>1;x_68:=x_56andx_63andx_67;x_69:=cross(x_66,(-0.9));x_70:=filter(x_55andx_52>20orclose>ref(close,1)andref(x_68,1),10);x_71:=filter (ref(x_68,1)and(x_69orclose>ref(close,1))andmacd.macd>(-1.5),10);x_72:=count(x_71,13)>=1andx_70;x_73:=x_72;x_74:=x_37;x_75:=x_49;xg:if(x_73andx_74,x_73andx_74,0)orif(x_73andx_75,x_73andx_75,0);。
通达信指标公式大全
SZ3天地人天: IF(HHVBARS(V ,60) ,REF(C ,HHVBARS(V ,60) ) ,C ),COLORLIBLUE,POINTDOT;地: IF(LLVBARS(V,5), REF (C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;人: IF(LLVBARS(V,13), REF (C,LLVBARS(V,13)),C),COLORMAGENTA,POINTDOT;MA3:MA(C,3);MA13:MA(C,13);主力成本:COST(5),POINTDOT;获利了结: COST(98),POINTDOT;ZLX:STICKLINE(C<O AND REF(C,1)>REF(O,1),REF(C,1),REF(C,1)*0.995,4,0),COLOR00FF00;SZ1交易量WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORBLUE; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2))COLORRED,POINTDOT;SZ2短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;高浪日:=REF(短期,1)<2 AND REF(中期,1)<2 AND REF(中长期,1)<2 AND REF(长期,1)<2;高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3;STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2 AND V/REF(V,1)>=0.8;D:=H=HHV(H,3);A ANDB AND D;SZ仙人LC:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORW HITE,LINETHICK1;GAO:=HHV(C,60)-LLV(C,60);RSI:=SMA(MAX(LC-REF(LC,1),0),5,1)/SMA(ABS(LC-REF(LC,1)),5,1);仙人:LC+GAO*(RSI-0.5),COLORFF3399,LINETHICK1;{STICKLINE(CROSS(RSI,0.1),仙人,REF(仙人,1),1,0),COLORYELLOW;STICKLINE(CROSS(0.9,RSI),仙人,REF(仙人,1),1,0),COLORCYAN;}攻防价位:(REF((H-L)*0.618+L,1)),NODRAW,COLORYELLOW;STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;多:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MI D,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+ 9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF( MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;MM:IF(空>=REF(空,1),空,DRAWNULL),COLORYELLOW,LINETHICK2;买:=CROSS(多,空);卖:=CROSS(空,多);DRAWICON(买,L*0.97,1);DRAWICON(卖,H*1.03,2);SZ7短线MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;MA18:MA(C,18),COLOR0096FF;MA30:MA(C,30),COLOR00FF99;MA60:MA(C,60),COLORFF00FF;MA120:MA(C,120),COLORWHITE;{MA250:MA(C,250),COLORCY AN;}D1:=((MEMA(CLOSE,3) - MEMA(CLOSE,6)) * 5);S:=MA(C,9);Z:=((EMA(D1,7) + EMA(CLOSE,5))-S)*100;P:=EMA(Z,2);D2:=IF(Z>P,1,0);STICKLINE(D2=0,OPEN,CLOSE,0.8,0),COLORBLUE;STICKLINE(D2=1,OPEN,CLOSE,0.8,0),COLORWHITE;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3 OR L<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE);DRAWICON(A1 AND REF(A1,1)=0 ,L*0.98,7);DRAWICON(A2 AND REF(A2,1)=0 ,H*1.02,8);LC:=REF(C,1);LD:=IF(C<LC*0.89,1,0);LE:=COUNT(LD=1,20);LF:=COUNT(LD=1,6);LG:=MA6/4.5;RSI1:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,NODRAW,COLOR YELLOW;EE:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, ;AA:=((REF(EE,1)<REF(EE,2) AND EE<-30) AND EE>=REF(EE,1)) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30)) OR EE=-30;MJ0:=IF(AA AND LE<1,1,0);V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);V AR3:=(CLOSE-V AR1)/V AR1*100<-10;V AR4:=(V AR1-VAR2)/V AR2*100<-16;V AR5:=V AR3 AND V AR4;V AR6:=V AR5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1 AND MACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA; DRAWTEXT(A<-LG AND LF=0,L*0.96,'下跌过急'),COLORYELLOW;STICKLINE(A4=1,A8,A8+A7/2,2.8,0),COLORMAGENTA;DRAWICON(V AR6,L*0.96,11);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:=IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻力位:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);支撑位:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW,COLORLIRED;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELL OW;DRAWICON(CROSS(J,0) AND RSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2);DRAWTEXT(CROSS(J,5)AND RSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);SZ15多方炮A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;{三日均线描述}A2:=REF(C,2)/REF(O,2)>1.03;{前天的涨幅大于3%}A3:=REF(H,1)/REF(L,1)>1.03;{昨振幅大于3%}A4:=C/REF(C,1)>1.03;{今天涨幅大于3%}A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.01;{昨天阴线开盘及收盘价均在前日收盘价1.01以内}A6:=REF(C,1)>REF(O,2);{昨天阴线收盘要大于前日开盘价}A7:=C>REF(O,1);{今日收盘价大于昨日的开盘价}A8:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);多方炮:A8 AND J<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;V AR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);V AR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);V AR4Y:=REF(CLOSE,1);V AR5Y:=((SMA(MAX((CLOSE - V AR4Y),0),6,1) / SMA(ABS((CLOSE - V AR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - V AR4Y),0),12,1) / SMA(ABS((CLOSE - V AR4Y)),12,1)) * 100);V AR7Y:=((SMA(MAX((CLOSE - V AR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);V AR9Y:=SMA(V AR8Y,3,1);V ARAY:=SMA(V AR9Y,3,1);V ARBY:=((3 * VAR9Y) - (2 * V ARAY));VARCY:=(CROSS(V AR5Y,10) AND (V AR3Y < (0 - (28 * 20))));V ARDY:=((100 - CROSS(76,V AR5Y)) AND (V AR3Y > (5 * 20)));DRAWICON(((CROSS(76,V AR5Y) AND (V AR3Y > 5)) ),(HIGH * 1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(V AR9Y,V ARAY) AND (V ARAY < 10)) AND (V AR3Y < (0 - 30))) AND (V AR2Y > 3)) * 30);VARFY:= - ((((V ARAY < 11) AND (V AR5Y < 15)) AND (V AR3Y < (0 - 26))) * 10);DRAWICON((CROSS(V ARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));V AR3C:=EMA(能量线,1);V AR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100);DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW *0.985),1),LINETHICK3,COLORRED;DRAWICON(CROSS(X,Y),(HIGH *1.02),2),LINETHICK2,COLOR00FF00;DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK:=EMA(((( CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - VAR3) / (V AR4 - V AR3)) * 100),3);V AR6:=((AK + V AR5) / 2);V AR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * V AR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线 1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW; V AR1:LLV(A7,21);V AR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>V AR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-V AR1)/(V AR2-V AR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(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*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;V AR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}V AR4:=EMA(EMA(EMA(V AR3,4),4),4);{可将3该为4,信号少点}E:=(V AR4-REF(VAR4,1))/REF(V AR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>V AR1 AND 上线1>一号支撑线AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; 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 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS( EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3 )+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BAR SLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2: =HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST( Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_ 2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)<REF(Q_B,2);X5:=Q_A>REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);SHOOT:REF(TJ,1)=0 AND TJ>=1;SZ18背离DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;DRAWTEXT(CROSS(DIFF,DEA),DIFF,'☆'),COLORRED;{DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;DRAWICON(周金AND 日金,-0.1,7);DRAWICON(周金AND 月金,-0.15,11);DRAWICON(日金AND 月金,-0.1,1);日死:IF(CROSS(日DEA,日DIFF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周DEA,周DIFF),-0.125,0),COLORRED;月死:IF(CROSS(月DEA,月DIFF),-0.15,0),COLORGREEN;DRAWICON(周死AND 日死,-0.1,8);DRAWICON(周死AND 月死,-0.15,12);DRAWICON(日死AND 月死,-0.15,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1,NODRAW;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW; STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.225,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),NODRAW;STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,NODRAW;DRAWTEXT(底背离,0.10,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),NODRAW;顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.275,'三全项'),COLOR0000FF,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WW AND DD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,' 反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14) AND LOW<REF(LOW,1) AND LOW<REF(LOW,5) AND MACD>REF(MACD,1) AND 0>MACD AND 0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21); V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=V ARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF;STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF;STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF;STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;SZ16水池STICKLINE(C>0,90,95,10,0),COLOR408000;STICKLINE(C>0,10,5,10,0),COLOR408000;ZHENGYI:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(ZHENGYI,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;风险值:ZHENGYI,COLORCY AN,LINETHICK1;警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;SZ10综合预警V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21);V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);EMA(IF(LOW<=VARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10>0;SZ11笑脸M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位+2),MIN(REF(DIF,定位+3),MIN(REF(DIF,定位+4),MIN(REF(DIF,定位+5),MIN(REF(DIF,定位+6),REF(DIF,定位+7)))))));今股价低值:=MIN(REF(L,1),MIN(REF(L,2),MIN(REF(L,3),MIN(REF(L,4),MIN(REF(L,5),MIN(REF(L, 6),REF(L,7)))))));DIF现低:=MIN(REF(DIF,1),MIN(REF(DIF,2),MIN(REF(DIF,3),MIN(REF(DIF,4),MIN(REF(DIF,5),M IN(REF(DIF,6),REF(DIF,7)))))));底部背离:=IF(CROSS(DIF,DEA) AND 今股价低值<前股价低值AND DIF现低>DIF前低,100,0);信号1:=IF(底部背离=100 OR REF(底部背离,1)=100 OR REF(底部背离,2)=100 OR REF(底部背离,3)=100 OR REF(底部背离,4)=100 OR REF(底部背离,5)=100OR REF(底部背离,6)=100 OR REF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1) AND REF(M13,1)<=REF(M13,2) AND REF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZD AND ZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100 OR REF(TJ,2)=100 OR REF(TJ,3)=100 OR REF(TJ,4)=100 OR REF(TJ,5)=100OR REF(TJ,6)=100 OR REF(TJ,7)=100 OR REF(TJ,8)=100 OR REF(TJ,9)=100 OR REF(TJ,10)=100 ORREF(TJ,11)=100 OR REF(TJ,12)=100 OR REF(TJ,13)=100 OR REF(TJ,14)=100 OR REF(TJ,15)=100OR REF(TJ,16)=100 OR REF(TJ,17)=100 OR REF(TJ,18)=100 OR REF(TJ,19)=100 OR REF(TJ,20)=100,100,0);超跌:=IF(ZJ=100 AND DD=100 AND C>M13,100,0);入场:=IF(超跌=100 AND 信号1=100,100,0);XG:入场=100;SZ12跟庄A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);V AR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);V AR2:=EMA(VAR1,8);V AR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(V AR3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),COLORFFFF00;机构建仓区:0,LINETHICK0,COLORFFFF00;V AR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND V AR4>13,0,50,2,0),COLOR0099FF;V AR5:=FILTER((趋势<=13 AND V AR4>13),10);DRAWTEXT(V AR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND V AR4,0,30,3,0),COLORGRAY;V AR6:=FILTER((趋势>=90 AND V AR4),10);DRAWTEXT(V AR6,40,'清仓'),COLORGRAY;V AR7:=LLV(LOW,30);V AR8:=HHV(HIGH,30);V AR9:=EMA((CLOSE-V AR7)/(V AR8-V AR7)*4,4)*25;STICKLINE(V AR9>90,100,105,3,2),COLORRED;V AR10:=(V AR9-LLV(V AR9,4))/(HHV(V AR9,4)-LLV(V AR9,4))*100;DRAWTEXT(IF(CROSS(V AR9,V AR10) AND V AR9>87,95,0),88,'险'),COLOR00FF00; DRAWICON(CROSS(90,V AR9),95,9);V AR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;V AR12:=HHV(V AR11,30)*8;火焰山:EMA(IF(LOW<=V AR7 AND 趋势<40,(V AR11+V AR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;V AR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;V AR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORFF0000;V AR16:=MAX(EMA(V AR13,2)-EMA(V AR14,5),0)*200;V AR17:=EMA(V AR16,5);波浪峰:V AR17,STICK,COLORFF00FF;STICKLINE(V AR17<REF(V AR17,1),0,V AR17,1,0),COLOR00FF00;V AR18:=MA(趋势线,8);IF(CROSS(V AR2,V AR18) AND V AR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,V AR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪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);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;SZ14老鼠仓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;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;SZ250HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);HDY<45;SZ20逃跑V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;收盘价逃顶:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2,COLORBLUE; DRAWTEXT(收盘价逃顶,80,'收盘价逃顶'),COLOR000999;SZ21总金额总亿:AMOUNT/100000000,COLORFF00FF,NODRAW;V AR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*( HIGH-LOW),0-AMOUNT/2))/100000000,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; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反弹:= IF(CROSS(K,D) AND BBIAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;DRAWICON(反弹=80,趋势J2-0.005,1);阶段底:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,CO LORRED,LINETHICK2;V1:=AMOUNT/VOL/100;V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(L,2)+O+ REF(O,1)+REF(O,2))/12,LINETHICK2,COLORLICYAN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);保护价:(REF(CLOSE,2)+REF(CLOSE,1)+O)/3;N:=75;P:=5;P1:=10;A1:=REF(H,P)=HHV(H,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCY AN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);CC1:=BACKSET(BB1,P1+1);DD1:=FILTER(CC1,P1);EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);FF1:=EE1>REF(EE1,1);长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;AA2:=REF(L,P1)=LLV(L,2*P1+1);BB2:=FILTER(AA2,P1);CC2:=BACKSET(BB2,P1+1);。
20个极品通达信指标公式源码
公式1(未来函数)代码N1:=5;N2:=10;N3:=20;N4:=30;P:=2;M:=20;N:=250;M1:=55;W:=21;P3:=500;N9:=90; 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; MA1:EMA(CLOSE,N1);MA2:EMA(CLOSE,N2);MA3:EMA(CLOSE,N3),COLOR00FFFF;MA4:EMA(CLOSE,N4),LINETHICK2;TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR 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;做空:=IF(K<D AND MACD<0 AND V>1,-2,0),COLOR00FF00;强洗:=IF(MACD>0 AND K<D AND V>1,1,0),COLOR0099FF;弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00;STICKLINE(做多AND C>=O,C,O,3,1),COLORRED;STICKLINE(做多AND C<O,C,O,3,0),COLOR990099;STICKLINE(做多AND C<O,C,O,1,0),COLORCC00CC;STICKLINE(做多AND C<O,C,O,0.3,0),COLORFF00FF;STICKLINE(做多AND C>=O,C,O,3,1),COLOR0000FF;{STICKLINE(做多AND C>=O,C,O,1.5,0),COLOR0000DD;STICKLINE(做多AND C>=O,C,O,0.4,0),COLOR0000FF;}STICKLINE(做空AND C>=O,L,H,0.1,0),COLOR0000FF;STICKLINE(做空AND C>=O,C,O,3,1),COLOR00FF00;{STICKLINE(做空AND C<O,C,O,3,0),COLOR00FF00;STICKLINE(做空AND C<O,C,O,0.3,0),COLOR00FF00;STICKLINE(做空AND C<O,C,O,0.3,0),COLOR00FF00;}STICKLINE(强洗AND C>=O,L,H,0.1,0),COLOR0000FF;STICKLINE(强洗AND C>=O,C,O,3,1),COLORFFFFFF;STICKLINE(强洗AND C<O,C,O,3,0),COLOR999999;STICKLINE(强洗AND C<O,C,O,1,0),COLORCCCCCC;STICKLINE(强洗AND C<O,C,O,0.3,0),COLORFFFFFF;STICKLINE(弱升AND C>=O,C,O,3,1),COLOR00FFFF;STICKLINE(弱升AND C<O,C,O,3,0),COLOR009999;STICKLINE(弱升AND C<O,C,O,0.3,0),COLOR00FFFF;STICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;DRAWICON(FILTER(XG,3),L*0.985,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(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;TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;MM:=C>HRY33 AND HRY33 >=REF(HRY33 ,1);QQ:=HRY33>=REF(HRY33 ,1);XG11:=CROSS(C,HRY33) AND QQ AND MM;BUY1:=LAST(CLOSE>MA(CLOSE,55),0,5);BUY2:=EXIST(CLOSE<MA(CLOSE,55),5);BUY:=CLOSE>MA(CLOSE,55)&&BUY1&&BUY2;W18:=FILTER(EXIST(XG11 OR BUY,1),5);STICKLINE(W18,C,(C+O)/2,4,0),COLORFF00FF;DRAWTEXT(W18,L*0.97,'牛'),COLOR00FFFF;X1:=REF(C,1)/HHV(H,20)<0.82;X2:=(MIN(C,O)-L)/(H-L)>0.67;X3:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.33;X4:=ABS(C-O)/C<0.01;DOWN:=O>C;X5:=COUNT(DOWN,7)>=5;XG8:=X1 AND X2 AND X3 AND X4 AND X5;DRAWTEXT(XG8,L*0.98,'螺'),COLOR00FFFF;AA:=REF(C,1)/REF(O,1)<0.96;BB:=C/O>1.03;CC:=C>REF(O,1);TJ81:=AA AND BB AND CC;X81:=REF(C,1)/HHV(H,20)<0.82;DN:=O>C;X82:=COUNT(DN,7)>=5;X83:=C=HHV(C,3);XG81:=TJ81 AND X81 AND X82;XG82:=X81 AND X82 AND X83;XG88:=XG81 OR XG82;DRAWTEXT(XG88,L*0.96,'反'),COLOR00FFFF;X01:=REF(C,1)/HHV(H,21)<0.77;{DOWN1:=O>C;X02:=COUNT(DOWN1,9)>=6;}X03:=ABS(C-O)/C<0.008;X04:=(H-L)/C>0.025;XG0:=X01 AND X03 AND X04;DRAWTEXT(XG0,L*0.97,'星'),COLOR00FFFF;S1:=REF(C,1)/LLV(L,W)>1.30;S2:=(H-MAX(C,O))/(H-L)>0.60;S3:=ABS(C-O)/C<0.03;S4:=(H-O)/C>0.05 AND C<O;SAL1:=S1 AND S2 AND S3;SAL2:=S1 AND ABS(C-O)/C>0.05 AND C<O;SAL3:=S1 AND ABS(C-O)/C<0.001;SAL4:=S1 AND S4;SAL5:=(H-MAX(C,O))/(H-L)>0.67 AND C<O AND S3;SAL:=SAL1 OR SAL2 OR SAL3 OR SAL4 OR SAL5;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;黄买:=FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7);黄卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);红买:=FILTER(CROSS(RSI,11),7);红卖:=FILTER(CROSS(89,RSI),7);绿买:=FILTER(CROSS(RSI,20),7);绿卖:=FILTER(CROSS(80,RSI),7);SL1:=红卖AND 绿卖;SL2:=红卖AND 绿卖AND 黄卖;BU:=红买AND 绿买;SS1:=CROSS(MA(C,5),C);SS2:=(REF(C,1)-C)/REF(C,1)>0.04;SS3:=O<REF(C,1);JJ1:=SS1 AND SS2 AND SS3;SSL:=JJ1 AND S1;SAL8:=FILTER(SAL OR SSL,5);DRAWTEXT(SAL8 OR SL1 OR SL2,H*1.02,'卖'),COLOR00FF00; STICKLINE(SAL8 OR SL1 OR SL2,C,O,1,0),COLORFF0000; DRAWTEXT(SAL8 AND SL1 AND SL2,H*1.02,'必卖'),COLOR00FF00; MA20:=MA(CLOSE,20);AA10:=MA(CLOSE,8);中期大底:=LLV(LOW,30);支撑:=HHV(EMA(((((OPEN + LOW) + HIGH) + CLOSE) / 4),5),60);压力一:=HHV(LOW,20);中线:=MA(CLOSE,3);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地- B6) / B7),2) * 80);短期底部:=(LLV(HIGH,30) * 0.93);MA80:=LLV(HIGH,30);压力二:=(SMA(HIGH,21,2) * 1.035);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV8:=SMA(下档线,3,1);K8:=SMA(RSV8,3,1);D8:=((3 * RSV8) - (2 * K8));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);K24:=SMA(SMA(J12,3,1),3,1);D24:=((3 * SMA(J12,3,1)) - (2 * K24));压力位:=IF(CROSS(D24,D),HIGH,L);长期底部:=LLV(HIGH,30);X18:=EMA((((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6),10);逃遁:=(SMA(HIGH,21,2) * 1.05);TJ18:=FILTER(((((LLV(LOW,0) AND ((MA(CLOSE,37) - REF(MA(CLOSE,37),1)) > 0)) AND (LOW <= 短期底部)) AND (WINNER(CLOSE) < 0.05)) AND ((CLOSE / OPEN)> 0.13)),7);图公式2代码PJJ:=DMA((H + L + C * 2) / 4,0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=VOL / ((H - L) * 2 - ABS(C - O));XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C - L)),VOL / 2))+ IF(C > O,0 - QJJ * (H - C + (O - L)),IF(C < O,0 - QJJ * (H - L),0 - VOL / 2)); HSL:=XVL / 20 / 1.15;攻击流量:=HSL * 0.55 + REF(HSL,1) * 0.33 + REF(HSL,2) * 0.22;GJJ:=EMA(攻击流量,2);DIFF:=(EMA(GJJ,12)-EMA(GJJ,26)),COLORGREEN;DEA:=MA(DIFF,2),COLORYELLOW;VA2:=LLV(LOW,33);VA3:=HHV(HIGH,21);VA4:=EMA((CLOSE-VA2)/(VA3-VA2)*100,10)*-1+100;趋势:=100-EMA(0.191*REF(VA4,1)+0.809*VA4,1);趋势线:=100-EMA(0.191*REF(VA4,1)+0.809*VA4,1);STICKLINE(DIFF>DEA AND 趋势线>REF(趋势线,1),HHV(H,5)*1.05,LLV(L,5)*0.95,4,0),COLOR781836;DRAWKLINE(H,O,L,C);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 VAR11 OR VAR12 OR VAR13 OR VAR14 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 OR VAR8 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;X0:=(3*C+L+O+H)/6;多空线: (20*X0+19*REF(X0,1)+18*REF(X0,2)+17*REF(X0,3)+16*REF(X0,4)+15*REF(X0,5)+14*REF(X0,6)+13*REF(X0,7)+12*REF(X0,8)+11*REF(X0,9)+10*REF(X0,10)+9*REF(X0,11)+8*REF(X0,12)+7*REF(X0,13)+6*REF(X0,14)+5*REF(X0,15)+4*REF(X0,16)+3*REF(X0,17)+2*REF(X0,18)+REF(X0,20))/210,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。
通达信资金仓位指标公式源码
通达信资金仓位指标公式源码展开全文以下是股窜网()为你提供的:通达信资金仓位指标公式源码VAR2:=MA(CLOSE,5);VAR3:=MA(CLOSE,15);VAR4:=MA(CLOSE,20);VAR5:=MA(CLOSE,45);满仓:100,POINTDOT,COLORRED;八成:80,POINTDOT,COLORMAGENTA;半仓:50,POINTDOT,COLORYELLOW;三成:30,POINTDOT,COLORGREEN;空仓:0,POINTDOT,COLORWHITE;VAR6:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;VAR7:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;VAR8:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4AND CLOSE<VAR5;VAR9:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;VAR10:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;VAR11:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;VAR12:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;VAR13:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;VAR14:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;VAR15:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;VAR16:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;VAR17:=CLOSE>VAR2 AND CLOSE=VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;VAR18:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;VAR19:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;VAR20:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;VAR21:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;STICKLINE(VAR6,0,5,3,0),COLORWHITE;STICKLINE(VAR7 OR VAR18 OR VAR19 OR VAR21,0,30,3,0),COLORGREEN;DRAWICON(((VAR7 OR VAR18 OR VAR19 OR VAR21) AND REF(VAR6,1)),30,1);STICKLINE(VAR8 OR VAR20,0,50,3,0),COLORYELLOW;DRAWICON(((VAR8 OR VAR20) AND REF((VAR7 OR VAR18 OR VAR19 OR VAR21),1)),50,23);STICKLINE(VAR9,0,80,3,0),COLORLIMAGENTA;DRAWICON((VAR9 AND REF((VAR8 OR VAR20),1)),80,23);STICKLINE(VAR10,0,100,3,0),COLORRED;STICKLINE(VAR11,0,80,3,0),COLORMAGENTA;DRAWICON((VAR10 AND REF(VAR11,1)),90,9);STICKLINE(VAR12,0,50,3,0),COLORYELLOW;STICKLINE(VAR13,0,20,3,0),COLORGREEN;STICKLINE(VAR14 OR VAR15 OR VAR16 OR VAR17,0,50,3,0),COLORGRAY;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1.05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED;XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(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;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));金叉:短线>中线 AND REF(短短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND立桩VOL>2*REF(VOL,1)AND CLOSE>VAR1;量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(量)),REF(HIGH,BARSLAST(立桩立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;S TICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR 454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+ INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(M ONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=B ARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+ T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)周+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,0.1,0),COLORFFCCAA; STICKLINE(平衡线<启动线,启动线,平衡线,0.1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0.35,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF;平台启动);VARZT:=BARSLAST(DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW; 【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2.5,1.5),LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;炒股不亏钱(散户必看)炒股入门口诀一、赢家重在观念正确1 一年做一股!忠告,轻易不抛牛股,毕业。