01.均价线:=AMOUNT/V/100;
02.C2:=REF(C,1);
03.涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
04.STICKLINE(涨停,0,5,6,0),COLORYELLOW;
05.DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;
06.
07.MA13:=MA(C,13),COLORGRAY;
08.MA21:=MA(C,21),COLORWHITE;
09.支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
10.
11.LC:=REF(CLOSE,1);
12.操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
13.趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
14.震仓线:=45;
15.震仓线2:=50;
16.逃命线:=80;
17.抄底线:=20;
18.绝底线:=5;
19.
20.PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
21.PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
22.PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
23.
24.HH:=COUNT(涨停,13)>=1;
25.STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;
26.STICKLINE(PP AND HH,0,5,3,0),COLORRED;
27.STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;
28.DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED;
29.DRAWTEXT(PP AND HH,8,'预警'),COLORRED;
30.DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED;
31.
32.A:=SMA(L,4,3) ;
33.绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 );
34.STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN;
35.DRAWICON(A AND REF(PP,1) AND HH,12,1);
36.STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN;
37.DRAWICON(A AND REF(PP3,1) AND HH,12,1);
本文来自: 股海明灯 详细文章参考:http://www.178448.com/thread-316982-1-1.html |