当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:牛股三绝大盘风控主图和副图2019(通达信公式 和谐源码分享)
软件名称:[B]牛股三绝大盘风控主图和副图2019(通达信公式 和谐源码分享)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2019-06-16 00:26:14
软件简介:
{牛股三绝风控}
{大盘个股风险控制指标}
{用法:
1.股价高于平均线,视为强势;股价低于平均线,视为弱势
2.平均线向上涨升,具有助涨力道;平均线向下跌降,具有助跌力道;
3.二条以上平均线向上交叉时,买进;
4.二条以上平均线向下交叉时,卖出;
5.移动平均线的信号经常落后股价,若以EXPMA 、VMA 辅助,可以改善。
}
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
通线:MA(CLOSE,17),COLORFF00FF;
子线:MA(CLOSE,26);
MA51:MA(CLOSE,51);
MA117:MA(CLOSE,117),COLORBLUE,LINETHICK2;
DRAWTEXT_FIX(1,0.004,0.002,0,'【大盘个股风控指标】 K线灰色空仓,彩色加仓持仓;"小心"减仓,"破位"清仓后找重要支撑线做短线,次新看60分钟'),COLORRED;
{MACD 12 26 9}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;
{MACD};
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;
NGH:=TDXDLL7(1,C,MACD,SAR(4,2,20));
STICKLINE(NGH,O,C,3,0),COLOR808080;
STICKLINE(NGH,L,H,0,0),COLOR808080;
STICKLINE(NGH=0 AND C>O,O,C,2,0),COLORRED;
STICKLINE(NGH=0 AND C>O,L,H,0,0),COLORRED;
STICKLINE(NGH=0 AND C<O,O,C,2,0),COLORGREEN;
STICKLINE(NGH=0 AND C<O,L,H,0,0),COLORGREEN;
STICKLINE(NGH=0 AND C=O,O,C,2,0),COLORWHITE;
STICKLINE(NGH=0 AND C=O,L,H,0,0),COLORWHITE;
IF(NGH,MA5,DRAWNULL),COLOR353535,LINETHICK1;
IF(NGH,MA10,DRAWNULL),COLOR353535,LINETHICK1;
DRAWICON(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.05,2);
DRAWTEXT(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.05,'小'),COLORYELLOW;
DRAWTEXT(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.02,'心'),COLORYELLOW;
DRAWICON(REF(NGH,1)=0 AND CROSS(MA10,C),H*1.05,8);
{DRAWTEXT(REF(NGH,1)=0 AND CROSS(MA10,C),L*0.94,'破'),COLORGREEN;
DRAWTEXT(REF(NGH,1)=0 AND CROSS(MA10,C),L*0.9,'位'),COLORGREEN;
{DRAWTEXT(REF(NGH,1)=0 AND CROSS(MA10,C),H*1.14,'找双头买'),COLORGREEN;}
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
{
趋势:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
趋势1:=IF(VAR6>45,VAR6-45,0),COLOR00FFFF;
MD:=(趋势>趋势1 AND CROSS(趋势1,85)) OR (趋势>趋势1 AND CROSS(趋势,90)) OR (REF(趋势<趋势1,1) AND CROSS(趋势1,79)) ;
DRAWICON(C>O AND MD,H*1.02,6);
DRAWTEXT(C>O AND MD,H*1.08,'明'),COLORMAGENTA;
DRAWTEXT(C>O AND MD,H*1.05,'卖'),COLORMAGENTA;
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
SLL:=HDY>91.4 AND CROSS(MA(VOL,10),MA(VOL,5));
DRAWTEXT(SLL,H*1.03,'量'),COLORMAGENTA;
DRAWTEXT(SLL,H*1,'卖'),COLORMAGENTA;}
KK:=TDXDLL7(4,C,O,0);
坑口:IF(CURRBARSCOUNT<=CONST(KK)+1,CONST(REF(MAX(OPEN,CLOSE),KK)),DRAWNULL),COLORYELLOW,LINETHICK2;
DRAWTEXT(ISLASTBAR,坑口*1,CON2STR(坑口,2)),COLORGREEN;
DYBP:=TDXDLL7(5,C,L,0);
YTDG:=NGH=0 AND DYBP;
YTDG1:=REF(COUNT(YTDG,2),1)=0 AND YTDG;
DRAWICON(YTDG1,L,41);
DRAWTEXT(YTDG1,L*0.97,'买'),COLORYELLOW;
{牛股三绝副图}
{大盘个股风险控制指标}
TJ:=ISLASTBAR AND C<500;
LTB:=FINANCE(7)*100/FINANCE(1);
ZGB:=FINANCE(1)/100000000;
定向增发:=LTB<REF(LTB,1)*0.95 AND ZGB>REF(ZGB,1),NODRAW,COLORWHITE;
回购:=ZGB<REF(ZGB,1)*0.95 AND LTB>REF(LTB,1),NODRAW,COLORWHITE;
大小非:=LTB>REF(LTB,1)*1.05 AND ZGB=REF(ZGB,1),NODRAW,COLORWHITE;
公开发行:=LTB>REF(LTB,1)*1.05 AND ZGB>REF(ZGB,1),NODRAW,COLORWHITE;
变数:=定向增发 OR 回购 OR 大小非 OR 公开发行,NODRAW,COLORWHITE;
DRAWTEXT(定向增发,L*0.990,'定向增发'),COLORMAGENTA;
DRAWTEXT(回购,L*0.990,'回购'),COLORGREEN;
DRAWTEXT(大小非,L*0.990,'大小非'),COLORMAGENTA;
DRAWTEXT(公开发行,L*0.990,'公开发行'),COLORMAGENTA;
所属板块:=STRCAT('所属板块:',STRCAT(STRCAT(STRCAT(' 【行业】:',HYBLOCK),STRCAT(' 【地域】:',DYBLOCK)),STRCAT(' 【概念】:',GNBLOCK)));
风格板块:=STRCAT('【风格】:',FGBLOCK);
DRAWTEXT_FIX(TJ,0.005,0.00,0,所属板块);
DRAWTEXT_FIX(TJ,0.067,0.12,0,风格板块),COLORGREEN;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
通线:MA(CLOSE,17),COLORFF00FF;
子线:MA(CLOSE,26);
MA51:MA(CLOSE,51);
MA117:MA(CLOSE,117),COLORBLUE,LINETHICK2;
{DRAWTEXT_FIX(1,0.004,0.002,0,'【大盘个股风控指标】 K线灰色空仓,彩色加仓持仓;"小心"减仓,"破位"清仓,找重要支撑线做短线,次新看60分钟'),COLORRED;}
{MACD 12 26 9}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;
{MACD};
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;
NGH:=TDXDLL7(1,C,MACD,SAR(4,2,20));
STICKLINE(NGH,O,C,3,0),COLOR808080;
STICKLINE(NGH,L,H,0,0),COLOR808080;
STICKLINE(NGH=0 AND C>O,O,C,2,0),COLORRED;
STICKLINE(NGH=0 AND C>O,L,H,0,0),COLORRED;
STICKLINE(NGH=0 AND C<O,O,C,2,0),COLORGREEN;
STICKLINE(NGH=0 AND C<O,L,H,0,0),COLORGREEN;
STICKLINE(NGH=0 AND C=O,O,C,2,0),COLORWHITE;
STICKLINE(NGH=0 AND C=O,L,H,0,0),COLORWHITE;
IF(NGH,MA5,DRAWNULL),COLOR353535,LINETHICK1;
IF(NGH,MA10,DRAWNULL),COLOR353535,LINETHICK1;
DRAWICON(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.05,2);
DRAWTEXT(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.05,'小'),COLORYELLOW;
DRAWTEXT(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.02,'心'),COLORYELLOW;
DRAWICON(REF(NGH,1)=0 AND CROSS(MA10,C),H*1.1,8);
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
趋势1:=IF(VAR6>45,VAR6-45,0),COLOR00FFFF;
MD:=(趋势>趋势1 AND CROSS(趋势1,85)) OR (趋势>趋势1 AND CROSS(趋势,90)) OR (REF(趋势<趋势1,1) AND CROSS(趋势1,79)) ;
DRAWICON(C>O AND MD,H*1.02,6);
DYBP:=TDXDLL7(5,C,L,0);
YTDG:=NGH=0 AND DYBP;
YTDG1:=REF(COUNT(YTDG,2),1)=0 AND YTDG;
DRAWICON(YTDG1,L,41);
DRAWTEXT(YTDG1,L*0.97,'买'),COLORYELLOW;
还需要dll文件支持吧
dll文件和公式下载:https://www.lanzoui.com/i52k3uf
[url=http://www.70822.com/soft/sort013/sort05/down-137732.html]牛股三绝大盘风控主图和副图2019(通达信公式 和谐源码分享)[/url]