TAG:公式 预警

 网友求助:

帮写个融胜轨道的预警,轨道公式:

CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,CIRCLEDOT,COLOR0099FF;
下:(1-7/100)*DD,CIRCLEDOT,COLOR0099FF;
中:(上+下)/2,CIRCLEDOT,COLOR0099FF;

要求5天内以涨停突破上轨后回踩上轨上下1%的预警

 

 

解答如下:

CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:=(1+7/100)*DD;
TPSG:=C>=REF(C,1)*1.095 AND C=H AND CROSS(C,上);
HTSJ:=BARSLAST(TPSG);
CROSS(上,L) AND C>MA(C,上) AND ABS((C-上))/上*100<=1 AND HTSJ>1 AND HTSJ<=5;