参数n是粘合幅度,40是我随便设置的,没有任何意义,你需要按照自己的需求设置. 参数m是粘合周期5,也可以随便设置. n:=40;m:=5;dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);t1:=count(dif>0 and dea>0 and max(dif,dea)/min(dif,dea),m)=m;xg:ref(t1,1)=1...
macd黄白线即将0轴dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);dif<0 and dea<0 and dif+0.1>=0 and dea+0.1>=0 and upnday(dif,3); 当diff由下往上穿越0轴的时候,表个多头的扬升即将开始,市场的性质将由连续下跌的空头市进入到不断上升的多头市场头市场。上穿...
最好依据公式:diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);a0:=cross(diff,dea);a:=a0 and diff<0;ft:=barslast(a);b:=count(a0,ft);第二个金叉:diff>0 and dea>0 and a0 and b<2;编写周日同时二次金叉的公式。