多空双通道, 逃顶抄底和仓位控制参考指标, BS:=ZIG(3,10);
SL:=EMA(BS,3);
B:=CROSS(BS,SL);
S:=CROSS(SL,BS);
STICKLINE(BS>=SL,LOW,HIGH,1,0),colorred;
STICKLINE(BS>=SL,CLOSE,OPEN,8,0),colorred;
STICKLINE(BS<SL,CLOSE,OPEN,8,1),colorgreen;
STICKLINE(BS<SL,LOW,HIGH,1,0),colorgreen;
STICKLINE(CROSS(BS,SL),OPEN,CLOSE,12,0),coloryellow;
STICKLINE(CROSS(SL,BS),OPEN,CLOSE,12,0),colorblue;
Now:EMA(CLOSE,1);
Mean:=EMA(CLOSE,26),coloryellow;
ST:EMA(H,26);
SB:EMA(L,26);
LT:EMA(H,89);
LB:EMA(L,89);
H2:=Mean+2*STD(CLOSE,26),colorgreen,DOTLINETHICK1;
L2:=Mean-2*STD(CLOSE,26),colorred,DOTLINETHICK1;
H3:=Mean+3*STD(CLOSE,26),colorcyan,LINETHICK1;
L3:=Mean-3*STD(CLOSE,26),colormagenta,LINETHICK1;
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;
DRAWICON(CROSS(J,0),LOW*0.98,1);
DRAWICON(CROSS(100,J),HIGH*1.02,2);
H8:=(CLOSE>REF(CLOSE, 4) AND REF(CLOSE, 1)>REF(CLOSE, 5) AND REF(CLOSE, 2)>REF(CLOSE, 6) AND REF(CLOSE, 3)>REF(CLOSE, 7)
AND REF(CLOSE, 4)>REF(CLOSE, 8) AND REF(CLOSE, 5)>REF(CLOSE, 9) AND REF(CLOSE, 6)>REF(CLOSE, 10) AND REF(CLOSE, 7)>REF(CLOSE, 11));
H9:=(H8 AND REF(CLOSE, 8)>REF(CLOSE, 12));
高8:=(BARSLAST(H9)>7) AND H8;
DRAWTEXT(高8, HIGH, 'H8'),colorgreen;
高9:=BARSLAST(高8,1)=1 AND H9,LINETHICK0;
DRAWTEXT(高9, HIGH, 'H9'),colorcyan;
L8:=(CLOSE<REF(CLOSE, 4) AND REF(CLOSE, 1)<REF(CLOSE, 5) AND REF(CLOSE, 2)<REF(CLOSE, 6) AND REF(CLOSE, 3)<REF(CLOSE, 7)
AND REF(CLOSE, 4)<REF(CLOSE, 8) AND REF(CLOSE, 5)<REF(CLOSE, 9) AND REF(CLOSE, 6)<REF(CLOSE, 10) AND REF(CLOSE, 7)<REF(CLOSE, 11));
L9:=L8 AND REF(CLOSE, 8)<REF(CLOSE, 12);
低8:=BARSLAST(L9)>7 AND L8;
DRAWTEXT(低8, LOW,'L8'),colorred;
低9:=(BARSLAST(低8,1)=1 AND L9);
DRAWTEXT(低9, LOW,'L9'),colormagenta;
Sterm:=26;
短a1:=CROSS(CLOSE,EMA(HIGH,Sterm));
短a2:=CROSS(EMA(LOW,Sterm),CLOSE);
短b1:=(BARSLAST(短a1,1) + 1);
短b2:=(BARSLAST(短a2,1) + 1);
短c1:=CROSS(SUM(短a1,短b2),0.5);
短c2:=CROSS(SUM(短a2,短b1),0.5);
Lterm:=89,LINETHICK0;
长a1:=CROSS(CLOSE,EMA(HIGH,Lterm));
长a2:=CROSS(EMA(LOW,Lterm),CLOSE);
长b1:=(BARSLAST(长a1,1) + 1);
长b2:=(BARSLAST(长a2,1) + 1);
长c1:=CROSS(SUM(长a1,长b2),0.5);
长c2:=CROSS(SUM(长a2,长b1),0.5);
STICKLINE((CLOSE > EMA(HIGH,Sterm)),EMA(HIGH,Sterm),EMA(LOW,Sterm),1,1),colorred;
STICKLINE((CLOSE < EMA(LOW,Sterm)),EMA(LOW,Sterm),EMA(HIGH,Sterm),1,1),colorgreen;
PARTLINE(EMA(HIGH,Sterm), CLOSE >EMA(HIGH,Sterm),RGB(255,0,0),CLOSE < EMA(HIGH,Sterm),RGB(0,255,0));
PARTLINE(EMA(LOW,Sterm), CLOSE > EMA(LOW,Sterm),RGB(255,0,0),CLOSE < EMA(LOW,Sterm),RGB(0,255,0));
STICKLINE(CLOSE > EMA(HIGH,Lterm),EMA(HIGH,Lterm),EMA(LOW,Lterm),1,1),colormagenta;
STICKLINE(CLOSE < EMA(LOW,Lterm),EMA(LOW,Lterm),EMA(HIGH,Lterm),1,1),colorblue;
PARTLINE(EMA(HIGH,Lterm), CLOSE >EMA(HIGH,Lterm),RGB(255,0,255),CLOSE < EMA(HIGH,Lterm),RGB(0,0,255));
PARTLINE(EMA(LOW,Lterm), CLOSE >EMA(LOW,Lterm),RGB(255,0,255),CLOSE < EMA(LOW,Lterm),RGB(0,0,255));
上穿短期趋势:=(CLOSE > EMA(HIGH,Sterm) AND 短a1);
下穿短期趋势:=(CLOSE < EMA(LOW,Sterm) AND 短c2);
DRAWTEXT(CLOSE > EMA(HIGH,Sterm) AND CLOSE > EMA(HIGH, Lterm) AND (短c1 OR 长c1), H2, 'Full'), colormagenta;
DRAWTEXT(CLOSE < EMA(LOW,Sterm) AND CLOSE < EMA(LOW, Lterm) AND (短c2 OR 长c2), L2, 'Epty'), colorcyan;
DRAWTEXT(CLOSE > EMA(HIGH,Sterm) AND CLOSE < EMA(HIGH, Lterm) AND 短c1, HIGH*1.02, '40'), coloryellow;
DRAWTEXT(CLOSE > EMA(LOW,Sterm) AND CLOSE < EMA(LOW, Lterm) AND 长c2, LOW*0.98, '40'), colorgreen;
DRAWTEXT(CLOSE > EMA(HIGH,Lterm) AND CLOSE < EMA(HIGH, Sterm) AND 长c1, HIGH*1.05, '60'), coloryellow;
DRAWTEXT(CLOSE > EMA(LOW,Lterm) AND CLOSE < EMA(LOW, Sterm) AND 短c2, LOW*0.95, '60'), colorgreen;
|
- 软件大小:7.00 KB
- 推荐星级:
- 更新时间:2022-06-01 00:12:32
- 软件类别: 国产软件 / 同花顺公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!