买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),colorred;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),colorgreen;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),colorgreen;
生命线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),45),coloryellow,LINETHICK2;
IF(C>=生命线,生命线,DRAWNULL),coloryellow,LINETHICK2;
IF(C<生命线,生命线,DRAWNULL),colorblue,LINETHICK2;
操盘:MA(CLOSE,9),colorred,LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),colorred;
低:REFDATE(低1,DATE),colorred;
DRAWTEXT(CROSS(H1,H2) AND C>=REF(C,2),L*0.95,'金叉'),colorred;
STICKLINE(CROSS(H1,H2) AND C>=REF(C,2),L*0.99,L*0.95,0.001,0);
DRAWTEXT(CROSS(H2,H3) AND C>=REF(C,2),L*0.92,'双金叉'),colorred;
STICKLINE(CROSS(H2,H3) AND C>=REF(C,2),L*0.99,L*0.92,0.001,0);
涨停:=C=H AND C>REF(C,1)*1.098;
STICKLINE(涨停,C,O-0.01,5,0),coloryellow;
白色:=SMA(HIGH,21,2)*1.05;
绿色:=SMA(CLOSE,2,1);
粉色:=SMA(LOW,5,1);
波段买入:=CROSS(绿色,粉色);
领头羊:=CROSS(绿色,白色);
DRAWTEXT(领头羊,L*0.98,'步步为赢'),coloryellow,LINETHICK3;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'A'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'B'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.96,'C买'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.01,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.99,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.01,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.99,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.01,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.95,'1短'),COLORFF6000;
DRAWTEXT(EX2 AND DTJD10=2,H*1.04,'2'),COLORFF6000;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'3买'),COLORFF6000;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'一卖'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.98,'二补'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'三清'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'四持'),LINETHICK3,COLOR00FFFF;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888; STICKLINE(
LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888; STICKLINE(C=O,H,L,1,0),colorwhite; STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred; STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888;
STICKLINE(LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888;
STICKLINE(C=O,H,L,1,0),colorwhite;
STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred;
STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'A'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'B'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.01,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.99,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.01,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.99,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.01,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.95,'1短'),colorred;
DRAWTEXT(EX2 AND DTJD10=2,H*1.04,'2跑'),colorred;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'3买'),colorred;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'一卖'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.98,'二补'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'清仓'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'四持'),LINETHICK3,COLOR00FFFF;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888; STICKLINE(
LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888; STICKLINE(C=O,H,L,1,0),colorwhite; STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred; STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
STICKLINE(HIGH<REF(LOW,1),HIGH,REF(LOW,1),8,0) ,COLOR888888;
STICKLINE(LOW>REF(HIGH,1) ,LOW,REF(HIGH,1),8,0),COLOR888888;
STICKLINE(C=O,H,L,1,0),colorwhite;
STICKLINE((C=O)AND(C>REF(C,1)),C,O,6,0),colorred;
STICKLINE((C=O)AND(C<REF(C,1)),C,O,6,0),colorgreen;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!