以下是通达信资金均线指标公式(无源码的请下载附件导入)
流通:=(AMOUNT / VOL);
VAR1:=(C-REF(C,1))*流通;
LLJX:=SMA(VAR1 ,9 , 1);
资金流量:=LLJX,LINETHICK0;
MA5:MA(LLJX,5),LINETHICK2;
MA20:MA(资金流量,20),LINETHICK2;
MA40 :MA(资金流量,40),LINETHICK2;
MA60:MA(资金流量,60),LINETHICK2;
BOLL:=MA(MA5,20);
UPPER:BOLL+2*STD(MA5,20),COLORYELLOW;
LOWER:BOLL-2*STD(MA5,20),COLORYELLOW;
STICKLINE( MA5>=REF(MA5,1),MA5,REF(MA5,1),5,0),COLORRED;
STICKLINE(MA5<REF(MA5,1) , MA5 ,REF(MA5,1) ,5 , 1),COLORGREEN;
STICKLINE(MA20>=REF(MA20,1),MA20 ,REF(MA20,1) ,5 , 0),COLORFF00FF;
STICKLINE(MA20<REF(MA20,1) ,MA20 ,REF(MA20,1) ,5, 0),COLORGREEN;
STICKLINE( MA40>=REF(MA40,1),MA40,REF(MA40,1),5,1),COLORYELLOW;
STICKLINE(MA40<REF(MA40,1) , MA40 ,REF(MA40,1) ,5 , 1),COLORWHITE;
STICKLINE(MA60>=REF(MA60,1),MA60 ,REF(MA60,1) ,5 , 1),COLORFF00FF;
STICKLINE(MA60<REF(MA60,1) ,MA60 ,REF(MA60,1) ,5, 1),COLORCYAN;
DRAWTEXT(ISLASTBAR,MA5,'----5'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,MA20,'-----20'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,MA40,'--------40'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,MA60,'-----------60'),COLORYELLOW;
81266801.jpg
|