自动预测赢家,预测赢家的指标,通达信划线主图

VAR1:=BARSCOUNT(C);
VAR2:=CONST(VAR1);
VAR3:=VAR2-VAR1;
K线计数:VAR3+1,NODRAW,COLORYELLOW;
{自动预测周期}
DRAWKLINE(H,O,L,C);
A1 := (REF(HIGH,自动预测周期) = HHV(HIGH,(自动预测周期 + 1)));
B1 := FILTER(A1,自动预测周期);
C1 := BACKSET(B1,(自动预测周期 + 1));
D1 := FILTER(C1,自动预测周期);
A2 := (REF(LOW,自动预测周期) = LLV(LOW,(自动预测周期 + 1)));
B2 := FILTER(A2,自动预测周期);
C2 := BACKSET(B2,(自动预测周期 + 1));
D2 := FILTER(C2,自动预测周期);
E1 := ((REF(LLV(LOW,自动预测周期),1) + REF(HHV(HIGH,自动预测周期),1)) / 2);
E2 := ((HIGH + LOW) / 2);
H1 := (((D1 AND NOT((D2 AND (E1 >= E2)))) OR ISLASTBAR) OR (BARSCOUNT(CLOSE) = 1));
L1 := (D2 AND NOT((D1 AND (E1 < E2))));
H2 := (D1 AND NOT((D2 AND (E1 >= E2))));
X1 := REF(BARSLAST(H1),1) + 1;
F1 := BACKSET((H1 AND (COUNT(L1,X1) > 0)),LLVBARS(IF(L1,LOW,10000),X1));
G1 := (F1 > REF(F1,1));
I1 := BACKSET(G1,2);
LD := (I1 > REF(I1,1));
L2 := ((LD OR ISLASTBAR) OR (BARSCOUNT(CLOSE) = 1));
X2 := (REF(BARSLAST(L2),1) + 1);
F2 := BACKSET((L2 AND (COUNT(H2,X2) > 0)),HHVBARS(IF(H2,HIGH,0),X2));
G2 := (F2 > REF(F2,1));
I2 := BACKSET(G2,2);
HD := (I2 > REF(I2,1));
{全画}
IF(全画开关=1,DRAWLINE(LD,L,HD,H,0),DRAWNULL)COLORRED;
IF(全画开关=1,DRAWLINE(HD,H,LD,L,0),DRAWNULL)COLORGREEN;
DRAWTEXT(全画开关=1 AND LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L*0.98,’A’),COLORRED;
DRAWNUMBER(全画开关=1 AND LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L*0.98,L),COLORRED;
DRAWTEXT(全画开关=1 AND HD,H*1.01,’B’),COLORGREEN;
DRAWNUMBER(全画开关=1 AND HD,H*1.01,H),COLORGREEN;
最高价格:=HHV(REF(HIGH,最高-1),2),NODRAW;
最低价格:=LLV(REF(LOW,最低-1),2),NODRAW;
高低比:=最高价格/最低价格;
高低比平方:=SQRT(高低比);
再平放:=SQRT(高低比平方);
短高点B:=最低价格*(SQRT(高低比)+再平放-1)NODRAW;
短高点:CONST(短高点B),NODRAW;
短中点:CONST(最高价格/高低比平方),NODRAW;
VAR12:=最低价格*SQRT(SQRT(最高价格/最低价格));
短低点:CONST(VAR12),NODRAW;
求最高值:=REFDATE(HHV(HIGH,最高),DATE);
求最低值:=REFDATE(LLV(LOW,最低),DATE);
{DRAWLINE(CURRBARSCOUNT=最低,短高点,ISLASTBAR,短高点,0)POINTDOT,LINETHICK4,COLORMAGENTA;{C3横线}
DRAWLINE(CURRBARSCOUNT=最低,短高点,CURRBARSCOUNT,短高点,0)DOTLINE,LINETHICK1,COLORMAGENTA;{C3横线}
DRAWLINE(CURRBARSCOUNT=最低,短中点,CURRBARSCOUNT,短中点,0)DOTLINE,LINETHICK1,COLORMAGENTA;{C2横线}
DRAWLINE(CURRBARSCOUNT=最低,短低点,CURRBARSCOUNT,短低点,0)DOTLINE,LINETHICK1,COLORMAGENTA;{C1横线}
DRAWTEXT(CURRBARSCOUNT=最低,短高点*1.01,STRCAT(‘  C3:’,CON2STR(短高点,2))),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=最低,短中点*0.99,STRCAT(‘  C2:’,CON2STR(短中点,2)))COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=最低,短低点*0.97,STRCAT(‘  C1:’,CON2STR(短低点,2)))COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=最高,H,'( 高B )’),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=最低,L,'( 低A )’),COLORYELLOW;
DRAWICON(CURRBARSCOUNT=最低,L,38);{历史低点标记}
DRAWICON(CURRBARSCOUNT=最高,H,39);{历史高点标记};
DRAWLINE(CURRBARSCOUNT=最低,L,CURRBARSCOUNT=最高,H,0)COLORMAGENTA,LINETHICK2;{最高到低点划线}
DRAWLINE(CURRBARSCOUNT=最高,H,CURRBARSCOUNT=最低,L,0)COLORMAGENTA,LINETHICK2;{最低到高点划线};
DRAWLINE(CURRBARSCOUNT=最低,L,短高点,短高点,-1)DOTLINE,LINETHICK1,COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=最低,L,短高点,0,0),COLORMAGENTA;

负责声明:
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/181296.html,转载请注明出处。
通达信《超级资金战法》全套指标公式源码
通达信《超级资金战法》全套指标公式源码
1分钟前 有人购买 去瞅瞅看
温馨提示:本站暂不支持手机端在线支付,请您在电脑端扫码完成支付!
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录