- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
/*
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;
DRAWLINE1(BJ2CROSS(X2,0.5)SX2=1,MIN(O,C),BJ2CROSS(X2,0.5)SX2=0 ,MIN
WP1:=PEAKBARS(1,1,1,1);
WP2:=PEAKBARS(1,1,2,1);
T1:=TROUGH(2,1,1,1);
T2:=TROUGH(2,1,2,1);
WT1:=TROUGHBARS(2,1,1,1);
WT2:=TROUGHBARS(2,1,2,1);
TJ1:=P1T1 AND P2T2 ;
ZD:=MAX(T1,T2);
ZG:=MIN(P1,P2);
LL:=MIN(T1,T2);
HH:=MAX(P1,P2);
TJ2:=FILTER(ZGZD,2);
TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));
TJ4:=TJ1TJ2NOT(TJ3);
TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ7:=ZGREF(ZG,REF(BARSLAST(TJ4),1))ZDREF(ZD,REF(BARSLAST(TJ4),1));
TJ8:=TJ4NOT(TJ5 OR TJ6 OR TJ7);
ZSD:=IF(TJ8,ZD,NULL);
ZSG:=IF(TJ8,ZG,NULL);
ZSH:=IF(TJ8,HH,NULL);
ZSL:=IF(TJ8,LL,NULL);
STICKLINE1(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;
STICKLINE1(TJ8,ZSD,ZSG,0,1),COLORMAGENTA;
DRAWTEXT(DISP=2,ZSH,中枢),COLORRED;
POLYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8)),COLORRED),CROSSDOT;
POLYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8)),COLORGREEN),CROSSDOT;
POLYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8)),COLORRED),POINTDOT;
POLYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8)),COLORGREEN),POINTDOT;
POLYLINE(DISP=3,ZIGZAG(H,1,1),COLORBLUE);
POLYLINE(DISP=3,ZIGZAG(L,1,1),COLORBLUE);
局部低点预选A:=BACKSET(LLV(L,5)REF(LLV(L,4),1),4);
局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);
局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);
局部高点预选A:=BACKSET(HHV(H,5)REF(HHV(H,4),1),4);
局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);
局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);
缺口判断:=IF(LREF(H
文档评论(0)