?
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
底背離:macd<0 and ref(macd,1)<0 and diff>ref(diff,1) and l<ref(l,1);
頂背離:macd>0 and ref(macd,1)>0 and diff<ref(diff,1) and h>ref(h,1);
?
謝謝金老師,怎樣把頂背離,底背離寫到背離點上?
?
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
底背離:macd<0 and ref(macd,1)<0 and diff>ref(diff,1) and l<ref(l,1);
頂背離:macd>0 and ref(macd,1)>0 and diff<ref(diff,1) and h>ref(h,1);
drawtext(底背離,macd,'底背離');
drawtext(頂背離,macd,'頂背離');
?
?
?
怎樣實現區間的llv(diff)與ref(llv(diff),1)的比較?