ihzx 发表于 2021-8-22 15:48:18

东财通MACD优化自编副图源码

<p>以下是东财通MACD优化自编副图源码(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p>东财通MACD优化自编副图源码</p>
<p>{MACD优化自编}<br>
DIFF:MA(CLOSE,12)-MA(CLOSE,26),COLORFFFFFF,LINETHICK2,COLORFF7F00;<br>
DEA:MA(DIFF,9),COLOR00FFFF,LINETHICK2,COLORFF7F00;<br>
DRAWBAND(DIFF,RGB(155,50,50),DEA,RGB(0,100,50));<br>
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK1;<br>
抄底:IF((TROUGHBARS(3,15,1)=0) AND (HIGH&gt;LOW+0.01),0.15,(-0)),COLOR00FF00,LINETHICK1;<br>
中区:0,COLORYELLOW,LINETHICK1;<br>
动力:MA(MACD,5),COLORYELLOW,LINETHICK2;<br>
主动:IF(MACD&gt;=动力 AND 动力&lt;=中区,动力,DRAWNULL),COLORYELLOW,LINETHICK2;<br>
主拉:IF(动力&gt;=中区,动力,DRAWNULL),COLORRED,LINETHICK2;<br>
翻空:IF(动力&lt;中区 AND 动力&gt;MACD,动力,DRAWNULL),COLORGREEN,LINETHICK2;<br>
中区10:0,COLORFFFF00,LINETHICK1;<br>
动力10:MA(MACD,10),COLORFFFF00,LINETHICK2;<br>
主动10:IF(MACD&gt;=动力10 AND 动力10&lt;=中区10,动力10,DRAWNULL),COLORFFFF00,LINETHICK2;<br>
主拉10:IF(动力10&gt;=中区10,动力10,DRAWNULL),COLORFF43B9,LINETHICK2;<br>
翻空10:IF(动力10&lt;中区10 AND 动力10&gt;MACD,动力10,<br>
DRAWNULL),COLOR00FF00,LINETHICK2;<br>
STICKLINE(MACD&gt;REF(MACD,1) AND MACD&gt;0,0,MACD,1,0),COLORRED;<br>
STICKLINE(MACD&gt;REF(MACD,1) AND MACD&lt;0,0,MACD,1,0),COLORRED;<br>
STICKLINE(MACD&lt;REF(MACD,1) AND MACD&gt;0,0,MACD,1,0),COLORGREEN;<br>
STICKLINE(MACD&lt;REF(MACD,1) AND MACD&lt;0,0,MACD,1,0),COLORGREEN;<br>
沉:IF(DIFF&gt;=DEA,DIFF,DRAWNULL),COLORRED;<br>
着:IF(DEA&gt;=DIFF,DEA,DRAWNULL),COLORFF9900;<br>
冷:IF(DIFF&gt;=DEA,DEA,DRAWNULL),COLOR00FFFF;<br>
静:IF(DEA&gt;=DIFF,DIFF,DRAWNULL),COLOR00FF00;<br>
AA:=BARSLAST(REF(CROSS(DIFF,DEA),1));<br>
BB:=REF(CLOSE,AA+1)&gt;CLOSE AND DIFF&gt;REF(DIFF,AA+1) AND CROSS(DIFF,DEA);<br>
乐:DRAWLINE(AA=0,DEA,BB,DEA,0),COLOR0000FF;<br>
STICKLINE(BB,-0.2,0.2,0,1),COLORFFFFFF;<br>
主升: DIFF&gt;0 AND DIFF&gt;DEA,COLOR0000FF,POINTDOT,NODRAW;<br>
STICKLINE(主升,DIFF,DEA,5,0),COLORFF00FF;<br>
DRAWICON(CROSS(DIFF,DEA),DIFF,1);<br>
DRAWICON(CROSS(DEA,DIFF),DEA,2);</p>
<p></p>
页: [1]
查看完整版本: 东财通MACD优化自编副图源码