編寫要求: 日K:KDJ.K#DAY; 日D:KDJ.D#DAY; 日J:KDJ.J#DAY; LX1:=(EMA((AMOUNT/10000000),1) /3); LX2:=(WINNER(C)/0.3); LX3:=IF(C<0,LX1,V); LX4:=IF(C<0,LX2,V); LX5:=IF((BARSCOUNT(C)>100),LX3,LX4); 量:=LX5/1000; 動量:=(EMA(量,13)*1.5); A01:=IF((量>動量),量,0); A02:=BARSLAST((A01>0)); A03:=REF(量,A02); 趨勢:=IF((量<=A01),量,A03); 突破:=IF(((((量=趨勢) AND (C>REF(C,1))) AND (量>REF(量,1))) AND (REF(A02,2)>0)),888,0); 量價突破:FILTER(突破 ,5 )*6; A1:="KD.K"(9,3,3); A2:="KD.D"(9,3,3); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 周K:MA("KDJ.K#WEEK"(9,3,3) ,5); 周D:MA("KDJ.D#WEEK"(9,3,3) ,5); 周J:MA("KDJ.J#WEEK"(9,3,3) ,5); DRAWTEXT(CROSS("KDJ.K#WEEK"(9,3,3),"KDJ.D#WEEK"(9,3,3)),20,'好馬'); DRAWTEXT(CROSS("KDJ.D#WEEK"(9,3,3),"KDJ.K#WEEK"(9,3,3)),100,'賣馬'); 0; STICKLINE( 周J>REF(周J,1)AND 周K>周D,0 ,20 ,10 ,0 ),COLORRED; STICKLINE( 周J周D,0 ,20 ,10 ,0 ),COLORGREEN; DRAWTEXT(CROSS(周K,周D),周J*1.03,'金叉有中線行情'),COLORYELLOW; 股旁網(wǎng)解答: 日K:=KDJ.K#DAY; 日D:=KDJ.D#DAY;
周K:=MA("KDJ.K#WEEK"(9,3,3) ,5);
周D:=MA("KDJ.D#WEEK"(9,3,3) ,5);
XG:COUNT(CROSS(周K,周D) AND CROSS(日K,日D),3)=1;
|
|