{牛股三绝风控}
{大盘个股风险控制指标}
{用法:
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;
|
- 软件大小:7.00 KB
- 推荐星级:
- 更新时间:2019-06-16 00:26:14
- 软件类别: 国产软件 / 通达信公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!