股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 3355|回复: 4
打印 上一主题 下一主题

请老师们把通达信的狙击手指标改成选股公式,谢谢!!

[复制链接]

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
4
跳转到指定楼层
#
发表于 2015-11-25 16:43 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
20爱心果
源码如下:
AA:="RSI.RSI1"(3,14,24);
BB:="RSI.RSI2"(3,14,24);
子弹上膛:IF((BB-AA)/AA>5,60,0),STICK,LINETHICK2,COLOR00FF00;
A:=REF(CLOSE,1);
A1:=SMA(MAX(CLOSE-A,0),7,1)/SMA(ABS(CLOSE-A),7,1)*100;
A2:=CLOSE/(EMA(EMA((C+L+H)/3,3),26)*0.9)<0.95;
进攻良机:IF(A1<31,25,0),STICK,LINETHICK2,COLOR00FFFF;
DRAWTEXT(进攻良机>31,25,'');
进入阵地:IF(A2,15,0),STICK,LINETHICK2,COLORRED;
DRAWTEXT(A2>0,15,'');
A3:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
A4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
狙:=IF(A3>0.010,0.900,1) AND IF(A3>(-0.025),1,1.200);
击:=狙*(A4-A3)*100;
手:=SUM(击,10);
B:=SMA(手,40,1);
B1:=IF(CLOSE AND MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.0 AND CLOSE,88,0);
B2:=IF(CLOSE/REF(CLOSE,1)>1.050 AND VOL/CAPITAL*100<15 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND B1>0,91,0);
冲锋号角:IF(B2>90,55,0),STICK,LINETHICK2,COLORFFFF00;
DRAWTEXT(B2>90,25,'');
B3:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*1000;
B4:=EMA(B3,1);
B5:=EMA(B4,100);
B6:=3*B4-2*B5;
B7:=EMA(B6,5)/10;
狙击导线: EMA(B7,1),COLORRED;
DRAWICON(狙击导线>REF(狙击导线,1),狙击导线,23);
打扫战场: IF(狙击导线< REF(狙击导线,1) AND 狙击导线>65,狙击导线,0),STICK,COLOR008CFF;
STICKLINE(打扫战场>0,打扫战场+1,打扫战场-2,4,4),COLORGREEN;
伏击阵地:IF(B7<15,35,0),LINETHICK2,COLORWHITE;

如图所示,狙击导线上穿伏击阵地金叉选股
请老师们帮忙编辑公式,谢谢
附件: 您需要 登录 才可以下载或查看,没有帐号?免费注册

最佳答案

查看完整内容

B3:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*1000; B4:=EMA(B3,1); B5:=EMA(B4,100); B6:=3*B4-2*B5; B7:=EMA(B6,5)/10; CROSS(B7>=15,0.1);

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
5
地板
发表于 2015-11-25 20:59 | 只看该作者
3楼改的很好简练直接 应点赞
回复

使用道具 举报

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
5
板凳
发表于 2015-11-25 20:12 | 只看该作者
AA:="RSI.RSI1"(3,14,24);
BB:="RSI.RSI2"(3,14,24);
子弹上膛:=IF((BB-AA)/AA>5,60,0),STICK,LINETHICK2,COLOR00FF00;
A:=REF(CLOSE,1);
A1:=SMA(MAX(CLOSE-A,0),7,1)/SMA(ABS(CLOSE-A),7,1)*100;
A2:=CLOSE/(EMA(EMA((C+L+H)/3,3),26)*0.9)<0.95;
进攻良机:=IF(A1<31,25,0),STICK,LINETHICK2,COLOR00FFFF;

进入阵地:=IF(A2,15,0),STICK,LINETHICK2,COLORRED;

A3:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
A4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
狙:=IF(A3>0.010,0.900,1) AND IF(A3>(-0.025),1,1.200);
击:=狙*(A4-A3)*100;
手:=SUM(击,10);
B:=SMA(手,40,1);
B1:=IF(CLOSE AND MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.0 AND CLOSE,88,0);
B2:=IF(CLOSE/REF(CLOSE,1)>1.050 AND VOL/CAPITAL*100<15 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND B1>0,91,0);
冲锋号角:=IF(B2>90,55,0),STICK,LINETHICK2,COLORFFFF00;

B3:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*1000;
B4:=EMA(B3,1);
B5:=EMA(B4,100);
B6:=3*B4-2*B5;
B7:=EMA(B6,5)/10;
狙击导线:=EMA(B7,1),COLORRED;
打扫战场:=IF(狙击导线< REF(狙击导线,1) AND 狙击导线>65,狙击导线,0),STICK,COLOR008CFF;

伏击阵地:=IF(B7<15,35,0),LINETHICK2,COLORWHITE;
XG:CROSS(狙击导线,伏击阵地);
刚漏了个输出

评分

参与人数 1爱心果 +3 收起 理由
东南小聪明 + 3 赞一个!

查看全部评分

回复

使用道具 举报

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
5
沙发
发表于 2015-11-25 20:00 | 只看该作者
AA:="RSI.RSI1"(3,14,24);
BB:="RSI.RSI2"(3,14,24);
子弹上膛:=IF((BB-AA)/AA>5,60,0),STICK,LINETHICK2,COLOR00FF00;
A:=REF(CLOSE,1);
A1:=SMA(MAX(CLOSE-A,0),7,1)/SMA(ABS(CLOSE-A),7,1)*100;
A2:=CLOSE/(EMA(EMA((C+L+H)/3,3),26)*0.9)<0.95;
进攻良机:=IF(A1<31,25,0),STICK,LINETHICK2,COLOR00FFFF;

进入阵地:=IF(A2,15,0),STICK,LINETHICK2,COLORRED;
DRAWTEXT(A2>0,15,'');
A3:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
A4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
狙:=IF(A3>0.010,0.900,1) AND IF(A3>(-0.025),1,1.200);
击:=狙*(A4-A3)*100;
手:=SUM(击,10);
B:=SMA(手,40,1);
B1:=IF(CLOSE AND MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.0 AND CLOSE,88,0);
B2:=IF(CLOSE/REF(CLOSE,1)>1.050 AND VOL/CAPITAL*100<15 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND B1>0,91,0);
冲锋号角:=IF(B2>90,55,0),STICK,LINETHICK2,COLORFFFF00;

B3:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*1000;
B4:=EMA(B3,1);
B5:=EMA(B4,100);
B6:=3*B4-2*B5;
B7:=EMA(B6,5)/10;
狙击导线:=EMA(B7,1),COLORRED;
打扫战场:=IF(狙击导线< REF(狙击导线,1) AND 狙击导线>65,狙击导线,0),STICK,COLOR008CFF;

伏击阵地:=IF(B7<15,35,0),LINETHICK2,COLORWHITE;
XG:CROSS(狙击导线,伏击阵地);
回复

使用道具 举报

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
5
楼主
发表于 2015-11-25 16:43 | 只看该作者
B3:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*1000;
B4:=EMA(B3,1);
B5:=EMA(B4,100);
B6:=3*B4-2*B5;
B7:=EMA(B6,5)/10;
CROSS(B7>=15,0.1);
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-28 00:53 , Processed in 0.170256 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表