本博優(yōu)化指標(biāo),免費(fèi)使用。
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9),LINETHICK;
MACD:=2*(DIF-DEA);
入1:IF(DIF>REF(DIF,1),DIF,DRAWNULL),colorred,LINETHICK;
入2:IF(DIF
zero:=0;
gj:=MAX(C,O);
STICKLINE(MACD>=0,MACD,0,2,0),colorred;
STICKLINE(MACD<0,MACD,0,2,0),colormagenta;
STICKLINE(MACD0,0,MACD,2,0 ),coloryellow;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0
),colorgreen;
IF(DIF<0,DIF,0),colorred,LINETHICK;
IF(DIF<0,0,DIF),colorred,LINETHICK;
IF(DIF
IF(DIF>DEA,DEA,DEA),colorwhite,LINETHICK1;
金叉:=CROSS(DIF,DEA) AND DIF<0.3;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND
COUNT(JCCOUNT=2,21)=1;
DRAWTEXT(二次金叉,-0.2,' 金叉二'),Color3375FF;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9),LINETHICK1;
XG:=CROSS(DIF,DEA) AND DIF<0.3;
DRAWTEXT(CROSS(DIF,DEA),dea,"↑"),colorred;
DRAWTEXT(CROSS(dea,Dif),dif,"↓"),colorgreen;
L4:=LLV(gj,4);
jl:=(HHV(dif,55)-LLV(dif,55))/5;
gt:=dea>REF(dea,1) AND REF(dea,1)
A1:=BARSLAST(REF(gt,1));
底背離:=REF(L4,A1+1)>CLOSE AND dif>REF(dif,A1+1) AND
gt;
水上底背離:=REF(L4,A1+1)>CLOSE AND dif>REF(dif,A1+1) AND gt
AND dif>0;
DRAWLINE(A1=0,DEA,底背離,REF(DEA,A1),0),colorred,LINETHICK;
DRAWLINE(底背離,DEA,底背離,REF(DEA,A1),0),colorred,LINETHICK;
DRAWTEXT(底背離,REF(DEA,A1)*1.18,' 底背離'),COLORFF00FF;
DRAWTEXT(水上底背離,REF(DEA,A1)*1.18,' 水上底背離'),colorred;
H4:=HHV(gj,4);
gt2:=deaREF(dea,2);
A2:=BARSLAST(REF(gt2,1));
頂背離:= REF(H4,A2+1)
DRAWLINE(A2=0 ,DEA,頂背離,REF(DEA,A2),0),colorgreen,LINETHICK;DRAWLINE(頂背離,DEA,頂背離,REF(DEA,A2),0),colorgreen,LINETHICK;DRAWTEXT(頂背離,REF(DEA,A2)*1.18,' 頂背離'),colorgreen;A0:=DIF<0 AND DEA<0;A11:=A0>REF(A0,1);A3:=BARSLAST(A11);A4:=COUNT(DEA>0 AND DIF >0,A3)=0;A5:=CROSS(DIF ,DEA);A6:=BARSLAST(A5);A7:=REF(A6,A6+1)+A6;A8:=(DIF+DEA)/2;A9:=(HIGH+LOW)/2;A10:=A5 AND A7REF(A8,A7) AND A90;DRAWTEXT(A10,DIF*0.95,'★金叉買入'),coloryellow;T:=BARSLAST(dif>0 AND dea>0 AND CROSS(dea,dif));TJ:=EVERY(MACD>0,03) AND MACD>REF(MACD,1) AND REF(MACD,1)0 AND dea>0 AND MACD>0;XG:=COUNT(TJ,T)=1 AND TJ;DRAWICON(XG,-0.05,1);DRAWTEXT(xg,-0.25,"回踩不破"),COLOR0000FF;a:=dif>dea;b:=difs:=dif>=0;DRAWTEXT(BARSLASTCOUNT(s)=1 ,dea*0.23,'↖上穿'),colormagenta;DRAWTEXT(BARSLASTCOUNT(a)=1 ,MACD*01.98,'1'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=2 ,MACD*01.98,'2'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=3,MACD*01.98,'3'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=4 ,MACD*01.98,'4'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=5 ,MACD*01.98,'5'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=6 ,MACD*01.98,'6'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=7 ,MACD*01.98,'7'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=8 ,MACD*2,'8'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=9 ,MACD*2,'9'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=10 ,MACD*2,'10'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=11 ,MACD*2,'11'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=12 ,MACD*2,'12'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=13 ,MACD*2,'13'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=14 ,MACD*2,'14'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=15 ,zero*2,'15'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=16 ,zero*2,'16'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=17 ,zero*2,'17'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=18 ,zero*2,'18'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=19 ,zero*2,'19'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=20 ,zero*2,'20'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=21 ,zero*2,'21'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=22 ,zero*2,'22'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=23 ,zero*2,'23'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=24 ,MACD*2,'24'),colorred;//DRAWTEXT(BARSLASTCOUNT(a)=25 ,MACD*2,'25'),colorred;DRAWTEXT(BARSLASTCOUNT(a)=26 ,MACD*2,'26'),colorred;DRAWTEXT(BARSLASTCOUNT(b)=1 ,MACD*01.08,'1'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=2 ,MACD*01.08,'2'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=3 ,MACD*01.08,'3'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=4 ,MACD*01.08,'4'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=5 ,MACD*01.08,'5'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=6 ,MACD*01.08,'6'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=7 ,MACD*01.18,'7'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=8 ,MACD*01.18,'8'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=9 ,MACD*01.18,'9'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=10 ,MACD*01.18,'10'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=11 ,MACD*01.18,'11'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=12 ,MACD*01.18,'12'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=13 ,MACD*01.18,'13'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=14 ,MACD*01.18,'14'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=15 ,zero*1.18,'15'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=16 ,zero*01.18,'16'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=17 ,zero*01.18,'17'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=18 ,zero*01.18,'18'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=19 ,zero*01.18,'19'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=20 ,zero*01.18,'20'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=21 ,zero*01.18,'21'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=22 ,zero*01.28,'22'),colorgreen;//DRAWTEXT(BARSLASTCOUNT(b)=23 ,zero*01.28,'23'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=24 ,MACD*01.28,'24'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=25 ,MACD*01.28,'25'),colorgreen;DRAWTEXT(BARSLASTCOUNT(b)=26 ,MACD*01.28,'26'),colorgreen; |
|