求高手修改通达信公式,改成预警公式:红线上穿绿线
XY_S1101:=(2*CLOSE+HIGH+LOW)/4;XY_S1102:=LLV(LOW,34);XY_S1103:=HHV(HIGH,34);XY_SZQQS1...
XY_S1101:=(2*CLOSE+HIGH+LOW)/4;
XY_S1102:=LLV(LOW,34);
XY_S1103:=HHV(HIGH,34);
XY_SZQQS1:EMA((XY_S1101-XY_S1102)/(XY_S1103-XY_S1102)*100,13),COLOR0000FF;
XY_SZQQS2:EMA(0.667*REF(XY_SZQQS1,1)+0.333*XY_SZQQS1,2),COLOR00FF00;
AA:20,COLOR00FF00;
BB:50,COLOR808080;
CC:80,COLOR0000FF;
XY_SSY1300:=REF(CLOSE,1);
XY_SSY1302:=SMA(MAX(CLOSE-XY_SSY1300,0),6,1);
XY_SSY1303:=SMA(ABS(CLOSE-XY_SSY1300),6,1);
XY_SDFX:=(CLOSE-LLV(CLOSE,250))/LLV(CLOSE,250)*100;
XY_SKFX:=(HHV(CLOSE,250)-CLOSE)/CLOSE*100;
XY_SSY1301:=XY_SSY1302/XY_SSY1303*100;
XY_SMC1:IF(REF(XY_SSY1301,1)>80 AND XY_SSY1301<80 AND XY_SKFX>XY_SDFX,50,0),COLORFFFFFF;
STICKLINE(XY_SDFX>XY_SKFX,0,2,4,0),COLOR0000FF;
STICKLINE(XY_SDFX<XY_SKFX,0,2,4,0),COLOR00FF00; 展开
XY_S1102:=LLV(LOW,34);
XY_S1103:=HHV(HIGH,34);
XY_SZQQS1:EMA((XY_S1101-XY_S1102)/(XY_S1103-XY_S1102)*100,13),COLOR0000FF;
XY_SZQQS2:EMA(0.667*REF(XY_SZQQS1,1)+0.333*XY_SZQQS1,2),COLOR00FF00;
AA:20,COLOR00FF00;
BB:50,COLOR808080;
CC:80,COLOR0000FF;
XY_SSY1300:=REF(CLOSE,1);
XY_SSY1302:=SMA(MAX(CLOSE-XY_SSY1300,0),6,1);
XY_SSY1303:=SMA(ABS(CLOSE-XY_SSY1300),6,1);
XY_SDFX:=(CLOSE-LLV(CLOSE,250))/LLV(CLOSE,250)*100;
XY_SKFX:=(HHV(CLOSE,250)-CLOSE)/CLOSE*100;
XY_SSY1301:=XY_SSY1302/XY_SSY1303*100;
XY_SMC1:IF(REF(XY_SSY1301,1)>80 AND XY_SSY1301<80 AND XY_SKFX>XY_SDFX,50,0),COLORFFFFFF;
STICKLINE(XY_SDFX>XY_SKFX,0,2,4,0),COLOR0000FF;
STICKLINE(XY_SDFX<XY_SKFX,0,2,4,0),COLOR00FF00; 展开
1个回答
展开全部
XY_S1101:=(2*CLOSE+HIGH+LOW)/4;
XY_S1102:=LLV(LOW,34);
XY_S1103:=HHV(HIGH,34);
XY_SZQQS1:=EMA((XY_S1101-XY_S1102)/(XY_S1103-XY_S1102)*100,13);
XY_SZQQS2:=EMA(0.667*REF(XY_SZQQS1,1)+0.333*XY_SZQQS1,2);
XG:CROSS(XY_SZQQS1,XY_SZQQS2);
(已测试)
XY_S1102:=LLV(LOW,34);
XY_S1103:=HHV(HIGH,34);
XY_SZQQS1:=EMA((XY_S1101-XY_S1102)/(XY_S1103-XY_S1102)*100,13);
XY_SZQQS2:=EMA(0.667*REF(XY_SZQQS1,1)+0.333*XY_SZQQS1,2);
XG:CROSS(XY_SZQQS1,XY_SZQQS2);
(已测试)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询