◆界:50,CROSSDOT,color5E00;
◆警线:80,LINETHICK2,color808000;
D1:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),6,1))*100;
D2:=(SMA(MAX(OPEN-REF(OPEN,1),0),6,1))/(SMA(ABS(OPEN-REF(OPEN,1)),6,1))*100;
D3:=(SMA(MAX(HIGH-REF(HIGH,1),0),6,1))/(SMA(ABS(HIGH-REF(HIGH,1)),6,1))*100;
D4:=(SMA(MAX(LOW-REF(LOW,1),0),6,1))/(SMA(ABS(LOW-REF(LOW,1)),6,1))*100;
IF(CROSS(D3,20) OR D1>20,0,30),LINETHICK2,color808E00;
IF(D4<10,0,20),LINETHICK2,colorFF00FF;
VAT3:=REF(CLOSE,1);
VAT4:=(SMA(MAX(CLOSE-VAT3,0),6,1))/(SMA(ABS(CLOSE-VAT3),6,1))*100;
★卖:CROSS(P,VAT4)*110,STICK,LINETHICK6,color715E00;
DRAWTEXT(★卖,107,'→★卖★'),colorC0C0C0;
▲买:IF(CROSS(4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1),8),18,0),STICK,LINETHICK4,colorFF8000;
DRAWTEXT(▲买,18,'←买'),colorFFB500;
VAR1:=(CLOSE-LLV(CLOSE,126))/(HHV(CLOSE,126)-LLV(CLOSE,126))*100;
VAR2:=VAR1=0;
STICKLINE(VAR2>0,-1,-10,1,2),LINETHICK3,colorBEFF00;
VAR3:=VAR1=100;
STICKLINE(VAR3>0,100,110,1,2),LINETHICK3,colorFFFF80;
▲抄底:IF(1.15*CLOSE<COST(5),40,0),LINETHICK3,colorBE;
VAR4F:=REF(CLOSE,1);
VAR50:=(SUM(IF(CLOSE>VAR4F,VOL,0),26))/(SUM(IF(CLOSE<=VAR4F,VOL,0),26))*100;
VAR51:=IF(VAR50<70,70,VAR50);
VAR52:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR53:=SMA(VAR52,3,1);
VAR54:=SMA(VAR53,3,1);
VAR55:=3*VAR53-2*VAR54;
VAR56:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VAR57:=SMA(VAR56,6,1);
VAR58:=SMA(VAR57,3,1);
VAR59:=3*VAR57-2*VAR58;
VAR5A:=IF(CROSS(VAR55,VAR59) AND VAR59<20,-1,0)+IF(CROSS(VAR59,VAR55) AND VAR59>80,1,0);
VAR5B:=(HIGH+LOW+CLOSE)/3;
VAR5C:=(VAR5B-MA(VAR5B,14))/(0.015*AVEDEV(VAR5B,14))/2;
VAR5D:=(SMA(MAX(CLOSE-VAR4F,0),6,1))/(SMA(ABS(CLOSE-VAR4F),6,1))*100;
VAR5E:=LLV(LOW,36);
VAR5F:=HHV(HIGH,36);
VAR60:=EMA((CLOSE-VAR5E)/(VAR5F-VAR5E)*100,9);
VAR61:=IF(VAR5C>100 AND VAR60>50 AND CLOSE>OPEN,0.5,0)+IF(VAR5D>80 AND VAR60>50 AND CLOSE>OPEN,0.5,0);
VAR62:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
VAR63:=SMA(VAR62,21,1);
VAR64:=SMA(VAR53,3,1);
VAR65:=3*VAR63-2*VAR64;
VAR66:=IF(VAR65>80 AND VAR5D>85,0.5,0);
●报警:IF(VAR5A+VAR61+VAR66>0,81,100),LINETHICK2,colorFF8000;
VA1:=REF(CLOSE,1);
VA2:=(SMA(MAX(CLOSE-VA1,0),7,1))/(SMA(ABS(CLOSE-VA1),7,1))*100;
VA3:=(SMA(MAX(CLOSE-VA1,0),13,1))/(SMA(ABS(CLOSE-VA1),13,1))*100;
VA4:=BARSCOUNT(CLOSE);
VA6:=VA2<20 AND VA3<25 AND VA4>50;
▲蓝箭:VA6*45,LINETHICK2,colorFF9A00;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
●K:SMA(RSV,M1,1),colorFF;
●D:SMA(●K,M2,1),colorFF00;
●J:3*●K-2*●D,colorFFFFFF;
EXPLAIN(CLOSE>0,' \n小天论坛周年纪念 \n \n★量价八阶段★ \n 1)量增价平,转阳信号: \n 2)量增价升,买入信号: \n 3)量平价升,持续买入: \n 4)量减价升,继续持有: \n 5)量减价平,警戒信号: \n 6)量减价跌,卖出信号: \n 7)量平价跌,继续卖出: \n 8)量增价跌,弃卖观望: '),colorFF; |