{ MACD交易主图} STICKLINE(L>REF(H,1) ,REF(H,1),L,4,-1),COLORDF00DF; STICKLINE(H<REF(L,1) ,REF(L,1),H,4,-1),COLORDFDF00; DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA1:=EMA(DIF1,9); MACDA:=2*(DIF1-DEA1); CY:=BARSLAST(CURRBARSCOUNT=100); DD77:=CONST(IF(ISLASTBAR=1,LLV(L,CY),0)); AA7737:=LAST(MACDA>=REF(MACDA,1),3,1); BB77:=MACDA<REF(MACDA,1); CC77:=LAST(MACDA<=REF(MACDA,1),3,1); DD1:=MACDA>REF(MACDA,1); SS:=CC77 AND DD1 AND MACDA<0; XX:=AA7737 AND BB77 AND MACDA>0; A7737:=(3*C+H+L+O)/6; XJ:=(A7737+0.618*REF(A7737,1)+0.382*REF(A7737,2)+0.236*REF(A7737,3)+0.146*REF(A7737,4))/2.382; YCZXH:=(MA(HHV(A7737,2),5)+MA(HHV(A7737,2),13)+MA(HHV(A7737,2),21)+MA(HHV(A7737,2),32))/4; YCZXL:=(MA(LLV(A7737,2),5)+MA(LLV(A7737,2),13)+MA(LLV(A7737,2),21)+MA(LLV(A7737,2),32))/4; SMH:=EMA(YCZXH,21); SML:=EMA(YCZXL,21),NODRAW; SMJ:=(SML+SMH)/2,NODRAW; PJ:=(10*A7737+9*REF(A7737,1)+8*REF(A7737,2)+7*REF(A7737,3)+6*REF(A7737,4)+5*REF(A7737,5)+4*REF(A7737,6)+3*REF(A7737,7)+2*REF(A7737,8)+REF(A7737,9))/55; A1:=EMA(PJ,3),COLOR00400D,NODRAW; A77372:=EMA(PJ,5),COLOR00400D,NODRAW; A773:=EMA(PJ,7),COLOR00400D,NODRAW; A774:=EMA(PJ,9),COLOR00400D,NODRAW; A775:=EMA(PJ,11),COLOR00400D,NODRAW; A66:=EMA(PJ,1),COLOR00400D,NODRAW; LX:=REF(XJ,1),NODRAW; ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100,NODRAW; KX1:=(CLOSE>=OPEN) AND ZD>=50,NODRAW; KX2:=(CLOSE<OPEN) AND ZD>=50,NODRAW; KX3:=(CLOSE>=OPEN) AND ZD<50,NODRAW; KX4:=(CLOSE<OPEN) AND ZD<50,NODRAW; DRAWBAND(IF(CURRBARSCOUNT<=100,DD77+MACD*1.5,DRAWNULL),RGB(230,12,12),DD77,RGB(10,30,230)); DRAWBAND(IF(CURRBARSCOUNT<=100,DD77+MACD*1.5,DRAWNULL),RGB(230,30,12),DD77,RGB(10,200,30)); IF(CURRBARSCOUNT<100,DD77+MACD*1.5,DRAWNULL),COLORYELLOW; DRAWTEXT(CROSS(C,A773),DD77,'暖'),COLORWHITE; DRAWTEXT(CROSS(C,SML),DD77,'开'),COLORWHITE; STICKLINE(L>REF(H,1) ,REF(H,1),L,4,-1),COLORDF00DF; STICKLINE(H<REF(L,1) ,REF(L,1),H,4,-1),COLORDFDF00; DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA1:=EMA(DIF1,9); MACDA:=2*(DIF1-DEA1); CY:=BARSLAST(CURRBARSCOUNT=100); DD77:=CONST(IF(ISLASTBAR=1,LLV(L,CY),0)); AA7737:=LAST(MACDA>=REF(MACDA,1),3,1); BB77:=MACDA<REF(MACDA,1); CC77:=LAST(MACDA<=REF(MACDA,1),3,1); DD1:=MACDA>REF(MACDA,1); SS:=CC77 AND DD1 AND MACDA<0; XX:=AA7737 AND BB77 AND MACDA>0; A7737:=(3*C+H+L+O)/6;{www.fxjgsw.com} XJ:=(A7737+0.618*REF(A7737,1)+0.382*REF(A7737,2)+0.236*REF(A7737,3)+0.146*REF(A7737,4))/2.382; YCZXH:=(MA(HHV(A7737,2),5)+MA(HHV(A7737,2),13)+MA(HHV(A7737,2),21)+MA(HHV(A7737,2),32))/4; YCZXL:=(MA(LLV(A7737,2),5)+MA(LLV(A7737,2),13)+MA(LLV(A7737,2),21)+MA(LLV(A7737,2),32))/4; SMH:=EMA(YCZXH,21); SML:=EMA(YCZXL,21),NODRAW; SMJ:=(SML+SMH)/2,NODRAW; PJ:=(10*A7737+9*REF(A7737,1)+8*REF(A7737,2)+7*REF(A7737,3)+6*REF(A7737,4)+5*REF(A7737,5)+4*REF(A7737,6)+3*REF(A7737,7)+2*REF(A7737,8)+REF(A7737,9))/55; A1:=EMA(PJ,3),COLOR00400D,NODRAW; A77372:=EMA(PJ,5),COLOR00400D,NODRAW; A773:=EMA(PJ,7),COLOR00400D,NODRAW; A774:=EMA(PJ,9),COLOR00400D,NODRAW; A775:=EMA(PJ,11),COLOR00400D,NODRAW; A66:=EMA(PJ,1),COLOR00400D,NODRAW; LX:=REF(XJ,1),NODRAW; ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100,NODRAW; KX1:=(CLOSE>=OPEN) AND ZD>=50,NODRAW; KX2:=(CLOSE<OPEN) AND ZD>=50,NODRAW; KX3:=(CLOSE>=OPEN) AND ZD<50,NODRAW; KX4:=(CLOSE<OPEN) AND ZD<50,NODRAW; DRAWBAND(IF(CURRBARSCOUNT<=100,DD77+MACD*1.5,DRAWNULL),RGB(230,12,12),DD77,RGB(10,30,230)); DRAWBAND(IF(CURRBARSCOUNT<=100,DD77+MACD*1.5,DRAWNULL),RGB(230,30,12),DD77,RGB(10,200,30)); IF(CURRBARSCOUNT<100,DD77+MACD*1.5,DRAWNULL),COLORYELLOW;
DRAWTEXT(CROSS(C,A773),DD77,'暖'),COLORWHITE; DRAWTEXT(CROSS(C,SML),DD77,'开'),COLORWHITE; |
