此源码为通达信,贴图为飞狐,此指标仅仅供参考,决策在人脑。持股线到持币线区间为观察区间。跌破持币线应当止损出局。跌破持股线应当先减仓再说。 DH:=(MIN(C,O)+2*H)/3;XL:=(MAX(C,O)+2*l)/3; 重心:=(DH+XL)/2; 均价:=AMOUNT/(VOL*100); 折价:=if(INDEXC=C,(重心+2*c)/3,(重心+均价+C)/3); LB:=((SUM(v,12)/SUM(v,72)+sum(v,24)/SUM(v,72)+SUM(v,36)/SUM(v,72))/3+(SUM(v,6)/SUM(v,36)+sum(v,12)/SUM(v,36)+SUM(v,18)/SUM(v,36))/3+(SUM(v,3)/SUM(v,18)+SUM(v,6)/SUM(v,18)+SUM(v,9)/SUM(v,18))/3)/3; TYP:=DMA(折价-REF(折价,1),LB); DM:=ema(Dma(折价,(sum(VOL,3)/(SUM(AMOUNT,18)/(MA(均价,18)*100)))),18); XM:=ema(Dma(折价,(sum(v,6)/(SUM(AMOUNT,18)/(MA(均价,18)*100)))),18); XMM:=ema(Dma(折价,(sum(v,9)/(SUM(AMOUNT,18)/(MA(均价,18)*100)))),18); 多空线:=(DM+XM+XMM)/3; 持股线:HHV(多空线+TYP,48),COLORRED; 持币线:LLV(多空线+TYP,24),COLORGREEN; 观察线:(持股线+持币线)/2,COLORWHITE,DOTLINE; IF(C<持股线,持股线,DRAWNULL),COLORCYAN; IF(C>持币线,持币线,DRAWNULL),COLORMAGENTA; |
