、Yvonne ?
2024-12-23 02:12:42
最佳回答
第一个公式《通达信》 diff:= ema(close,12) - ema(close,26);dif:ema(close,12) - ema(close,26),colorred;dea:ema(dif,9),colorblue;macd:2*(dif-dea),colorstick;fh1:=ref(macd,1)[=0 and count(macd>ref(macd,1),1)=1;fh3:=fh1 and fh2 and ema(c,13)>ref(ema(c,13),1);fh4:=fh1 and fh2 and abs((dif-dea)/c)<0.018;fh5:=fh1 and fh2 and macd<0.10;vv:=close>open and ma(close,5)>ma(close,10) and ma(close,10)>ma(close,30)and diff>dea and macd>ref(macd,1) and diff>0 and dea>0 andma(vol,5)>ma(vol,34) and ma(close,30)>=ref(ma(close,30),1);佛手:if(vv,1,0),nodraw;drawicon(佛手,0.06,11);二次翻红:(fh3 or fh4 or fh5),colorred,nodraw;低买:cross(dif,dea) and dif<0,colorff00ff,nodraw; 加油:cross(dif,dea) and dif>0,coloryellow,nodraw;drawicon(二次翻红,-0.05,1);drawtext(二次翻红,-0.15,'↖翻红'),colorred;drawtext(cross(dif,dea) and dif<0,dea-0.02,'↖低买'),colorff00ff; drawtext(cross(dif,dea) and dif>0,dea-0.05,'↖加油'),coloryellow;xg:二次翻红 or 低买 or 加油,nodraw;ylzc:=if(close=indexc,(indexc+indexh+indexl+indexo)/4,amount/(vol+0.01)/100);阻价:=if(close=indexc,ylzc+indexc-indexl,ylzc+(close-low));支价:=if(close=indexc,indexl+indexc-ylzc,low+(close-ylzc));今压:ref(阻价,1),linethick0,coloraa11bb,nodraw;今撑:ref(支价,1),linethick0,color009900,nodraw;明压:阻价,linethick0,nodraw;明撑:支价,linethick0,nodraw; 第二个公式《通达信》 sqx:=(c-ma(close,13))*100; dif:ema(ma(sqx,7),1),linethick1; dea:ema(dif,7),linethick1; macd: (dif-dea)*2,colorstick; 红柱持股:if(macd>ref(macd,1),macd,draw**),stick,colorred,linethick1; 绿柱持币:if(macd][=0)); 二次金叉:if(cross(dif,dea) and dea<0 and count(jccount=2,21)=1,0.2,0),colorff00ff,pointdot; stickline(二次金叉,25,15,8,1),colorff00ff; a1:=barslast(ref(cross(dif,dea),1)); 底背离:if(ref(close,a1+1)>close and dif>ref(dif,a1+1) and cross(dif,dea),0.1,0),colorred,pointdot; stickline(底背离,40,30,8,1),colorred; drawline(a1=0,dea,底背离,dea,0),colorred; a2:=barslast(ref(cross(dea,dif),1)); 顶背离:ref(close,a2+1)dif and cross(dea,dif),colorgreen; drawline(a2=0,dea,顶背离,dea,0),colorgreen; a3:=cross(dif,dea) and dea<0; 零下二次金叉:if(filter(count(a3,21)=2,10),0.05,0),colorwhite,pointdot; stickline(零下二次金叉,45,55,8,1),colorwhite; 金叉:drawicon(cross(dif,dea),dif,1); 死叉:drawicon(cross(dea,dif),dif,2); 第三个公式 金牌macd《通达信》 diff:ema(close,12)-ema(close,27);dea:ema(diff,9);macd:=2*(diff-dea);stickline(macd>=0,macd,0,2,1),colorf00ff0;stickline(macd<0,macd,0,2,1),colorwhite;stickline(macd][0,0,macd,2,0 ),color00aaff;stickline(macd][0,0,macd,2,0 ),color00bbff;stickline(macd][0,0,macd,2,0 ),color00ccff;stickline(macd][0,0,macd,2,0 ),color00ddff;stickline(macd][0,0,macd,2,0 ),color00eeff;stickline(macd][0,0,macd,2,0 ),color00ffff;stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0000aa;stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0011bb;stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0022cc;stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0033dd;stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0044ee;stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0055ff;stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),coloraa00bb;stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),colorbb11bb;stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),colorcc22bb;stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),colordd33bb;stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),coloree44bb;stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),colorff55bb;stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffaa00;stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffbb11;stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffcc22;stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffdd33;stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffee44;stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffff55;if(diff<0,diff,0),colorred,linethick1;if(diff<0,0,diff),coloryellow,linethick1;if(diffdea,dea,dea),colorwhite,linethick1;低位金叉:=cross(diff,dea) and diff<-0.1;stickline(低位金叉,0,-0.18,2,0),coloryellow;drawtext(低位金叉,-0.1,' 低位金叉'),coloryellow;jccount:=count(cross(diff,dea),barslast(dea>=0));二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;stickline(二次金叉,0,-0.18,2,0),colorff00ff;drawicon(二次金叉,dea*1.04,13) ;drawtext(二次金叉,-0.1,' 二次金叉'),colorff00ff;a1:=barslast(ref(cross(diff,dea),1));底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);stickline(底背离,0,0.13,2,0),color00ff00;drawline(a1=0,dea,底背离,dea,0),colorred,linethick2;drawtext(底背离,0.1,' 底背离'),color00ff00;a2:=barslast(ref(cross(dea,diff),1));顶背离:=ref(close,a2+1)diff and cross(dea,diff);drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick2;第四个选股公式《通达信》 diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);jccount:=count(cross(diff,dea),barslast(dea>=0));二次金叉:cross(diff,dea) and dea<0 and count(jccount=2,21)=1; 20210311
]