斋主MACD通道(成本区、波段底)指标公式源码.docx
《斋主MACD通道(成本区、波段底)指标公式源码.docx》由会员分享,可在线阅读,更多相关《斋主MACD通道(成本区、波段底)指标公式源码.docx(14页珍藏版)》请在三一办公上搜索。
1、【通达信】斋主MACD通道(成本区、波段底、加仓)-指标公式源码DIF:=EMA(CLOSE,60)-EMA(CLOSE,130);DEA:=EMA(DIF,45);MACD:=(DIF-DEA)*2,COLORSTICK;MACDRC:=DYNAINFO(3)*1.1;DK:=MACD*2;STICKLINE(DK0 AND DKREF(DK,1),DK+RC,RC,0.05,1),COLORLIBLUE;STICKLINE(DKREF(DK,1),DK+RC,RC,0.05,1),COLORWHITE;STICKLINE(DKREF(DK,1) AND DK0,DK+RC,RC,0.05,
2、1),COLORRED;STICKLINE(DK0,DK+RC,RC,0.05,1),COLOR00FF00;VAR4S:=(2*CLOSE+HIGH+LOW)/4;成本区:EMA(VAR4S,90)*0.995,COLORYELLOW,POINTDOTCIRCLEDOT;GJZ:=(C+H+L+O)/4;阻Z:=L+(GJZ-L)+(C-L);支Z:=L+(C-GJZ);NN:=100;高点:=CONST(HHV(H,NN);低点:=CONST(LLV(L,NN);明日阻力:=L+(GJZ-L)+(C-L);明日支撑:=L+(C-GJZ);明日阻力2:=L+2*(GJZ-L)+(C-L);明
3、日支撑2:=L+(C-GJZ)-(GJZ-L);今日阻力:=CONST(REF(明日阻力 , 1),NODRAW;今日支撑:=CONST(REF(明日支撑 , 1),NODRAW;今日阻力2:=CONST(REF(明日阻力2 , 1),NODRAW;今日支撑2:=CONST(REF(明日支撑2 , 1),NODRAW;STICKLINE(ISLASTBAR,今日阻力,今日阻力2,20,0),COLORGRAY;STICKLINE(ISLASTBAR,今日支撑,今日支撑2,20,0),COLORGRAY;MA60:=MA(CLOSE,60),COLORCYAN,LINETHICK2;MA120:
4、=MA(CLOSE,120),COLORCYAN,LINETHICK2;LC:=REF(CLOSE,1); VAR28Z:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;VARA00:=(AMOUNT)/(VOL)/(100);VARAB00:=(3)*(HIGH)+LOW+OPEN+(2)*(CLOSE)/(7);VARAC00:=(SUM(AMOUNT,7)/(VARA00)/(100);VARD0:=DMA(VARAB00,(VOL)/(VARAC00);VARDE0:=(CLOSE-VARD0)/(VARD0)*(100);
5、VARDE0F:=(CLOSE-LLV(LOW,34)/(HHV(HIGH,34)-LLV(LOW,34)*(100);VARDE0JF:=MA(VARDE0,20)+STD(VARDE0,20);BIAS18:=(CLOSE-MA(CLOSE,18)/(MA(CLOSE,18)*(100);AA:=SMA(VARDE0F,3,1);SS:=(REF(BIAS18,1)=5) AND CROSS(VARDE0JF,VARDE0) AND (AA79);中轨:=MA(CLOSE,34)NODRAW;上轨:=中轨*1.0618,CIRCLEDOT,COLORFF6600;下轨:=中轨*0.89,C
6、IRCLEDOT,COLOR6C6CFF;顶轨:=中轨*1.191,COLORGREEN;底轨:=中轨*0.809,COLORYELLOW;DRAWBAND(中轨,RGB(250,150,0),REF(中轨,2),RGB(00,50,200);DRAWBAND(顶轨,RGB(200,50,51),REF(顶轨*1.005,1),RGB(0,160,100);DRAWBAND(底轨,RGB(200,50,51),REF(底轨*0.995,1),RGB(0,160,100);DRAWBAND(上轨,RGB(60,60,0),上轨*1.005,RGB(50,100,60);DRAWBAND(下轨,R
7、GB(50,100,60),下轨*0.995,RGB(60,60,0);VA1:=CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,2); VA2:=REF(VA1,1) AND CLOSE=REF(CLOSE,2); VA3:=REF(VA2,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA4:=REF(VA3,1) AND CLOSE=REF(CLOSE,2); VA5:=REF(VA4,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA6:=REF(VA5
8、,1) AND CLOSE=REF(CLOSE,2); VA7:=REF(VA6,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA8:=REF(VA7,1) AND CLOSE=REF(CLOSE,2); VA9:=REF(VA8,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VAA:=REF(VA9,1) AND CLOSE=REF(CLOSE,2); VAB:=REF(VAA,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VAC
9、:=REF(VAB,1) AND CLOSE=REF(CLOSE,2); STICKLINE(VA1 OR VA2 OR VA3 OR VA4 OR VA5 OR VA6 OR VA7 OR VA8 OR VA9 OR VAA OR VAB OR VAC,CLOSE,REF(CLOSE,1),3,0),COLORRED;VAD:=CLOSEREF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VAF:=REF(VAE,1) AND CLOSE=REF(CLOSE,2); VA10:=REF(VAF,1) AND CLOSE=RE
10、F(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA11:=REF(VA10,1) AND CLOSE=REF(CLOSE,2); VA12:=REF(VA11,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA13:=REF(VA12,1) AND CLOSE=REF(CLOSE,2); VA14:=REF(VA13,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA15:=REF(VA14,1) AND CLOSE=REF(CLOSE,2); VA16:=REF
11、(VA15,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); VA17:=REF(VA16,1) AND CLOSE=REF(CLOSE,2); VA18:=REF(VA17,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2); STICKLINE(VAD OR VAE OR VAF OR VA10 OR VA11 OR VA12 OR VA13 OR VA14 OR VA15 OR VA16 OR VA17 OR VA18,CLOSE,REF(CLOSE,1),3,0),COLORLIBLUE;
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 斋主 MACD 通道 本区 波段 指标 公式 源码
链接地址:https://www.31ppt.com/p-1794573.html