分时买点决策系统(大智慧)

input:N(60,1,111);

a1:=INDEXC;

a2:=INDEXO;

a3:=DISPstATUS=1;

a4:=BArslAST(a3);

a5:=(REF(a1,a4))/(REF(CLOSE,a4));

a6:=IF(a3,CLOSE,(REF(CLOSE,a4)));

a7:=IF(a3,(a1/a5),(REF((a1/a5),a4)));

a8:=a6-a7;

a9:=a2/a5;

a10:=INDEXH/a5;

a11:=INDEXL/a5;

a12:=(CLOSE>OPEN)OR((CLOSE=OPEN)AND(CLOSE>(REF(CLOSE,1))));

a13:=(a1>a2)OR((a1=a2)AND(a1>(REF(a1,1))));

大盘:STICKLINE(a13,(a10 +a8),(a11 +a8),0,0),colorRed;

STICKLINE(a13,((a1/a5) +a8),(a9 +a8),5,0),colorRed;

STICKLINE(NOT(a13),(a11+a8),(a10+a8),0,0),colorGreen;

STICKLINE(NOT(a13),((a1/a5)+a8),(a9+a8),5,0),colorGreen;

PARTLINE(CLOSE,CLOSE>(a1/a5),RGB(255,0,0)),linethick2,colorRed;

PARTLINE(CLOSE,CLOSE>(a1/a5)AND(CLOSE<(REF(CLOSE,1))),RGB(255,0,255)),linethick2,colorMagenta;

PARTLINE(CLOSE,(CLOSE>(a1/a5)AND((MA(CLOSE,30))>(REF((MA(CLOSE,30)),1))))AND((MA((a1/a5),30))<(REF((MA((a1/a5),30)),1))),RGB(255,255,0)),linethick2,colorYellow;

STICKLINE((((REF(a1,1))<(REF(a2,1))) AND(a1>(REF(a1,1)))),((a1/a5)+a8),CLOSE,1,1),Color606060;

STICKLINE((((REF(a1,1))>(REF(a2,1)))AND(a1<(REF(a1,1)))),((a1/a5)+a8),CLOSE,1,1),Color606060;

a14:=MA(CLOSE,10);

a15:=(((EMA(CLOSE,5))*7)+((EMA(CLOSE,10))* 3))/10;

a16:=((SMA((MAX((CLOSE-(REF(CLOSE,1))),0)),6,1))/(SMA(Abs((CLOSE-(REF(CLOSE,1)))),6,1)))* 100;

DRAWTEXT(((DATE >700101)AND(crOSS(84,a16))),HIGH,'▼'),colorGreen;

a17:=(((2*CLOSE)+HIGH)+LOW)/4;

a18:=LLV(LOW,34);

a19:=HHV(HIGH,34);

a20:=EMA((((a17-a18)/(a19-a18))*100),6);

a21:=EMA(((0.667*(REF(a20,1)))+(0.333*a20)),4);

a22:=LLV(LOW,120);

a23:=HHV(HIGH,120);

a24:=a23-a22;

a25:=HHVBARS(CLOSE,N);

REF(CLOSE,a25),POINTDOT,ColorFF0000;

突破:FILTER(((CROSS(CLOSE,((REF(REF(CLOSE,a25),1))*1.001)))AND(REF((a25>= 5),1))),10),POINTDOT,linethick0;

STICKLINE(突破,(CLOSE*0.99),CLOSE,5,0),ColorF600A9;

DRAWTEXT((((SUM((突破>0),0))=1)AND 突破),(CLOSE*0.99),'最佳买点'),colorWhite;

DRAWTEXT((((SUM((突破>0),0))=2)AND 突破),(CLOSE*0.99),'次佳买点'),colorWhite;

DRAWTEXT((((SUM((突破>0),0))=3)AND 突破),(CLOSE*0.99),'理想买点'),colorWhite;

DRAWTEXT((((SUM((突破> 0),0))=4)AND 突破),(CLOSE * 0.99),'及格买点'),colorWhite;

DRAWTEXT((((SUM((突破> 0),0))>=5) AND 突破),(CLOSE * 0.99),'突破'),colorWhite;

a26:=(CLOSE<(a1/a5))AND(CROSS(80,a16));

DRAWICON(a26,CLOSE,8);

DRAWICON((CLOSE>(a1/a5)AND(CROSS(a16,17))),CLOSE,7);

DRAWICON((CROSS(a16,10)),CLOSE,7);

DRAWICON((CROSS(90,a16)),CLOSE,8);

DRAWICON((CROSS(CLOSE,(a1/a5))),CLOSE,11);

DRAWTEXT(((IF(((((((COUNT((CLOSE<(REF(CLOSE,1))),8))/8)>0.3) AND(COUNT((a20>a21),3)))AND((REF(LOW,1))=a22))AND(CLOSE> OPEN)),1,0))AND(CROSS(a16,15))),LOW,'小底'),ColorFF8080;

a27:=DYNAINFO(3);

a28:=SMA(CLOSE,2,1);

a29:=SMA(CLOSE,6,1);

a30:=2*(a28-a29);