TAG:趋势线

 网友求助:

请老师帮忙:当MA5<MA30时,趋势线变绿色,谢谢!!!
MA5:=MA(C,5);
MA30:=MA(C,30);
趋势线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100,COLORred;
 

 

解答如下:

MA5:=MA(C,5);
MA30:=MA(C,30);
趋势线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100,COLORred;
PARTLINE(趋势线,趋势线>ref(趋势线,1),rgb(255,0,0),趋势线<REF(趋势线,1),rgb(0,225,0));