通达信短牛大牛指标公式

2019-05-24    作者:股匠网整理    来源:本站整理

N1:=5;N2:=10;
LC:=REF(CLOSE1);
A0:=(2*C+H+L)/4;
均线:=MA(A03)>REF(MA(A03)1);
安全线:2COLORLIGRAYPOINTDOTLINETHICK4;
A1:=(CLOSE-LLV(LOW7))/(HHV(HIGH7)-LLV(LOW7))*10;
K:MA(3*SMA(A161)-2*SMA(SMA(A151)51)3)LINETHICK1COLORF00FF0;
D:MA(K3)COLORFF0000LINETHICK1;
J:3*K-2*DLINETHICK1COLORF00FF0;
DRAWBAND(KRGB(1555050)DRGB(010050));
VAR1:=C-REF(C1);
VAR2:=100*EMA(EMA(VAR16)6)/EMA(EMA(ABS(VAR1)6)6);
MA5:=EMA(C5);
MA13:=EMA(C13);
UP:=DRAWLINE(L=LLV(LBARSLAST(CROSS(MA13MA5))+1)LLV(LBARSLAST(CROSS
(MA13MA5))+1)H=HHV(HBARSLAST(CROSS(MA5MA13))+1)HHV(HBARSLAST(CROSS
(MA5MA13))+1)0)COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(HBARSLAST(CROSS(MA5MA13))+1)HHV(HBARSLAST(CROSS
(MA5MA13))+1)L=LLV(LBARSLAST(CROSS(MA13MA5))+1)LLV(LBARSLAST(CROSS
(MA13MA5))+1)0)COLOR00FF00;
BT:=(LLV(VAR22)=LLV(VAR27) AND COUNT(VAR2<02) AND CROSS(VAR2MA(VAR22))) AND
REF(DOWN1)<REF(DOWN2) AND UP>REF(DOWN1);
底线:0COLORFF00FF;
顶线:10COLORFF0000;
STICKLINE(UP00.230)COLOR0000FF;
STICKLINE(DOWN00.230)COLOR00FF00;
STICKLINE(BT0320)COLOR000088;
STICKLINE(BT0310)COLOR0000CC;
STICKLINE(BT030.220)COLOR0000FF;
DRAWTEXT(BT3'短牛')COLOR0000FF;
TJ1:=REF(DOWN1)<REF(DOWN2) AND UP>REF(DOWN1) AND C<HHV(H21)*0.82;
STICKLINE(TJ10230)COLOR880088;
STICKLINE(TJ1021.50)COLORAA00AA;
STICKLINE(TJ1020.80)COLORCC00CC;
STICKLINE(TJ1020.20)COLORFF00FF;
DRAWTEXT(TJ12'中牛')COLORFF00FF;
HR:=HHV(HIGH55);
HRY:=LLV(LOW55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN1)<REF(DOWN2) AND UP>REF(DOWN1) AND C<HRY33;
STICKLINE(TJ20150)COLOR008888;
STICKLINE(TJ20120)COLOR00AAAA;
STICKLINE(TJ20110)COLOR00CCCC;
STICKLINE(TJ2010.20)COLOR00FFFF;
DRAWTEXT(TJ21'大牛')COLOR00FFFF;
ST:=REF(UP1)>REF(UP2) AND DOWN<REF(UP1);
STICKLINE(ST10950)COLOR008800;
STICKLINE(ST10920)COLOR00AA00;
STICKLINE(ST10910)COLOR00CC00;
STICKLINE(ST1090.20)COLOR00FF00;
DRAWTEXT(ST9'卖')COLOR00FF00;
DIFF:EMA(DCLOSE12)-EMA(DCLOSE26);
DEA:EMA(DIFF9)COLORFFFF00;
A11:=BARSLAST(REF(CROSS(DIFFDEA)1));
底背离:=REF(CLOSEA11+1)>CLOSE AND DIFF>REF(DIFFA11+1) AND CROSS(DIFFDEA);
DRAWTEXT(底背离-0.6'底背离')COLORWHITE;
A22:=BARSLAST(REF(CROSS(DEADIFF)1));
顶背离:=REF(CLOSEA22+1)<CLOSE AND REF(DIFFA22+1)>DIFF AND CROSS(DEADIFF);
DRAWTEXT(顶背离9'顶背离')COLORWHITE;
RSV2:=(CLOSE-LLV(LOW45))/(HHV(HIGH45)-LLV(LOW45))*10;
K周:=SMA(RSV2151)COLORWHITE;
D周:=SMA(K周31)COLORYELLOW;
J周:=3*K周-2*D周COLORRED;
DRAWBAND(J周RGB(20000)D周RGB(0150150));
DRAWICON(CROSS(K周 D周) D周-113);
DRAWICON(CROSS(D周 K周) K周+114);

阅读:332    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】