dif:=ema(close,short)-ema(close,long);dea:=ema(dif,mid);macd:=(dif-dea)*2;ref(macd,1)<ref(macd,2) and macd>ref(macd,1) and macd>0;参数:long:26 short:12 mid:9别忘了加分哦。 20210311
dif:ema(close,12)-ema(close,26);dea:ema(dif,9);macd:(dif-dea)*2,colorstick;第一红:barslastcount(macd>0)=1;短后长:macd>0 and macd>ref(macd,1) and ref(macd,1)<ref(macd,2);试试吧。测试过了。
diff:ema(close,12)-ema(close,26);dea:ema(diff,9);macd:2*(diff-dea),colorstick;tj:=macd(macd,2)>ref(macd,1)and ref(macd,1)<macd;rf:=macd>0 and ref(macd,2)(macd,1)and ref(macd,1)>macd;stickl...
diff:=ema(close,12)-ema(close,26);{什么是diff,macd参数12,26,9} dea:=ema(diff,9);{什么是dea} macd:=2*(diff-dea);{什么是macd};macd>ref(macd,1){比较前面第1日} and ref(macd,1)>ref(macd,2);{比较前面第2日};