主线:=18;
主差:=2;
起初:=1;
主:=EMA(C,起初);
前N:=0;
B1:=1;
B2:=主差+1;
B3:=主差*2+1;
B4:=主差*3+1;
B5:=主差*4+1;
B6:=主差*5+1;
B7:=主差*6+1;
B8:=主差*7+1;
B9:=主差*8+1;
B10:=主差*9+1;
B11:=主差*10+1;
B12:=主差*11+1;
B13:=主差*12+1;
B14:=主差*13+1;
B15:=主差*14+1;
B16:=主差*15+1;
B17:=主差*16+1;
B18:=主差*17+1;
B19:=主差*18+1;
B20:=主差*19+1;
S1:=EMA(B1,主线);
S2:=EMA(B2,主线);
S3:=EMA(B3,主线);
S4:=EMA(B4,主线);
S5:=EMA(B5,主线);
S6:=EMA(B6,主线);
S7:=EMA(B7,主线);
S8:=EMA(B8,主线);
S9:=EMA(B9,主线);
S10:=EMA(B10,主线);
S11:=EMA(B11,主线);
S12:=EMA(B12,主线);
S13:=EMA(B13,主线);
S14:=EMA(B14,主线);
S15:=EMA(B15,主线);
S16:=EMA(B16,主线);
S17:=EMA(B17,主线);
S18:=EMA(B18,主线);
S19:=EMA(B19,主线);
S20:=EMA(B20,主线);
NOTEXT1:=REF(HHV(主,S1),前N),COLORGREEN;
NOTEXT2:=REF(HHV(主,S2),前N),COLORGREEN;
NOTEXT3:=REF(HHV(主,S3),前N),COLORGREEN;
NOTEXT4:=REF(HHV(主,S4),前N),COLORGREEN;
NOTEXT5:=REF(HHV(主,S5),前N),COLORGREEN;
NOTEXT6:=REF(HHV(主,S6),前N),COLORGREEN;
NOTEXT7:=REF(HHV(主,S7),前N),COLORGREEN;
NOTEXT8:=REF(HHV(主,S8),前N),COLORGREEN;
NOTEXT9:=REF(HHV(主,S9),前N),COLORGREEN;
NOTEXT10:=REF(HHV(主,S10),前N),COLORGREEN;
NOTEXT11:=REF(HHV(主,S11),前N),COLORGREEN;
NOTEXT12:=REF(HHV(主,S12),前N),COLORGREEN;
NOTEXT13:=REF(HHV(主,S13),前N),COLORGREEN;
NOTEXT14:=REF(HHV(主,S14),前N),COLORGREEN;
NOTEXT15:=REF(HHV(主,S15),前N),COLORGREEN;
NOTEXT16:=REF(HHV(主,S16),前N),COLORGREEN;
NOTEXT17:=REF(HHV(主,S17),前N),COLORGREEN;
NOTEXT18:=REF(HHV(主,S18),前N),COLORGREEN;
NOTEXT19:=REF(HHV(主,S19),前N),COLORGREEN;
NOTEXT20:=REF(HHV(主,S20),前N),COLORGREEN;
NOTEXTA1:=REF(LLV(主,S1),前N),COLORRED;
NOTEXTA2:=REF(LLV(主,S2),前N),COLORRED;
NOTEXTA3:=REF(LLV(主,S3),前N),COLORRED;
NOTEXTA4:=REF(LLV(主,S4),前N),COLORRED;
NOTEXTA5:=REF(LLV(主,S5),前N),COLORRED;
NOTEXTA6:=REF(LLV(主,S6),前N),COLORRED;
NOTEXTA7:=REF(LLV(主,S7),前N),COLORRED;
NOTEXTA8:=REF(LLV(主,S8),前N),COLORRED;
NOTEXTA9:=REF(LLV(主,S9),前N),COLORRED;
NOTEXTA10:=REF(LLV(主,S10),前N),COLORRED;
NOTEXTA11:=REF(LLV(主,S11),前N),COLORRED;
NOTEXTA12:=REF(LLV(主,S12),前N),COLORRED;
NOTEXTA13:=REF(LLV(主,S13),前N),COLORRED;
NOTEXTA14:=REF(LLV(主,S14),前N),COLORRED;
NOTEXTA15:=REF(LLV(主,S15),前N),COLORRED;
NOTEXTA16:=REF(LLV(主,S16),前N),COLORRED;
NOTEXTA17:=REF(LLV(主,S17),前N),COLORRED;
NOTEXTA18:=REF(LLV(主,S18),前N),COLORRED;
NOTEXTA19:=REF(LLV(主,S19),前N),COLORRED;
NOTEXTA20:=REF(LLV(主,S20),前N),COLORRED;
顶:MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(NOTEXT1,NOTEXT2),NOTEXT3),NOTEXT4),NOTEXT5),NOTEXT6),NOTEXT7),NOTEXT8),NOTEXT9),NOTEXT10),NOTEXT11),NOTEXT12),NOTEXT13),NOTEXT14),NOTEXT15),NOTEXT16),NOTEXT17),NOTEXT18),NOTEXT19),NOTEXT20),COLORYELLOW;
底:MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(NOTEXTA1,NOTEXTA2),NOTEXTA3),NOTEXTA4),NOTEXTA5),NOTEXTA6),NOTEXTA7),NOTEXTA8),NOTEXTA9),NOTEXTA10),NOTEXTA11),NOTEXTA12),NOTEXTA13),NOTEXTA14),NOTEXTA15),NOTEXTA16),NOTEXTA17),NOTEXTA18),NOTEXTA19),NOTEXTA20),COLORGREEN;
价格:=C,COLORRED,LINETHICK2;{www.9m8.cn 九毛八公式指标网}
DRAWICON(FILTER(NOTEXT1=NOTEXT20,25),NOTEXT1,23),COLORYELLOW;