简单好用!东财通一主图和两个幅图加选股源码
<p>以下是简单好用!东财通一主图和两个幅图加选股源码(无源码的请下载附件导入)</p><div class="con" id="rjsmad1"></div>
<p>简单好用!东财通一主图和两个幅图加选股源码</p>
<p>源码</p>
<p>主图一个主图3个附图实战八胜</p>
<p>MAA5:MA(C,5),COLORFF00FF,LINETHICK2;<br>
MAA10:=MA(C,10);<br>
MAA30:MA(C,30),COLORRED;<br>
KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;<br>
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;<br>
A4:=SMA(A3,3,1);<br>
A5:=SMA(A4,3,1);<br>
A6:=3*A4-2*A5;<br>
A7:=C-REF(C,1);<br>
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);<br>
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));<br>
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;<br>
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;</p>
<p> </p>
<p> </p>
<p>金叉背离</p>
<p>A:=VOL*CLOSE;<br>
B:=SUM(A,1)/SUM(VOL,1);<br>
B1:=EMA(B,17);<br>
资金:=(B-B1)*100/B;<br>
DIFF : EMA(资金,5) - EMA(资金,34);<br>
DEA : EMA(DIFF,9);<br>
MACD : 2*(DIFF-DEA), COLORSTICK;<br>
STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;<br>
STICKLINE(MACD<0,MACD,0,3.1,1),COLORWHITE;<br>
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR00AAFF;<br>
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00BBFF;<br>
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.8,0 ),COLOR00CCFF;<br>
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.3,0 ),COLOR00DDFF;<br>
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.9,0 ),COLOR00EEFF;<br>
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR00FFFF;<br>
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;<br>
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;<br>
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;<br>
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;<br>
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;<br>
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;<br>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;<br>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;<br>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;<br>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;<br>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;<br>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;<br>
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;<br>
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;<br>
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;<br>
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;<br>
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;<br>
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;<br>
IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;<br>
IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;<br>
IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;<br>
IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;<br>
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;<br>
STICKLINE(低位金叉,0,-4.5,2,0),COLORYELLOW;<br>
DRAWTEXT(低位金叉,-4,' 低位金叉'),COLORYELLOW;<br>
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));<br>
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;<br>
STICKLINE(二次金叉,0,-2.5,5,0),COLORFF00FF;<br>
DRAWICON(二次金叉,DEA*1.2,11) ;<br>
DRAWTEXT(二次金叉,-2,' 二次金叉'),COLORFF00FF;<br>
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));<br>
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);<br>
STICKLINE(底背离,0,2.5,3,0),COLOR00FF00;<br>
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;<br>
DRAWTEXT(底背离,2,' 底背离'),COLOR00FF00;<br>
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));<br>
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);<br>
STICKLINE(顶背离,0,4.5,3,0),COLORFFFF00;<br>
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFFF00,LINETHICK2;<br>
DRAWTEXT(顶背离,4,' 顶背离'),COLORFFFF00;</p>
<p> </p>
<p><br>
低位金叉</p>
<p><br>
A:=VOL*CLOSE;<br>
B:=SUM(A,1)/SUM(VOL,1);<br>
B1:=EMA(B,17);<br>
资金:=(B-B1)*100/B;<br>
DIFF:=EMA(资金,5) - EMA(资金,34);<br>
DEA:=EMA(DIFF,9);<br>
低位金叉:CROSS(DIFF,DEA) AND DIFF<-0.1;</p>
<p></p>
页:
[1]