diff=ema(close,12)-ema(close,26);dea=ema(diff,9);t1:=macd>0 and macd-dea>0.03;t2:=diff-dea>1.0;if(26>12) { if(t1=1 and ref(t1,1)=0) buy;if(t2=1 and ref(t2,1)=0) sell;} 没明白这买卖依据,macd指标是均线类指...
我能编出来。不难。只是有疑问。你对于第一根k线的中阳线或大阳线的涨幅是要求多少%? st:=ref(close,1)/ref(open,1);w1:=st>1.03 and close/open>1 and close/open<st;w2:=open>ref(open,1) and close>ref(close,1);w3:=high<ref(high,1)...