编写要求:
公式指标网解答:
网友求助:
指标如下:
TR:= EMA(EMA(EMA(CLOSE,N),N),N);
TRIX: (TR-REF(TR,1))/REF(TR,1)*100;
TRMA1: MA(TRIX,x);
TRMA2 : MA(TRIX,m);
我自己做了下不显示
DRAWTEXT(CROSS (TRIX,1)<-0.015 AND TRIX>TRMA1 AND TRMA2>TRIX ,'短买'),COLOR00FF00;
解答如下:
DRAWTEXT(CROSS(TRIX,-0.015) AND CROSS(TRIX,TRMA1) and TRMA2>ref(CROSS(TRIX,TRMA1),1),trix,'短买'),COLOR00FF00;