编写条件:
编写方法:
网友求助:
轨道公式中股价连续5天或5天以上在中轨之上的选股
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,colorred,LINETHICK2;
下:(1-7/100)*DD,colorgreen,LINETHICK2;
中:(上+下)/2,colorcyan,LINETHICK2;
解答如下:
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
XG:COUNT(C>=中,5)=5;