1樓:友紳渡動漫
sqx:=(c-ma(close,13))*100; diff:ema(ma(sqx,7),1),color00ffff; dea:
ema(diff,7),colorff33ff; macd:(diff-dea)*2,colorstick; 低位金叉:if(cross(diff,dea) and diff<-0.
1,0.3,0),coloryellow,pointdot; stickline(低位金叉,0,15,8,0),coloryellow;drawicon(低位金叉,0.3,1); jccount:
=count(cross(diff,dea),barslast(dea>=0)); 二次金叉:if(cross(diff,dea) and dea<0 and count(jccount=2,21)=1,0.2,0),colorff00ff,pointdot; stickline(二次金叉,30,15,8,0),colorff00ff; a1:
=barslast(ref(cross(diff,dea),1)); 底背離:if(ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea),0.1,0),colorred,pointdot; stickline(底背離,45,30,8,0),colorred;drawline(a1=0,dea,底背離,dea,0),colorred; a2:
=barslast(ref(cross(dea,diff),1)); 頂背離:ref(close,a2+1)diff and cross(dea,diff),colorgreen; drawline(a2=0,dea,頂背離,dea,0),colorgreen; a3:=cross(diff,dea) and dea<0; 零下二次金叉:
if(filter(count(a3,21)=2,10),0.05,0),colorwhite,pointdot; stickline(零下二次金叉,45,60,8,0),colorwhite;
2樓:準星略高
n:=20;
gd:=c=hhv(c,n);
aa:=barslast(ref(gd,1));
ab:=ref(close,aa+1)macd;
m頂背離:=ab and ac;
count(m頂背離,n)>=2 and m頂背離;
求通達信15分鐘週期macd底背離的選股公式
3樓:匿名使用者
用日線的底背離公式,選擇15分鐘週期就可以了。
下圖是macd底背離選股指標日線勝率回測截圖
還有macd背離自動畫線指標截圖
4樓:匿名使用者
diff:=ema(close,12)- ema(close,26);
dea:=ema(diff,9);
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c andref(diff,a1+1)0;
5樓:準星略高
修正一下就好了。
diff:=ema(close,12)- ema(close,26);
dea:=ema(diff,9);
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)0;
6樓:孫氏**
用日線背離的就可以了。
求通達信日線macd底背離選股公式 5
7樓:匿名使用者
a1:=barslast(ref(cross(macd.dif,macd.dea),1));
macd底背:ref(c,a1+1)>c and ref(macd.dif,a1+1) (以前次金叉股價與現在金叉股價相比) 請真的高手做macd通達信的頂背離選股指標公式,要求附圖出現頂背離畫綠線的5天時間內,diff金叉dea選股 8樓:準星略高 diff:=ema(close,5)-ema(close,24); dea:=ema(diff,5); a2:=barslast(ref(cross(dea,diff),1)); 頂背離:=ref(close,a2+1)diff and cross(dea,diff); count(頂背離,5)>=1 and cross(diff,dea); 指標編 如果你想要的公式效果如下 可以聯絡我 由於字數限制 過長 背離時會畫線不背離時不會畫線,並且只提示最近的. diff ema close,12 ema close,27 dea ema diff,9 macd 2 diff dea colorstick,linethick2 低位金叉 cro... 量價奇緣 如何判斷底背離和頂背離 如何判斷macd的頂背離和底背離 廣發 當股價的低點比前一次的低點低,而此時macd的低點卻比前一次的低點高,這就是macd的底背離現象 相反,當股價的高點比前一次的高點高,而此時macd的高點卻比前一次的高點低,這就是macd的頂背離現象。 指標編 可以把背離做成... 這個畫線公式需要原始碼,以下是通達信畫線指標 引數設定 aa ref h,n hhv h,2 n 1 qy backset aa,n 1 cc filter qy,n and h hhv h,n 1 ddd barslast cc nodraw gdts if cc,currbarscount,0 ...求大智慧MACD底背離和頂背離公式
如何識別頂背離和底背離,如何判斷MACD的頂背離和底背離
求通達信畫線公式,求通達信畫線公式 30