- 1、本文档共5页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
/*
DRAWTEXT(TD9,H*1.03,▽),COLORGREEN;
JCH:=BARSLAST(CROSS(C,H10))+1;
SCH:=BARSLAST(CROSSDOWN(C,H10))+1;
JCL:=BARSLAST(CROSS(C,L10))+1;
SCL:=BARSLAST(CROSSDOWN(C,L10))+1;
1H:REF(HHV(MAX(O,C),JCH),SCH),RGB(120,0,80);
1L:REF(LLV(MIN(O,C),SCL),JCL),RGB(44,88,88);
JC1:=CROSS(C,H10),NODRAW;
JC2:=CROSS(C,L10),NODRAW;
SC1:CROSSDOWN(C,H10),NODRAW;
SC2:CROSSDOWN(C,L10),NODRAW;
JC1S:=REF(SUMBARS(JC2,1)SUMBARS(JC1,1) EXIST(JC1,SUMBARS(JC2,1))=0,1) JC1 || (JC1JC2);
SC1S:=REF(SUMBARS(SC1,1)SUMBARS(JC1,1) EXIST(SC2,SUMBARS(SC1,1))=0,1) SC2 || (SC2SC1);
N1:=HHVBARS(MAX(O,C),SUMBARS(JC1S,1));
N2:=LLVBARS(MIN(O,C),SUMBARS(SC1S,1)) ;
X1:BACKSET(SC1S,N1+1),NODRAW;
X2:BACKSET(JC1S,N2+1),NODRAW;
XX1:=CROSS(X1,0.5);
XX2:=CROSS(X2,0.5);
SX1:=MOD(COUNT(XX1,BARPOS),2)=0;
SX2:=MOD(COUNT(XX2,BARPOS),2)=0;
BJ1:=BACKSET(ISLASTBAR,SUMBARS(XX1,3));
BJ2:=BACKSET(ISLASTBAR,SUMBARS(XX2,3));
DRAWLINE1(BJ1CROSS(X1,0.5)SX1=0 ,MAX(O,C),BJ1CROSS(X1,0.5)SX1=1 ,MAX(O,C),0),COLORRED;
DRAWLINE1(BJ1CROSS(X1,0.5)SX1=1 ,MAX(O,C),BJ1CROSS(X1,0.5)SX1=0 ,MAX(O,C),0),COLORRED;
DRAWLINE1(BJ2CROSS(X2,0.5)SX2=0,MIN(O,C),BJ2CROSS(X2,0.5)SX2=1 ,MIN(O,C),0),COLORGREEN;
Z:IFELSE(M,ZIGZAG(S,N,M),ZIGZAG(S,N,M));
P:=PEAK(S,N,1,M);
PB:=PEAKBARS(S,N,1,M);
T:=TROUGH(S,N,1,M);
TB:=TROUGHBARS(S,N,1,M);
CHA:=IFELSE(PBTB,P-IFELSE(PB,LLV(S,PB),P),IFELSE(TB,HHV(S,TB),T)-T);
N1:=IFELSE(MPBTB,100*CHA/P,IFELSE(MPBTB,100*CHA/T,CHA));
TPTJ:=(CROSS(N1,N)PBTB)||(PBTBTB=0NOT(ISLASTBAR)BARSLAST(CROSS(N1,N)PBTB)PB);
TTTJ:=(CROSS(N1,N)PBTB)||(PBTBPB=0NOT(ISLASTBAR)BARSLAST(CROSS(N1,N)PBTB)TB);
DRAWTEXT(TPTJ,Z,TP);
DRAWTEXT(TTTJ,Z,TT);
//N函数ZIGZAG(X,N,M)参数 回撤程度
//M 函数ZIGZAG(X,N,M)参数 0为点数,1为百分比
TR := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SMA(IF(HD0 AND HDLD,HD,0),N,1);
DMM:= SMA(IF(LD0 AND LDHD,LD,0),N,1);
PDI: DMP*100/TR;
MDI: DMM*100/TR;
ADX: SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1);
ADXR:(ADX+REF(ADX,M))/2;
A1:=CROSS(PDI,MDI);
VAR4:=VAR2/VAR1*100-70 ;
V
文档评论(0)