M:=15;
VAR1:=CLOSE-MA(CLOSE,M);
VAR2:=BARSCOUNT(ADVANCE)-MA(BARSCOUNT(ADVANCE),M);
VAR3:=MA(POW(VAR1,2),M);
VAR4:=MA(POW(VAR2,2),M);
XGXS:=MA(VAR1*VAR2,M)/(SQRT(VAR3)*SQRT(VAR4));
S1:=IF(CODELIKE(2),0,1);
S2:=VOLINSTK>REF(VOLINSTK,1);
XG3:=CROSS(XGXS,(-0.85)) AND S1 AND S2;
Z:=(OPEN+ADVANCE)/2;{www.fxjgsw.com}
TDXSTEP103:STICKLINE(XG3,OPEN,CLOSE,4,0),COLORYELLOW;
TDXSTEP104:STICKLINE(XG3,CLOSE,OPEN,1,0),COLORRED;
TDXSTEP105:DRAWICON(XG3,QHJSJ*0.99,1);
AA:=MA(MAX(HHV(VOLINSTK,13),ADVANCE),2);
AB:=MA(MAX(HHV(VOLINSTK,5),AA),2);
A3:=MA(MAX(HHV(VOLINSTK,3),AB),2);
A4:=MA(MIN(LLV(A3,13),A3),2);
A5:=MA(MIN(LLV(QHJSJ,13),A4),2);
A6:=(AA+A4+A5)/3;
中线:=EMA(SLOPE(MA(ADVANCE,2),21)*20+MA(ADVANCE,2),55);
长线:=MA(中线,20);
AC:=IF(ADVANCE>中线,ADVANCE*0.98,QHJSJ);
短A:=MA(AC,5);
A8:=IF(ADVANCE>中线,AA,中线*1.02);
A9:=IF(ADVANCE>中线,AB,中线*1.02);
A10:=IF(ADVANCE>中线,A3,中线*1.02);
A11:=(A8+A9+A10)/3;
A12:=MA(A11,10);
短B:=MA(短A,5);
T1:=CROSS(ADVANCE,短B) AND EXIST(CROSS(中线,ADVANCE),5);
T2:=CROSS(ADVANCE,中线);
T3:=CROSS(ADVANCE,长线);
T4:=ADVANCE>REF(ADVANCE,1) AND ADVANCE/REF(ADVANCE,1)<1.031;
T5:=DECLINE>REF(DECLINE,1)*FROMOPEN/240;
T6:=ADVANCE/中线<1.21;
买入评分:=T1+T2+T3+T4+T5+T6;
TDXSTEP106:DRAWRECTREL(930,500,970,990,0);
TDXSTEP107:DRAWRECTREL(930,CONST(990-买入评分*100),970,990,95);
TDXSTEP108:DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.95,0.832,1,买入评分),COLORYELLOW;
持股线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
NOTEXT001:IF(持股线>=REF(持股线,1),持股线,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT002:IF(持股线<REF(持股线,1),持股线,DRAWNULL),COLORGREEN,LINETHICK2;
若上述公式在汇盈系列行情数据分析软件中有异常,请尝试如下公式:
M:=15;
VAR1:=CLOSE-MA(CLOSE,M);
VAR2:=BARSCOUNT(CLOSE)-MA(BARSCOUNT(CLOSE),M);
VAR3:=MA(POW(VAR1,2),M);
VAR4:=MA(POW(VAR2,2),M);
XGXS:=MA(VAR1*VAR2,M)/(SQRT(VAR3)*SQRT(VAR4));
S1:=IF(CODELIKE(2),0,1);
S2:=HIGH>REF(HIGH,1);
XG3:=CROSS(XGXS,(-0.85)) AND S1 AND S2;
Z:=(OPEN+CLOSE)/2;
TDXSTEP103:STICKLINE(XG3,OPEN,CLOSE,4,0),COLORYELLOW;
TDXSTEP104:STICKLINE(XG3,CLOSE,OPEN,1,0),COLORRED;
TDXSTEP105:DRAWICON(XG3,LOW*0.99,1);
AA:=MA(MAX(HHV(HIGH,13),CLOSE),2);
AB:=MA(MAX(HHV(HIGH,5),AA),2);
A3:=MA(MAX(HHV(HIGH,3),AB),2);
A4:=MA(MIN(LLV(A3,13),A3),2);
A5:=MA(MIN(LLV(LOW,13),A4),2);
A6:=(AA+A4+A5)/3;
中线:=EMA(SLOPE(MA(CLOSE,2),21)*20+MA(CLOSE,2),55);
长线:=MA(中线,20);
AC:=IF(CLOSE>中线,CLOSE*0.98,LOW);
短A:=MA(AC,5);
A8:=IF(CLOSE>中线,AA,中线*1.02);
A9:=IF(CLOSE>中线,AB,中线*1.02);
A10:=IF(CLOSE>中线,A3,中线*1.02);
A11:=(A8+A9+A10)/3;
A12:=MA(A11,10);
短B:=MA(短A,5);
T1:=CROSS(CLOSE,短B) AND EXIST(CROSS(中线,CLOSE),5);
T2:=CROSS(CLOSE,中线);
T3:=CROSS(CLOSE,长线);
T4:=CLOSE>REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)<1.031;
T5:=VOL>REF(VOL,1)*FROMOPEN/240;
T6:=CLOSE/中线<1.21;
买入评分:=T1+T2+T3+T4+T5+T6;
TDXSTEP106:DRAWRECTREL(930,500,970,990,0);
TDXSTEP107:DRAWRECTREL(930,CONST(990-买入评分*100),970,990,95);
TDXSTEP108:DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.95,0.832,1,买入评分),COLORYELLOW;
持股线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
NOTEXT001:IF(持股线>=REF(持股线,1),持股线,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT002:IF(持股线<REF(持股线,1),持股线,DRAWNULL),COLORGREEN,LINETHICK2;
{-----------------------------------}
|