MACD背离指标公式
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
主升浪骑马
M1:EMA(CLOSE,5),COLORYELLOW;
M2:EMA(CLOSE,13),COLORWHITE,LINETHICK1;{MA=13日红线}
M3:EMA(M2,34),COLORLIMAGENTA,LINETHICK1;{MA=34日绿线}
M4:EMA(M2,55),COLORBLUE,LINETHICK1;{MA=55日红线}
M5:EMA(CLOSE,114),COLORLIGREEN,LINETHICK2;
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
STICKLINE(C
STICKLINE(C
STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C>TYX5 AND C STICKLINE(C>TYX5 AND C STICKLINE(C>TYX5 AND C STICKLINE(C>TYX5 AND C STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF; STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF; STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF; STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF; STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA; STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF; STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF; STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF; STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD; STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099; STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB; STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD; STICKLINE(HIGH=LOW AND CLOSE=OPEN AND (CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,3,0) ,COLORRED; STICKLINE(HIGH=LOW AND CLOSE=OPEN AND (REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,3,0) ,COLOR00FF00; STICKLINE(REF(COUNT(C (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1); DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2); AZ6:=(3 * (SMA((((CLOSE - (LLV(LOW,27))) / ((HHV(HIGH,27)) - (LLV(LOW,27)))) * 100),5,1))) - (2 * (SMA((SMA((((CLOSE - (LLV(LOW,27))) / ((HHV(HIGH,27)) - (LLV(LOW,27)))) * 100),5,1)),3,1))); B7:=(10); DRAWTEXT(CROSS(AZ6,B7),L,'←底'),COLORYELLOW; VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)); VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)); DRAWTEXT((VARC=1),L,'←朝霞'),COLOR0000FF; DRAWTEXT((VARD=1),H,'←跑'),COLOR00FF00; HZ:=EMA(CLOSE,10); 短波:=EMA(HZ,1),COLORRED,LINETHICK1; 中波:=EMA(HZ,26),COLORFF00FF,LINETHICK1; 均线148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN; 成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW ,LINETHICK2 ; HZ2:=EMA(HZ,8),COLORRED,LINETHICK2; HZ4:=EMA(HZ,39),COLORGREEN,LINETHICK2; A2:=STICKLINE(短波>HZ2,短波,HZ2,3,1),COLORYELLOW; A3:=STICKLINE(中波>HZ4,中波,HZ4,3,1),COLORGREEN; 买入:=IF(CROSS(短波,HZ2),C,0); DRAWTEXT(买入>0,LOW*0.92,'买入'),COLORYELLOW; {MA60: MA(CLOSE, 60),COLORFF00FF,POINTDOT,LINETHICK1;} VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA(( CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA(( OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR11:=VARFREF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.83,'大资金'),LINETHICK1,COLORWHITE; VAR12:=(HIGH+LOW+CLOSE)/3; VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14)); VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70)); VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15); VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR18:=100-ABS(VAR17); VAR19:=IF(VAR18<90,VAR18,100); VAR1A:=IF(VARE>0,VARE,0); VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60; VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100; DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.94,'大笔成交') COLORWHITE; X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120)); DRAWTEXT(X,MA(C,120)-0.07,'牛股'),COLORRED; VAR111:=MA(LOW,1);