当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:纪律助手,解盘公式(通达信公式 副图 源码 测试图)
软件名称:[B]纪律助手,解盘公式(通达信公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:10.0 KB
官方主页:Home Page
更新时间:2021-10-14 00:15:28
软件简介:
纪律助手
解盘公式
可以把自己的公式融合一起。
源码如下:
{操作纪律提示}
DRAWRECTREL(0,0,350,999,RGB(255,255,255));
DRAWTEXT_FIX(ISLASTBAR,0,0.01,0,'操作纪律:★ 抄月殳要有“逆人类思维”;★ 要小心买入,大胆卖出;★ 无明确信号时,不可轻易介入'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.15,0,'1、盘中若建仓需轻仓,盘后若无信号,须谨慎持股(或第二日冲高卖出)'),COLORBLUE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.29,0,'2、尾盘若建仓需上影线不大于K线实体(即无长上影线)'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.43,0,'3、选股建仓时,宁可错过,不可做错(做错,须考虑及时卖出)'),COLORBLUE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.57,0,'4、减仓清仓时,宁可做错,不可幻想(做错,可考虑重新少量接回)'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.71,0,'5、建仓后第3交易日,仍未起涨,谨慎持有'),COLORBLUE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.85,0,'6、设立止盈止损位,小亏大赚,任何时候要保住本金'),COLORBLUE;
{常规指标解盘}
DRAWRECTREL(350,0,700,333,RGB(100,50,50));
DRAWRECTREL(350,333,700,666,RGB(50,100,50));
DRAWRECTREL(350,666,700,999,RGB(50,50,100));
DRAWRECTREL(700,0,999,999,RGB(100,100,100));
{MACD}
DIFF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
MACDTJ1:=(MACD<0 AND MACD>REF(MACD,1));{负值缩小}
MACDTJ2:=(MACD>=0 AND MACD>REF(MACD,1));{正值放大}
MACDTJ3:=(MACD>=0 AND MACD<REF(MACD,1));{正值减小}
MACDTJ4:=(MACD<0 AND MACD<REF(MACD,1));{负值扩大}
MACDTJ5:=(HHV(MACD,4)<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3));{负值区出建仓点}
MACDTJ6:=(LLV(MACD,4)>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3));{正值区出减仓点}
{KDJ}
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJTJ1:=CROSS(J,K) AND CROSS(J,D);{金叉}
KDJTJ2:=CROSS(K,J) AND CROSS(D,J);{死叉}
KDJTJ3:=CROSS(J,0);{J上穿底线}
KDJTJ4:=CROSS(100,J);{J下穿顶线}
KDJTJ5:=CROSS(REF(J,1),85) AND J<REF(J,1);{J下拐头}
KDJTJ6:=CROSS(15,REF(J,1)) AND J>REF(J,1);{J上拐头}
{CCI};
TYP:=(H+L+C)/3;
CCI:=((TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)))/2+50,COLORMAGENTA;
CCITJ1:=CROSS(CCI,-100);{上穿-100}
CCITJ2:=CROSS(CCI,0);{上穿0}
CCITJ3:=CROSS(CCI,100);{上穿100}
CCITJ4:=CROSS(100,CCI);{下穿100}
CCITJ5:=CROSS(0,CCI);{下穿0}
CCITJ6:=CROSS(-100,CCI);{下穿-100};
{常规解盘文字}
DRAWTEXT_FIX(ISLASTBAR AND MACDTJ1,0.4,0.02,0,'MACD 空头区 绿柱 减小,请关注'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND MACDTJ2,0.4,0.02,0,'MACD 多头区 红柱 放大,请关注'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND MACDTJ3,0.4,0.02,0,'MACD 多头区 红柱 缩小,请警惕'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND MACDTJ4,0.4,0.02,0,'MACD 空头区 绿柱 扩大,请警惕'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND MACDTJ5,0.4,0.16,0,'MACD 空头区 出现 建仓信号,请关注'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND MACDTJ6,0.4,0.16,0,'MACD 多头区 出现 减仓信号,请警惕'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND KDJTJ1,0.4,0.36,0,'KDJ 金叉,请关注'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND KDJTJ2,0.4,0.36,0,'KDJ 死叉,请警惕'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND KDJTJ3,0.4,0.52,0,'KDJ J值 上穿 0线,请关注'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND KDJTJ4,0.4,0.52,0,'KDJ J值 下穿 100线,请警惕'),COLORBLUE;
DRAWTEXT_FIX(ISLASTBAR AND KDJTJ5,0.4,0.52,0,'KDJ J值 出现 向下拐头,请警惕'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND KDJTJ6,0.4,0.52,0,'KDJ J值 出现 向上拐头,请关注'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR AND CCITJ1,0.4,0.7,0,'CCI 上穿 -100线 ,请关注'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND CCITJ2,0.4,0.7,0,'CCI 上穿 0线,可考虑少量建仓'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR AND CCITJ3,0.4,0.7,0,'CCI 上穿 100线,进入强势区,须注意获利了结'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND CCITJ4,0.4,0.85,0,'CCI 下穿 100线,请考虑减仓'),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR AND CCITJ5,0.4,0.85,0,'CCI 下穿 0线,请坚决减仓或清仓'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND CCITJ6,0.4,0.85,0,'CCI 下穿 -100,请果断清仓'),COLORGREEN;
{导师版策略解盘}
DRAWTEXT_FIX(ISLASTBAR,0.75,0.25,0,'DIY区,个人自编公式'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.75,0.65,0,'导师版,策略解盘提示,功能预留区域'),COLORLIRED;
AA1:=TDXDLL2(5,0,0,0);
ZZT001:=TDXDLL2(4,1,DATE,STR2CON(CODE));
AA2:=TDXDLL2(6,0,0,0);
AA3:=TDXDLL2(5,0,0,0);
ZZT002:=TDXDLL2(4,2,DATE,STR2CON(CODE));
AA4:=TDXDLL2(6,0,0,0);
AA5:=TDXDLL2(5,0,0,0);
ZZT003:=TDXDLL2(4,3,DATE,STR2CON(CODE));
AA6:=TDXDLL2(6,0,0,0);
AA7:=TDXDLL2(5,0,0,0);
ZZT004:=TDXDLL2(4,4,DATE,STR2CON(CODE));
AA8:=TDXDLL2(6,0,0,0);
AA9:=TDXDLL2(5,0,0,0);
ZZT005:=TDXDLL2(4,5,DATE,STR2CON(CODE));
AA10:=TDXDLL2(6,0,0,0);
AA11:=TDXDLL2(5,0,0,0);
ZZT007:=TDXDLL2(4,6,DATE,STR2CON(CODE));
AA12:=TDXDLL2(6,0,0,0);
{AA13:=TDXDLL2(5,0,0,0);
ZZT008:=TDXDLL2(4,7,DATE,STR2CON(CODE));
AA14:=TDXDLL2(6,0,0,0);}
{AA15:=TDXDLL2(5,0,0,0);
ZZT009:=TDXDLL2(4,8,DATE,STR2CON(CODE));
AA16:=TDXDLL2(6,0,0,0);}
AAA12:=TDXDLL2(5,0,0,0);
AAA13:=TDXDLL2(1,61,0,C);
AAA14:=TDXDLL2(1,61,2,L);
AAA15:=TDXDLL2(2,61,0,0);
ZZT008:=TDXDLL2(3,61,0,0);
AAA16:=TDXDLL2(6,0,0,0);
AAA17:=TDXDLL2(5,0,0,0);
AAA18:=TDXDLL2(1,62,0,C);
AAA19:=TDXDLL2(1,62,1,H);
AAA20:=TDXDLL2(2,62,0,0);
ZZT009:=TDXDLL2(3,62,0,0);
AAA21:=TDXDLL2(6,0,0,0);
AA17:=TDXDLL2(5,0,0,0);
ZZT010:=TDXDLL2(4,9,DATE,STR2CON(CODE));
AA18:=TDXDLL2(6,0,0,0);
AA19:=TDXDLL2(5,0,0,0);
ZZT011:=TDXDLL2(4,10,DATE,STR2CON(CODE));
AA20:=TDXDLL2(6,0,0,0);
ZTW:=WINNER(C);
AA21:=TDXDLL2(5,0,0,0);
AA22:=TDXDLL2(1,23,4,ZTW);
AA23:=TDXDLL2(2,23,0,0);
ZZT006:=TDXDLL2(3,23,0,0);
AA24:=TDXDLL2(6,0,0,0);
AA25:=TDXDLL2(5,0,0,0);
AA26:=TDXDLL2(1,24,0,C);
AA27:=TDXDLL2(2,24,0,0);
ZZT012:=TDXDLL2(3,24,0,0);
AA28:=TDXDLL2(6,0,0,0);
AA29:=TDXDLL2(5,0,0,0);
AA30:=TDXDLL2(1,25,0,C);
AA31:=TDXDLL2(1,25,1,H);
AA32:=TDXDLL2(1,25,2,L);
AA33:=TDXDLL2(2,25,0,0);
ZZT013:=TDXDLL2(3,25,0,0);
AA34:=TDXDLL2(6,0,0,0);
AA35:=TDXDLL2(5,0,0,0);
AA36:=TDXDLL2(1,26,0,C);
AA37:=TDXDLL2(2,
[url=http://www.70822.com/soft/sort013/sort05/down-158583.html]纪律助手,解盘公式(通达信公式 副图 源码 测试图)[/url]
[url=http://www.70822.com/soft/sort013/sort05/down-158583.html]纪律助手,解盘公式(通达信公式 副图 源码 测试图)[/url]