在均线MA的基础上,添加涨跌停K颜色。
STICKLINE(C>1.095*REF(C,1),C,O,6,0),coloryellow;
STICKLINE(C<0.905*REF(C,1),C,O,6,0),colorblue;
MA1:MA(CLOSE, m1),colorwhite;
MA2:MA(CLOSE, m2),coloryellow;
MA3:MA(CLOSE, m3),colormagenta;
MA4:MA(CLOSE, m4),colorligreen;
//九转序列
//九转序列是基于狄马克TD序列思想为参考,进行的价咯连续同方向趋势排序。当数字出现"9"时,价咯容易出现转折,因此起名为九转序列。
// 九转系列特点:
// 1、当序列运行在6之前,数字并不显示,以过滤过于频繁的数字排序。
// 2、当市场容易出现"9"的概率大于50%的时候,踢进行数字序列提示,通常从"6"或"7"开始,如果确定不会出现"9",数字序列会在某个阶段消失。
// 3、当完成数字序列,"9"则变成绿色并锁定,请尽量与该周期收盘价咯为准。
A1 := IF(((REF(CLOSE,1) >= REF(CLOSE,5)) AND (CLOSE < REF(CLOSE,4))),1,0);
A2 := IF(((REFX(&CLOSE,1) < REF(CLOSE,3)) AND (A1 = 1)),2,0);
A3 := IF(((REFX(&CLOSE,2) < REF(CLOSE,2)) AND (A2 = 2)),3,0);
A4 := IF(((REFX(&CLOSE,3) < REF(CLOSE,1)) AND (A3 = 3)),4,0);
A5 := IF(((REFX(&CLOSE,4) < CLOSE) AND (A4 = 4)),5,0);
A6 := IF(((REFX(&CLOSE,5) < REFX(&CLOSE,1)) AND (A5 = 5)),6,0);
A7 := IF(((REFX(&CLOSE,6) < REFX(&CLOSE,2)) AND (A6 = 6)),7,0);
A8 := IF(((REFX(&CLOSE,7) < REFX(&CLOSE,3)) AND (A7 = 7)),8,0);
A9 := IF(((REFX(&CLOSE,8) < REFX(&CLOSE,4)) AND (A8 = 8)),9,0);
B1 := IF((A9 = 9),1,0);
B2 := IF((REF(A9,1) = 9),2,0);
B3 := IF((REF(A9,2) = 9),3,0);
B4 := IF((REF(A9,3) = 9),4,0);
B5 := IF((REF(A9,4) = 9),5,0);
B6 := IF((REF(A9,5) = 9),6,0);
B7 := IF((REF(A9,6) = 9),7,0);
B8 := IF((REF(A9,7) = 9),8,0);
B9 := IF((REF(A9,8) = 9),9,0);
M1 := ((((((((B1 + B2) + B3) + B4) + B5) + B6) + B7) + B8) + B9);
DRAWTEXT((M1 = 1),(LOW * 0.98),'1'),colormagenta;
DRAWTEXT((M1 = 2),(LOW * 0.98),'2'),colormagenta;
DRAWTEXT((M1 = 3),(LOW * 0.98),'3'),colormagenta;
DRAWTEXT((M1 = 4),(LOW * 0.98),'4'),colormagenta;
DRAWTEXT((M1 = 5),(LOW * 0.98),'5'),colormagenta;
DRAWTEXT((M1 = 6),(LOW * 0.98),'6'),colormagenta;
DRAWTEXT((M1 = 7),(LOW * 0.98),'7'),colormagenta;
DRAWTEXT((M1 = 8),(LOW * 0.98),'8'),colormagenta;
Aa1 := IF((CLOSE < REF(CLOSE,4)),1,0);
Aa2 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa1,1) = 1)),1,0);
Aa3 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa2,1) = 1)),1,0);
Aa4 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa3,1) = 1)),1,0);
Aa5 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa4,1) = 1)),1,0);
Aa6 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa5,1) = 1)),1,0);
Aa7 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa6,1) = 1)),1,0);
Aa8 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa7,1) = 1)),1,0);
Aa9 := IF(((CLOSE < REF(CLOSE,4)) AND (REF(Aa8,1) = 1)),1,0);
bb1 := IF(((Aa9 = 1) AND (REF(Aa9,1) = 0)),1,0);
DRAWTEXT((bb1 = 1),(LOW * 0.98),'9'),colorgreen;
A11 := IF(((REF(CLOSE,1) <= REF(CLOSE,5)) AND (CLOSE > REF(CLOSE,4))),1,0);
A21 := IF(((REFX(&CLOSE,1) > REF(CLOSE,3)) AND (A11 = 1)),2,0);
A31 := IF(((REFX(&CLOSE,2) > REF(CLOSE,2)) AND (A21 = 2)),3,0);
A41 := IF(((REFX(&CLOSE,3) > REF(CLOSE,1)) AND (A31 = 3)),4,0);
A51 := IF(((REFX(&CLOSE,4) > CLOSE) AND (A41 = 4)),5,0);
A61 := IF(((REFX(&CLOSE,5) > REFX(&CLOSE,1)) AND (A51 = 5)),6,0);
A71 := IF(((REFX(&CLOSE,6) > REFX(&CLOSE,2)) AND (A61 = 6)),7,0);
A81 := IF(((REFX(&CLOSE,7) > REFX(&CLOSE,3)) AND (A71 = 7)),8,0);
A91 := IF(((REFX(&CLOSE,8) > REFX(&CLOSE,4)) AND (A81 = 8)),9,0);
B11 := IF((A91 = 9),1,0);
B21 := IF((REF(A91,1) = 9),2,0);
B31 := IF((REF(A91,2) = 9),3,0);
B41 := IF((REF(A91,3) = 9),4,0);
B51 := IF((REF(A91,4) = 9),5,0);
B61 := IF((REF(A91,5) = 9),6,0);
B71 := IF((REF(A91,6) = 9),7,0);
B81 := IF((REF(A91,7) = 9),8,0);
B91 := IF((REF(A91,8) = 9),9,0);
M11 := ((((((((B11 + B21) + B31) + B41) + B51) + B61) + B71) + B81) + B91);
DRAWTEXT((M11 = 1),(HIGH * 1.02),'1'),colormagenta;
DRAWTEXT((M11 = 2),(HIGH * 1.02),'2'),colormagenta;
DRAWTEXT((M11 = 3),(HIGH * 1.02),'3'),colormagenta;
DRAWTEXT((M11 = 4),(HIGH * 1.02),'4'),colormagenta;
DRAWTEXT((M11 = 5),(HIGH * 1.02),'5'),colormagenta;
DRAWTEXT((M11 = 6),(HIGH * 1.02),'6'),colormagenta;
DRAWTEXT((M11 = 7),(HIGH * 1.02),'7'),colormagenta;
DRAWTEXT((M11 = 8),(HIGH * 1.02),'8'),colormagenta;
Aa11 := IF((CLOSE > REF(CLOSE,4)),1,0);
Aa21 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa11,1) = 1)),1,0);
Aa31 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa21,1) = 1)),1,0);
Aa41 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa31,1) = 1)),1,0);
Aa51 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa41,1) = 1)),1,0);
Aa61 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa51,1) = 1)),1,0);
Aa71 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa61,1) = 1)),1,0);
Aa81 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa71,1) = 1)),1,0);
Aa91 := IF(((CLOSE > REF(CLOSE,4)) AND (REF(Aa81,1) = 1)),1,0);
bb11 := IF(((Aa91 = 1) AND (REF(Aa91,1) = 0)),1,0);
DRAWTEXT((bb11 = 1),(HIGH * 1.02),'9'),colorgreen;
DRAWTEXT_FIX(CURRBARSCOUNT<1,0.02,0.03,0,"当日竞价:"+CEIL(OPENVOL/100));
DRAWTEXT_FIX(CURRBARSCOUNT<2 AND CURRBARSCOUNT>=1,0.02,0.08,0,"1日前竞价:"+CEIL(OPENVOL/100));
DRAWTEXT_FIX(CURRBARSCOUNT<3 AND CURRBARSCOUNT>=2,0.02,0.13,0,"2日前竞价:"+CEIL(OPENVOL/100));
DRAWTEXT_FIX(CURRBARSCOUNT<4 AND CURRBARSCOUNT>=3,0.02,0.18,0,"3日前竞价:"+CEIL(OPENVOL/100));
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!