T:=BARSCOUNT(C); TC:=MAX(0.1,C); E1:=EMA(TC,100),COLORMAGENTA,LINETHICK3; E2:=EMA(TC,200),COLORMAGENTA,LINETHICK1; E3:=EMA(TC,300),COLORMAGENTA,LINETHICK1; E4:=EMA(TC,400),COLORMAGENTA,LINETHICK1; E5:=EMA(TC,500),COLORMAGENTA,LINETHICK1; E6:=EMA(TC,600),COLORMAGENTA,LINETHICK1; E7:=EMA(TC,700),COLORMAGENTA,LINETHICK1; E8:=EMA(TC,800),COLORMAGENTA,LINETHICK1; E9:=EMA(TC,900),COLORMAGENTA,LINETHICK1; 底:=MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(E1,E2),E3),E4),E5),E6),E7),E8),E9),COLORGREEN,LINETHICK3; 頂:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(E1,E2),E3),E4),E5),E6),E7),E8),E9),COLORMAGENTA,LINETHICK2; XE1:=EMA(底,10),COLORGREEN; XE2:=EMA(底,20),COLORYELLOW; XE3:=EMA(底,30),COLORYELLOW; XE4:=EMA(底,40),COLORYELLOW; XE5:=EMA(底,50),COLORYELLOW; XE6:=EMA(底,60),COLORYELLOW; XE7:=EMA(底,70),COLORYELLOW; XE8:=EMA(底,80),COLORYELLOW; XE9:=EMA(底,90),COLORYELLOW; DE1:=EMA(頂,10),COLORGREEN; DE2:=EMA(頂,20),COLORYELLOW; DE3:=EMA(頂,30),COLORYELLOW; DE4:=EMA(頂,40),COLORYELLOW; DE5:=EMA(頂,50),COLORYELLOW; DE6:=EMA(頂,60),COLORYELLOW; DE7:=EMA(頂,70),COLORYELLOW; DE8:=EMA(頂,80),COLORYELLOW; DE9:=EMA(頂,90)COLORWHITE; 底1:=MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(XE1,XE2),XE3),XE4),XE5),XE6),XE7),XE8),XE9),COLORGREEN,LINETHICK3; 頂1:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(XE1,XE2),XE3),XE4),XE5),XE6),XE7),XE8),XE9),COLORMAGENTA,LINETHICK2; 底2:=MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(DE1,DE2),DE3),DE4),DE5),DE6),DE7),DE8),DE9),COLORGREEN,LINETHICK3; 頂2:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(DE1,DE2),DE3),DE4),DE5),DE6),DE7),DE8),DE9),COLORMAGENTA,LINETHICK2; 底升:=BARSLASTCOUNT(底>REF(底,1)),NODRAW; 底1升:=BARSLASTCOUNT(底1>REF(底1,1)),NODRAW; 底2升:=BARSLASTCOUNT(底2>REF(底2,1)),NODRAW; 頂升:=BARSLASTCOUNT(頂>REF(頂,1)),NODRAW; 頂1升:=BARSLASTCOUNT(頂1>REF(頂1,1)),NODRAW; 頂2升:=BARSLASTCOUNT(頂2>REF(頂2,1)),NODRAW; 底3升:=(底升>0)+(底1升>0)+(底2升>0),NODRAW; 頂3升:=(頂升>0)+(頂1升>0)+(頂2升>0),NODRAW; 線6升:=(底3升+頂3升),NODRAW; JS1:=BARSLASTCOUNT(底3升=REF(底3升,1)),NODRAW; JS2:=BARSLASTCOUNT(底3升>=REF(底3升,1)),NODRAW; 底3升升:=BARSLASTCOUNT(JS2>JS1),NODRAW; E1Z:=E1-REF(E1,1); E1ZS:=SUM(E1Z,T); RZ:=IF(T>300,TC/REF(TC,1)*100-100,DRAWNULL); RZ1:=TC-REF(TC,1); RZ1M:=MIN(100,LOD(RZ1,T)/T*100); RZ1ME:=EMA(RZ1M,100); RZ1ME1:=EMA(RZ1ME,100); RZ1ME2:=EMA(RZ1ME1,100); RZE1:=EMA(RZ,100); RZE2:=EMA(RZ,200); RZE3:=EMA(RZ,300); RZE4:=EMA(RZ,400); RZE5:=EMA(RZ,1000); ZE1:EMA(RZE1,20); ZE2:EMA(ZE1,20); ZE3:EMA(ZE2,20); ZE4:EMA(ZE3,20); ZE5:EMA(ZE4,20),LINETHICK3; ZE6:EMA(ZE5,20); ZE7:EMA(ZE6,20); ZE8:EMA(ZE7,20); ZE9:EMA(ZE8,20); ZE10:=EMA(ZE9,20); ZEA:=(ZE1+ZE2+ZE3+ZE4+ZE5+ZE6+ZE7+ZE8+ZE9)/9; ZEAM:=LOD(ZEA,100)/100; ZEP1:=(RZE1>ZE1)+(RZE1>ZE2)+(RZE1>ZE3)+(RZE1>ZE4)+(RZE1>ZE5)+(RZE1>ZE6)+(RZE1>ZE7)+(RZE1>ZE8)+(RZE1>ZE9); ZTJ1:=BARSLASTCOUNT(ZEP1=REF(ZEP1,1)); ZTJ2:=BARSLASTCOUNT(ZEP1>=REF(ZEP1,1)); ZE1排升:BARSLASTCOUNT(ZTJ2>ZTJ1),NODRAW; ZE1排E:EMA(ZEP1,100),NODRAW; ZE排多:=BARSLASTCOUNT(ZEP1>ZE1排E),NODRAW; DRAWTEXT_FIX(1,0.15,0,0,HYBLOCK),COLORWHITE; 漲底:=MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(ZE1,ZE2),ZE3),ZE4),ZE5),ZE6),ZE7),ZE8),ZE9),COLORGREEN; 漲頂:MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(ZE1,ZE2),ZE3),ZE4),ZE5),ZE6),ZE7),ZE8),ZE9),COLORMAGENTA,LINETHICK3; 漲底升:BARSLASTCOUNT(漲底>REF(漲底,1) AND 漲底>0),NODRAW; 漲底升2:BARSLASTCOUNT(漲底>REF(漲底,1)),NODRAW; 線上底:BARSLASTCOUNT(RZE1>漲底 AND 漲底>0),NODRAW; 線上底2:BARSLASTCOUNT(RZE1>漲底),NODRAW; 線上頂:BARSLASTCOUNT(RZE1>漲頂 AND RZE1>0),NODRAW; 線上頂2:BARSLASTCOUNT(RZE1>漲頂),NODRAW; 上0條:(ZE1>0)+(ZE2>0)+(ZE3>0)+(ZE4>0)+(ZE5>0)+(ZE6>0)+(ZE7>0)+(ZE8>0)+(ZE9>0)+(ZE10>0),NODRAW; 上10條:BARSLASTCOUNT(上0條=10),NODRAW; TJ1:=BARSLASTCOUNT(上10條=REF(上10條,1)); TJ2:=BARSLASTCOUNT(上10條>=REF(上10條,1)); 上0條升:BARSLASTCOUNT(TJ2>TJ1),NODRAW; 底3升升A:=IF(漲底升>0,底3升升,DRAWNULL),NODRAW; 漲底X:=IF(T>300,漲底,0),COLORGREEN; 漲頂X:=IF(T>300,漲頂,0),COLORGREEN; RZE1X:=IF(T>300,RZE1,0),COLORGREEN; 0,LINETHICK3; 2; |
|