箱体主图 EMA(C,26);
成本线: EMA(COST(81),10) COLORYELLOW,LINETHICK1;
STICKLINE(REF(C>O,2) AND REF(C<O OR C<REF(C,1),1) AND (C>EMA(C,200) AND C>=O AND C>EMA(C,200)),EMA(C,210),EMA(C,170),1.5,0),COLORBLUE;
STICKLINE(EMA(C,200)>REF(EMA(C,200),1) AND EMA(C,50)>REF(EMA(C,50),1) ,EMA(C,200),EMA(C,180),1,0),COLORRED;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;
A0:=REF(TY,7)=HHV(TY,2*7+1);
B0:=FILTER(A0,7);
C0:=BACKSET(B0,7+1);
HD0:=FILTER(C0,7);
前期高位0:=REF(C,BARSLAST(HD0)),COLORBLUE,POINTDOT;
STICKLINE(C,前期高位0,前期高位0,8,0),COLORBLUE;
VAR1W:=(C+H+O+L)/4;
卖出:=XMA(VAR1W,N)*(1+P1/1000);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,24);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA240:=MA(CLOSE,240);
反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);
月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);
季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);
短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);
半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);
年托:=MA120>MA240 AND MA120>MA240 AND CROSS(MA120,MA240);
月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);
DRAWTEXT(月蜘蛛,L-0.07,'金蜘蛛'),COLORYELLOW;
DRAWTEXT(月价托 ,MA20,'↙月托'),COLORMAGENTA;
DRAWTEXT(季价托,MA60-0.0.08,'季托'),COLORMAGENTA;
DRAWTEXT(短长价托,L+0.015,'短长托'),COLOR36C0C1;
DRAWTEXT(半年托,MA120-0.08,'↖慢牛'),COLORYELLOW;
DRAWTEXT(年托,MA240-0.08,'年托'),COLORRED;
压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10);
DRAWTEXT(压,H*1.02,'承压'),COLORYELLOW;
VOL5:=MA(VOL,5),COLORWHITE;
VOL10:=MA(VOL,10),COLORYELLOW;
VOL40:=MA(VOL,40),COLORFF00FF ;
量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);
DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;
AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));
BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);
CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;
出水芙蓉:=BB AND CC1,COLOR00FF00;
DRAWTEXT(出水芙蓉,H*1.02,'出水芙蓉'),COLORFF00FF;
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,30);
一穿三:=MA5>O AND MA2>O AND MA3>O AND MA5<C AND MA2<C AND CLOSE>OPEN AND (CROSS(C,MA3) OR CROSS(C,EMA(C,26)) ) ;
DRAWTEXT(一穿三,L-0.012,'穿三线'),COLORRED;
{量能平台}
ND:=10;
PTD:=CONST(LLVBARS(V,ND));
TDPX:IF(CURRBARSCOUNT<=ND,CONST(IF(PTD=0,O,REF(O,PTD))),DRAWNULL),COLORFF0000;
IF(CURRBARSCOUNT=PTD+1,TDPX,DRAWNULL),CIRCLEDOT,COLORFF0000,LINETHICK2;
DRAWTEXT(ISLASTBAR,TDPX,' 【地平线】'),COLORFF0000;
G21:=30;
T112:=CONST(HHVBARS(V,G21));
T122:=IF(CURRBARSCOUNT<=G21+7,CONST(IF(T112=0,H,REF(H,T112))),DRAWNULL);
T122A:=IF(CURRBARSCOUNT=T112+1,T122,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,T122,'30天量能平台'),COLORWHITE;
W10:=10;
TW1:=CONST(HHVBARS(V,W10));
TW0:=IF(CURRBARSCOUNT<=W10+7,CONST(IF(TW1=0,C,REF(C,TW1))),DRAWNULL);
TW0A:=IF(CURRBARSCOUNT=TW1+1,TW0,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,TW0,'10量能平台'),COLORWHITE;
W20:=20;
TW20:=CONST(HHVBARS(V,W20));
TW22:=IF(CURRBARSCOUNT<=W20+7,CONST(IF(TW20=0,C,REF(C,TW20))),DRAWNULL);
TW22A:=IF(CURRBARSCOUNT=TW20+1,TW22,DRAWNULL),COLORWHITE;
DRAWTEXT(ISLASTBAR,TW22,'20量能平台'),COLORWHITE;
MW:=10;
MW1:=CONST(LLVBARS(V,MW));
MW0:=IF(CURRBARSCOUNT<=MW+7,CONST(IF(MW1=0,O,REF(O,MW1))),DRAWNULL);
MW0A:=IF(CURRBARSCOUNT=MW1+1,MW0,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,MW0,'地量能平台'),COLORWHITE;
{N1:=18;N2:=36;N3:=55;}
EM1:=EMA(C,18),NODRAW;
EM2:=EMA(C,36),COLORRED;
EM3:=EMA(C,55),COLORGREEN;
TJ8:=BETWEEN(EM2,EM1,EM3);
{DRAWICON(TJ8=0,L,14);}
B18:='<-----------------量平';
DRAWTEXT(VOL=HHV(VOL,20),C ,B18),COLORRED;
M7:=MA(C,78);
M8:=EMA(M7,3);
M9:=EMA(M8,3);
Y:=(H+L)/2;
AO:=MA(Y,5)-MA(Y,34 );
DU0:=CROSS(AO,0);
UD0:=CROSS(0,AO);
TDU0:=BARSLAST(DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF(TDU3<TUD3,REF(HHV(H,2),TDU3),REF(LLV(L,2),TUD3));
JDU0:=REF(C,1)<=REF(UDGLINE,1) AND C>UDGLINE AND TDU0<TUD0;
JUD0:=REF(C,1)>=REF(UDGLINE,1) AND C<UDGLINE AND TUD0<TDU0;
JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;
JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;
JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
DRAWTEXT(JDU2,M9,'↙转强'),COLORYELLOW;
{超跌反弹}
RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;
短期底部:=LLV(OPEN,30);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=(3*K-2*D),LINETHICK2;
D2:=SMA(J,3,1)*0.82;
VAR72:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR73:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR74:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR75:=(VAR72+2*VAR73+3*VAR74)/6;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA2:=EMA(DIFF,6);
MACD超跌2:=(COUNT(DIFF<DEA2,19))=10;
DRAWTEXT(CROSS(J,-3),L*0.95,'↖超跌反弹'),COLORGREEN;
{DRAWICON( FILTER(CROSS(J,D2),20),D2+0.02 ,1);};
{回踩突破}
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
回踩突破:=W4 AND COUNT(W4,5)=1;
DRAWTEXT(回踩突破>0,MA(L,3),'↖回踩'),COLORRED;
{绝杀}
F:=EMA(CLOSE,10)-EMA(CLOSE,21);
A:=EMA(F,8);
MD:=(F-A)*2;
ZQ:=BARSLAST(CROSS(F,A) AND A<=0.05)+1;
LZ:=BARSLASTCOUNT(MD<REF(MD,1))>1;
HZ:=BARSLASTCOUNT(MD>REF(MD,1))>1;
LZQ:=BARSLASTCOUNT(LZ);
HZQ:=BARSLASTCOUNT(HZ);
LZQTJ:=COUNT(LZQ,ZQ);
HZQTJ:=COUNT(HZQ,ZQ);
NQR:=REF(CLOSE,4);
SRZF:=((CLOSE-NQR)/NQR)*100,NODRAW;
绝杀黑马:=REF(LZQTJ,1)>=2 AND REF(HZQTJ,1)>=3 AND HZQTJ=0 AND LZQTJ=0 AND SRZF>2,LINETHICK2;
DRAWTEXT(绝杀黑马,MA(L,3),'↖绝杀'),COLOR00FFFF;
均线:=EXPMA(C,12),COLORGRAY,LINETHICK2;
日:=50;
昨前:=3;
高2:=REF(HHV(H,日),昨前);
低2:=REF(LLV(L,日),昨前);
H4:=高2-(高2-低2)*0.618;
H5:=高2-(高2-低2)*0.809;
圆底支撑:REFDATE(H5,DATE),COLORCYAN;
黄金支撑:REFDATE(H4,DATE),COLORGREEN,;
STICKLINE(CURRBARSCOUNT=1,圆底支撑,圆底支撑,300,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,黄金支撑,黄金支撑,300,-1),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1 AND 圆底支撑,圆底支撑,'备现金'),COLORGREEN;
PHD:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
PLD:=FILTER(BACKSET(FILTER(REF(L,10)=LLV(L,2*10+1),10),10+1),10);
PA:=REF(H,BARSLAST(PHD));
PT1:=BARSLAST(PHD)<BARSLAST(PLD) AND NOT(PHD);
波顶:IF(PT1,PA,PA),COLORWHITE,POINTDOT,LINETHICK1;
突破:=(CROSS(C,前期高位0) OR CROSS(C,前期高位) OR CROSS(C,黄金支撑) OR CROSS(C,圆底支撑) OR CROSS(C,波顶)) AND C/O>1.05;
STICKLINE(突破,OPEN,CLOSE,4.5,0),COLORFF0099;
STICKLINE(突破,OPEN,CLOSE,3,0),COLORFF00CC;
STICKLINE(突破,OPEN,CLOSE,2,0),COLORFF00FF;
DRAWTEXT(突破,MA(H,3),'↙突破'),COLORYELLOW;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!