MA5:EMA(CLOSE,5);
MA10:EMA(C,10);
MA20:EMA(CLOSE,20);
VAR1A:=(REF(HIGH,1)+REF(LOW,1))/2;
压力线:MA(CLOSE,20)+2*STD(CLOSE,20);
支撑线:MA(CLOSE,21)-2.2*STD(CLOSE,21),COLORYELLOW;
VAR2A:=CROSS(VAR1A,压力线);
VAR3A:=REF(CLOSE,1);
VAR4A:=SMA(MAX(CLOSE-VAR3A,0),7,1)/SMA(ABS(CLOSE-VAR3A),7,1)*100;
VAR5A:=CROSS(79,VAR4A);
VAR6A:=FILTER(VAR5A,4);
DRAWICON(FILTER(VAR6AORVAR2A,5),HIGH*1.035,2);
DRAWTEXT(FILTER(VAR6AORVAR2A,5),HIGH*1.02,‘卖’),COLORYELLOW;
VAR7A:=FILTER(MA5》REF(MA5,1)ANDMA10》REF(MA10,1)ANDMA20》REF(MA20,1)ANDMA5《MA10,5);
VAR8A:=FILTER(HHVBARS(H,13)/C》2ANDMA5》REF(MA5,1)ANDMA5《MA10,7);
VAR9A:=REF(L,2)《支撑线ANDL》支撑线ANDC》OANDMA5》REF(MA5,1);
DRAWICON(FILTER(VAR7AORVAR8AORVAR9A,5)ANDVAR4A《45,L,1);
DRAWTEXT(FILTER(VAR7AORVAR8AORVAR9A,5)ANDVAR4A《45,L,‘买’),COLORRED;
DRAWICON(CROSS(10,VAR4A),L,3);
VAR1:=CLOSE》REF(CLOSE,1)ANDCLOSE》REF(CLOSE,2);
VAR2:=REF(VAR1,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR3:=REF(VAR2,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR4:=REF(VAR3,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR5:=REF(VAR4,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR6:=REF(VAR5,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR7:=REF(VAR6,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR8:=REF(VAR7,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR9:=REF(VAR8,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VARA:=REF(VAR9,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VARB:=REF(VARA,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VARC:=REF(VARB,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
涨:STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;
VARD:=CLOSE《REF(CLOSE,1)ANDCLOSE《REF(CLOSE,2);
VARE:=REF(VARD,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VARF:=REF(VARE,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR10:=REF(VARF,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR11:=REF(VAR10,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR12:=REF(VAR11,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR13:=REF(VAR12,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR14:=REF(VAR13,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR15:=REF(VAR14,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR16:=REF(VAR15,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
VAR17:=REF(VAR16,1)ANDCLOSE《=REF(CLOSE,1)ANDCLOSE》=REF(CLOSE,2);
VAR18:=REF(VAR17,1)ANDCLOSE》=REF(CLOSE,1)ANDCLOSE《=REF(CLOSE,2);
跌:STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13
ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),3,0),COLORFF8080;
VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;
底:STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORYELLOW;
VAR1B:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;
顶:STICKLINE(VAR1B,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORWHITE;
A:=BARSCOUNT(C);
AH:=HHV(H,72);
AL:=LLV(L,72);
A0:=(AH-AL)/21;
B1:=L-A0;
STICKLINE((A+0)/13=FLOOR((A+0)/13),B1,B1-3*A0,1,0);
DRAWTEXT((A+0)/13=FLOOR((A+0)/13),B1-5.5*A0,‘转向’),COLORWHITE;蓝色信号编写成选股公式
A:=BARSCOUNT(C);
转向:(A+0)/13=FLOOR((A+0)/13);