福禄寿全--通达信主图源码
原创及版权.JIP.GEMLING.见凌见;TDX版} {福禄寿线(2,60,5);调福、禄、寿周期}; {牛熊界线(6,60,8~9);调牛熊周期}; {牛熊概念(0,1,1);开关牛熊概念线} A:=PERIOD;M:=牛熊界线;N:=福禄寿线;XY:=牛熊概念; 牛熊周期:IF(A=5,20*M,IF(A=6,4*M,IF(A=7,M,IF(A=9,6.67*M{多日=3日}, IF(A>=10,M/2,240{分时线暂设值}))))),COLOR1133DF,NODRAW; DF13:=(-1.0*REF(C,2)+0.5*REF(C,1)+1.5*C); DC:=SMA(DF13,3,1){一阶三点线性微、积,平滑中价}; ZD_MA:=MA(DC,牛熊周期); ZD_EMA:=EMA(DC,牛熊周期); STICKLINE(ZD_EMA>ZD_MA,ZD_EMA,ZD_MA,3,-1),COLOR1188FF; STICKLINE(ZD_EMA<ZD_MA,ZD_EMA,ZD_MA,3,-1),COLORGREEN; 福N:MA(DC,N),COLORDDBBAA; MA1M_4:=EMA(福N,2),COLORYELLOW; DRAWBAND(MA1M_4,RGB(10,123,30),福N,RGB(213,213,213)); 禄4N:MA(DC,4*N),COLORYELLOW; MA4M_4:=EMA(禄4N,2); DRAWBAND(MA4M_4,RGB(20,133,60),禄4N,RGB(230,202,121)); 寿12N:MA(DC,12*N),COLORDD33FF; MA12M_5:=EMA(寿12N,2); DRAWBAND(MA12M_5,RGB(30,143,120),寿12N,RGB(200,060,160)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 竹苞松茂!!:ZD_EMA,COLORGREEN; 熊短牛长??:IF(A<5 OR A=8,DRAWNULL,ZD_MA),COLOR1188EE; {牛熊概念线,定义系统;120日极限盈亏平衡线} KK:=DRAWNULL; X:=IF(A=5,120,IF(A=6,24,IF(A=7,6,IF(A=10,2,IF(A=4,480,KK))))); NXH:=IF(XY,IF(CAPITAL,HHV(MA(H,1{1~3}),X)*0.7,HHV(MA(H,1{1~3}),X)*0.8),KK); NXL:=IF(XY,IF(CAPITAL,LLV(MA(L,1{1~3}),X)*1.3,LLV(MA(L,1{1~3}),X)*1.2),KK); NXGN:IF(A<4,DRAWNULL,(NXH+NXL)/2),COLORRED,LINETHICK2; {点击看本软件截图: 58股票 公式网 http://www. 58gu. com 整理} |