虞美人的主买资金,俺翻为通达新的,这是千均为她改的排序用的,用法,未来函数等千均可能知道,大家可向千均请教
R:=DYNAINFO(3);
HH:=DYNAINFO(5);
LL:=DYNAINFO(6);
F:=MAX(HH-R,R-LL);
Q1:=R-F*10.01;
Q2:=R-2*F*10.0125;
LOWV:=LLV(C,15);
HIGHV:=HHV(C,15);
RSV:=EMA((C-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
中趋势线:=3*SMA((C-LLV(C,27))/(HHV(C,27)-LLV(C,27))*100,5,1)-2*SMA(SMA((C-LLV(C,27))/(HHV(C,27)-LLV(C,27))*100,5,1),3,1);
长趋势线:=3*SMA((C-LLV(C,55))/(HHV(C,55)-LLV(C,55))*100,5,1)-2*SMA(SMA((C-LLV(C,55))/(HHV(C,55)-LLV(C,55))*100,5,1),3,1);
STICKLINE(长趋势线>=90,Q1,Q2,10,0),COLORMAGENTA;
STICKLINE(长趋势线<=10,Q2,Q1,10,0),COLORCYAN;
STICKLINE(中趋势线>=90,Q1,Q2,10,0),COLORRED;
STICKLINE(中趋势线<=10,Q1,Q2,10,0),COLORBLUE;
A1:=BARSLAST(REF(CROSS(K,D),1));
B1:=REF(DYNAINFO( 7),A1+1)>DYNAINFO( 7) AND REF(K,A1+1)<K AND CROSS(K,D) AND K<30;
C1:=BARSLAST(REF(CROSS(D,K),1));
D1:=REF(DYNAINFO( 7),C1+1)<DYNAINFO( 7) AND REF(K,C1+1)>K AND CROSS(D,K) AND K>70;
红:=IF(中趋势线>=90,Q1,0);
蓝:=IF(中趋势线<=10,Q1,0);
ZH:=BARSCOUNT(C)+1;
前红柱:SUM(红,0),LINETHICK0,COLORRED;
HGS:COUNT(中趋势线>=90,0),LINETHICK0;
MAH:MA(前红柱,5);
MAH1:MA(MAH,2);
DRAWTEXT(CROSS(MAH,MAH1),MAH,'加'),COLORYELLOW;
DRAWICON(MAH>REF(MAH,1) AND MAH>MAH1 AND REF(MAH,1)<=REF(MAH,2), MAH,1);
用法美人不肯说,大家研究
TDX本来就不是用来看分时的,搞嫁接也要先选好品种嘛,你看你把这么美的指标搞得多难看。 [/quote]
难看,呵呵,排序的难看,美人资金好看,源码
KK:=(H+L+C+O)/4;
N:=IF(KK=6,10,0);
中趋势线:=3*SMA((C-LLV(C,27))/(HHV(C,27)-LLV(C,27))*100,5,1)-2*SMA(SMA((C-LLV(C,27))/(HHV(C,27)-LLV(C,27))*100,5,1),3,1);
长趋势线:=3*SMA((C-LLV(C,55))/(HHV(C,55)-LLV(C,55))*100,5,1)-2*SMA(SMA((C-LLV(C,55))/(HHV(C,55)-LLV(C,55))*100,5,1),3,1);
Q2H:=L;
Q2L:=L-(H)-L*0.2;
Q1:=Q2H;Q2:=Q2L;
限制当日:=BARSLAST(DATE>REF(DATE,1))+1;
品红总时:=SUM(长趋势线>=90 ,限制当日+N),COLORMAGENTA,LINETHICK;
青色总时:=SUM(长趋势线<=10 ,限制当日+N),COLORCYAN,LINETHICK;
红色总时:=SUM(中趋势线>=90 ,限制当日+N),COLORRED,LINETHICK;
蓝色总时:=SUM(中趋势线<=10 ,限制当日+N),COLORBLUE,LINETHICK;
品%:品红总时/(品红总时+青色总时+红色总时+蓝色总时)*100,COLORMAGENTA,LINETHICK;
青%:青色总时/(品红总时+青色总时+红色总时+蓝色总时)*100,COLORCYAN,LINETHICK;
红%:红色总时/(品红总时+青色总时+红色总时+蓝色总时)*100,COLORRED,LINETHICK;
蓝%:蓝色总时/(品红总时+青色总时+红色总时+蓝色总时)*100,COLORBLUE,LINETHICK;
STICKLINE(1,Q1,Q2,10,0),COLORBLACK;
STICKLINE(长趋势线>=90,Q1,Q2,10,0),COLORMAGENTA;
STICKLINE(长趋势线<=10,Q2,Q2+(Q1-Q2)*3/4,10,0),COLORCYAN;
STICKLINE(中趋势线>=90,Q2+(Q1-Q2)*2/4,Q2,10,0),COLORRED;
STICKLINE(中趋势线<=10,Q2+(Q1-Q2)*1/4,Q2,10,0),COLORBLUE;
|