同花顺底建顶清指标公式

2019-04-03    作者:股匠网整理    来源:本站整理

B:ZIG(310)coloryellow;
G:=MA(B2)colorred;
D:=EMA(B34)colorgreen;
J:=EMA(B144)colorligreen;
DRAWICON(CROSS(BG)B-0.11);
DRAWICON(CROSS(GB)G+0.12);
//DRAWTEXT(CROSS(BG)B*0.85"建")coloryellow;
//DRAWTEXT(CROSS(GB)G"清")colorgreen;
F:=100*(C-REF(C1))/REF(C1);
JD:=IF(C<REF(O1) AND F<010);
S1:=JD;
MR:=IF(C<REF(O2) AND F<010)LINETHICK0;
S2:=MR;
A1:=S1=0 AND REF(S11)=1 AND S2=0 AND REF(S21)=1 AND CROSS(ZIG(33) REF(ZIG(3 3)1));
A2:=S1=0 AND REF(S11)=1 AND S2=0 AND REF(S21)=1 AND CROSS(ZIG(35) REF(ZIG(3 5)1));
//DRAWTEXT(A1 AND A2 OR D<0B'加仓')coloryellow;//加仓买
//DRAWICON(A1 AND A2B-0.21);
VAR3:=PEAKBARS(351)<10;
VAR5:=IF(VAR3=120);
顶:= IF(VAR5=220);
顶A:=IF(顶>REF(顶1)10)STICKcolorcyan LINETHICK2;//
//DRAWTEXT(顶A=1B*1.1'减仓')colorgreen;
DRAWICON(顶A=1B2);
A11:LLV(LOW144)colormagenta;
//DRAWICON(A11==REF(A111) AND REF(A111)<REF(A112)A111);
//DRAWICON(A11<REF(A111) AND REF(A111)==REF(A112)A112);
//DRAWICON(A11>REF(A111) AND REF(A111)==REF(A112)A111);
MID:=MA(CLOSE26);
UPPER:=MID + 2*STD(CLOSE26)colorwhite;//上轨
UPPER1:=MID + 1.618*STD(CLOSE26)colorred;//上轨
LOWER:=MID - 2*STD(CLOSE26)coloryellow;//下轨
LOWER1:=MID - 1.618*STD(CLOSE26)colorgreen;//下轨
//DRAWTEXT(CROSS(CLOSELOWER)J*1.05"L")coloryellow;;
//DRAWTEXT(CROSS(CLOSEUPPER)J*1.05"L")colorgreen;
DRAWICON(CROSS(BA11)B1);
DRAWICON(CROSS(A11B)B2);
VERLINE(CROSS(BG) AND (A1 AND A2 OR D<0)1)colorlimagenta;//画加仓建仓垂线
VERLINE(CROSS(GB)1)colorcyan;//画清仓垂线
STICKLINE(A11<B AND B>REF(B1)BA110.80)colorred;
STICKLINE(A11<B AND B<REF(B1)BA110.80)colorgreen;
DRAWTEXT((CROSS(BG) AND (A1 AND A2 OR D<0)) OR CROSS(BG)A11*0.95'B')coloryellow;//建仓加仓买
STICKLINE(A11>B AND B>REF(B1)BA110.80)colorred;
STICKLINE(A11>B AND B<REF(B1)BA110.80)colorgreen;
A34:=LLV(B34)coloryellow;
A55:=LLV(B55)coloryellow;
A144:=LLV(B144)coloryellow;
AA:=(CROSS(BG) AND (A1 AND A2 OR D<0)) OR CROSS(BG);
POLYLINE(AA==1REF(B1))coloryellow;
CC:=CLOSEcolorwhite;
DD7:DYNAINFO(7)nodraw;
DD1:=DYNAINFO(1)nodraw;
DD2:=DYNAINFO(2)nodraw;
DD3:=DYNAINFO(3)nodraw;
DD4:=DYNAINFO(4)nodraw;
DD5:=DYNAINFO(5)nodraw;
DD6:=DYNAINFO(6)nodraw;
DD7:=DYNAINFO(7)nodraw;
DD9:=DYNAINFO(9)nodraw;
DD11:=DYNAINFO(11)nodraw;
DD20:=DYNAINFO(20)nodraw;
DD21:=DYNAINFO(21)nodraw;
DD28:=DYNAINFO(28)nodraw;
DD29:=DYNAINFO(29)nodraw;
DD30:=DYNAINFO(30)nodraw;
E:=TFILT(CLOSEDATE+190000000DATE+190000000)nodraw;
E1:=DLOWnodraw;
E2:=IF(CODELIKE('600')63)nodraw;
E3:=BARSLAST(CLOSE/REF(CLOSE1)>=1.095)nodraw;//上一条件成立位置 上一次条件成立到当前的周期数
E4:=TFILT(CLOSEDATE+19000000-E30DATE+19000000-E30)nodraw;
E5:=BARSSINCE(CLOSE/REF(CLOSE1)>=1.095E3)nodraw;
E6:=CONST(CLOSE)nodraw;
E7:=REFDATE(CLOSEDATE-1)nodraw;
THEYEAR := 1900*10000;
DATE1:= 20180703 - THEYEAR ;
DATE2:= 20180702 - THEYEAR ;
收盘0703:=REFDATE(CLOSEDATE1)nodraw;
收盘0702:=REFDATE(CLOSEDATE2)nodraw;
E8:=REF(CBARSLAST(DATE=20180702))nodraw;
指定日期:=YEAR==2016 AND MONTH==7 AND DAY==3NODRAW;
当日收盘:=REF(CLOSEBARSLAST(指定日期));
昨日收盘:=REF(CLOSEBARSLAST(YEAR==2018 AND MONTH==7 AND DAY==2));
//MACD
DIFF:=EMA(CLOSE12) - EMA(CLOSE26);
DEA:=EMA(DIFF9);
MACD:=2*(DIFF-DEA);
DRAWTEXT(CROSS(DIFFDEA)A11"M")coloryellow;
DRAWTEXT(CROSS(DEADIFF)A11"M")colorgreen;
H1:HOD(H144)nodraw;
L1:LOD(L144)nodraw;
DRAWTEXT(H1=144 AND L1=1 AND B>A11A11*0.95"HL")colorred;
LLV1:LLVBARS(L21)nodraw;
DRAWNUMBER(REF((CROSS(BG) AND (A1 AND A2 OR D<0)) OR CROSS(BG)1)A11*0.95TOSTRING(A112));

阅读:442    评论:0

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

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


【电脑版】  【回到顶部】