B1:=EMA(CLOSE,12)-EMA(CLOSE,26);
B2:=EMA(B1,9);
TDXSTEP132:STICKLINE(B1>=B2,ADVANCE,OPEN,3,0),COLORYELLOW;
TDXSTEP133:STICKLINE(B1>=B2,VOLINSTK,QHJSJ,0.00009,0),COLORYELLOW;
YELLOWTJ:=B1>=B2;
LC:=REF(CLOSE,1);
B5:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100;
TDXSTEP134:STICKLINE(B5>=75,OPEN,ADVANCE,3,0),COLORGREEN;
TDXSTEP135:STICKLINE(B5>=75,VOLINSTK,QHJSJ,0.00009,0),COLORGREEN;
GREENTJ:=B5>=75;
RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
B3:=SMA(RSV,3,1);
B4:=SMA(B3,3,1);{www.fxjgsw.com}
TDXSTEP136:STICKLINE(CROSS(B3,B4) AND B4<=55,ADVANCE,OPEN,3,0),COLORBLUE;
TDXSTEP137:STICKLINE(CROSS(B3,B4) AND B4<=55,VOLINSTK,QHJSJ,0.00009,0),COLORBLUE;
BLUETJ:=CROSS(B3,B4) AND B4<=55;
NOTEXT1:=HHV(EMA(ADVANCE,21),2);
NOTEXT2:EMA(ADVANCE,21),COLORRED,LINETHICK2;
NOTEXT3:IF(NOTEXT1=NOTEXT2 AND UPNDAY(NOTEXT1,3),NOTEXT1,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT4:IF(REF(NOTEXT1,2)>NOTEXT2,NOTEXT2,DRAWNULL),COLORGREEN,LINETHICK2;
TDXSTEP138:STICKLINE(NOT(BLUETJ) AND NOT(YELLOWTJ) AND NOT(GREENTJ),OPEN,ADVANCE,3,0),COLORWHITE;
TDXSTEP139:STICKLINE(NOT(BLUETJ) AND NOT(YELLOWTJ) AND NOT(GREENTJ),VOLINSTK,QHJSJ,0.00009,0),COLORWHITE;
若上述公式在汇盈系列行情数据分析软件中有异常,请尝试如下公式(绝大多数通达信使用下面的源码):
B1:=EMA(CLOSE,12)-EMA(CLOSE,26);
B2:=EMA(B1,9);
TDXSTEP132:STICKLINE(B1>=B2,CLOSE,OPEN,3,0),COLORYELLOW;
TDXSTEP133:STICKLINE(B1>=B2,HIGH,LOW,0.00009,0),COLORYELLOW;
YELLOWTJ:=B1>=B2;
LC:=REF(CLOSE,1);
B5:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100;
TDXSTEP134:STICKLINE(B5>=75,OPEN,CLOSE,3,0),COLORGREEN;
TDXSTEP135:STICKLINE(B5>=75,HIGH,LOW,0.00009,0),COLORGREEN;
GREENTJ:=B5>=75;
RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
B3:=SMA(RSV,3,1);
B4:=SMA(B3,3,1);
TDXSTEP136:STICKLINE(CROSS(B3,B4) AND B4<=55,CLOSE,OPEN,3,0),COLORBLUE;
TDXSTEP137:STICKLINE(CROSS(B3,B4) AND B4<=55,HIGH,LOW,0.00009,0),COLORBLUE;
BLUETJ:=CROSS(B3,B4) AND B4<=55;
NOTEXT1:=HHV(EMA(CLOSE,21),2);
NOTEXT2:EMA(CLOSE,21),COLORRED,LINETHICK2;
NOTEXT3:IF(NOTEXT1=NOTEXT2 AND UPNDAY(NOTEXT1,3),NOTEXT1,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT4:IF(REF(NOTEXT1,2)>NOTEXT2,NOTEXT2,DRAWNULL),COLORGREEN,LINETHICK2;
TDXSTEP138:STICKLINE(NOT(BLUETJ) AND NOT(YELLOWTJ) AND NOT(GREENTJ),OPEN,CLOSE,3,0),COLORWHITE;
TDXSTEP139:STICKLINE(NOT(BLUETJ) AND NOT(YELLOWTJ) AND NOT(GREENTJ),HIGH,LOW,0.00009,0),COLORWHITE;
{-----------------------------------} |