主图指标 {共计一十二个} ①——波段转折 ②——台湾力道 ③——SAR 主图 ④——知博均线 ⑤——飞龙顶底 ⑥——天堂孤影 ⑦——大盘力道 ⑧——个股力道 ⑨——大盘XSTD ⑩——个股XSTD ⑪——薛斯通道 ⑫——阶梯均线 {波段转折——主图指标} A1:=IF(C>REF(EXPMEMA(H,6),1),1,0); A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0); A3:=A1+A2; A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3); 多头操盘线13:MA(CLOSE,13)COLORMAGENTA,LINETHICK2; 空头操盘线:IF(多头操盘线13<REF(多头操盘线13,1),多头操盘线13,DRAWNULL)COLORCYAN,LINETHICK2; 平均成本线:COST(50)DOTLINE,COLORYELLOW; 半年线120:=MA(C,120)DOTLINE,COLORMAGENTA; 年线251:=MA(C,251)DOTLINE,COLORBROWN; 空转多:=IF(A4=-1,MA(HIGH,6),MA(LOW,6))COLORRED,DOTLINE; 多转空:=IF(空转多<=REF(空转多,1),空转多,DRAWNULL)COLORGREEN,DOTLINE; 转势:=LONGCROSS(CLOSE,平均成本线,20)NODRAW; 转势信号:DRAWICON(转势,LOW,3); SAR持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED; SAR空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN; 标识:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 空转多标识:DRAWICON(REF(CLOSE,0)>多转空,多转空,1),COLORRED; 多转空标识:DRAWICON(FILTER(REF(CLOSE,0)<空转多,20),空转多,2),COLORGREEN; 附加1:=DRAWTEXT_FIX(1,0.03,0.25,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.25,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.25,0,DYBLOCK),COLORYELLOW; D1:=1; AA1:=DRAWGBK('平均成本线——牛股起跑线。平均成本线下方的个股少碰,上穿了平均成本线的个股可为。','.','.','.','.','.'); AA1图标:DRAWTEXT_FIX(D1=1,0,0.0000.18,0,AA1),COLORYELLOW,LINETHICK2; D2:=1; AA2:=DRAWGBK('多头操盘线——翻红时,即可以考虑买股进场,尔后,持股待涨。','.','.','.','.','.'); AA2图标:DRAWTEXT_FIX(D2=1,0,0.0600.18,0,AA2),COLORMAGENTA,LINETHICK2; D3:=1; AA3:=DRAWGBK('空头操盘线——翻绿时,即当从速止盈、止损,尔后,空仓观望。','.','.','.','.','.'); AA3图标:DRAWTEXT_FIX(D3=1,0,0.1200.18,0,AA3),COLORCYAN,LINETHICK2; {台湾力道——主图指标} X1:=(CLOSE+LOW+HIGH)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); MA5:MA(C,5),COLORLIBLUE,DOTLINE; 年线:MA(C,250),COLORMAGENTA,DOTLINE; 平均成本:COST(50)DOTLINE,COLORYELLOW; VAR2:=EMA(EMA(X1,1),13); VAR3:=EMA(VAR2,21); XCLOSE:EMA((OPEN+HIGH+LOW+CLOSE)/4,3); XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3); TEMPG:=MAX(HIGH,XOPEN); XHIGH:=EMA(MAX(TEMPG,XCLOSE),3); TEMP:=MIN(LOW,XOPEN); XLOW:=EMA(MIN(TEMP,XCLOSE),3); O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE); C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN); 蓝色上下引线:STICKLINE(XOPEN>=XCLOSE,XHIGH,XLOW,0,0 ),COLORCYAN; 深蓝色外框:STICKLINE(XOPEN>=XCLOSE,C1,O1,3,0 ),COLOR990000; 深蓝色内框:STICKLINE(XOPEN>=XCLOSE,C1,O1,2.5,0 ),COLORCC0000; 深蓝色外框变色:STICKLINE(XOPEN>=XCLOSE,C1,O1,2,0 ),COLORFF4400; 深蓝色内框变色:STICKLINE(XOPEN>=XCLOSE,C1,O1,1.5,0 ),COLORFF8800; 深蓝色外框线条:STICKLINE(XOPEN>=XCLOSE,C1,O1,0.9,0 ),COLORFFCC00; 深蓝色内框线条:STICKLINE(XOPEN>=XCLOSE,C1,O1,0.3,0 ),COLORCYAN; 红色上下引线:STICKLINE(XOPEN<XCLOSE,XHIGH,XLOW,0,0 ),COLORRED; 深红色外框:STICKLINE(XOPEN<XCLOSE,C1,O1,3,0 ),COLOR000055; 深红色外框线条:STICKLINE(XOPEN<XCLOSE,C1,O1,2.5,0 ),COLOR000077; 深红色内框线条:STICKLINE(XOPEN<XCLOSE,C1,O1,2,0 ),COLOR000099; 深红色外框变色:STICKLINE(XOPEN<XCLOSE,C1,O1,1.5,0 ),COLOR0000BB; 深红色内框变色:STICKLINE(XOPEN<XCLOSE,C1,O1,0.9,0 ),COLOR0000DD; 深红色晕色:=STICKLINE(XOPEN<XCLOSE,C1,O1,0.3,0 ),COLOR0000FF; HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21; LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21; A1:=IF(C>REF(EXPMEMA(H,6),1),1,0); A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0); A3:=A1+A2; A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3); 转折线:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORFFFFFF; 持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20), DRAWNULL),CIRCLEDOT,COLORMAGENTA,{COLOR9955FF}; 空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20), DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00}; STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; 空转多:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORRED; 多转空:IF(空转多<=REF(空转多,1),空转多,DRAWNULL)LINETHICK2,COLORGREEN; 空转多标识:DRAWICON(CROSS(REF(CLOSE,0),REF(转折线,0)),多转空-0.8,1); 多转空标识:DRAWICON(CROSS(REF(转折线,0),REF(CLOSE,0)),空转多+1,2); {SAR 主图——主图指标} MA05:MA(CLOSE,5),COLORWHITE,DOTLINE; MA20:MA(CLOSE,20),COLORYELLOW; 半年线120:MA(C,120)DOTLINE,COLORMAGENTA; 年线251:MA(C,251)DOTLINE,COLORLICYAN; SAR持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED; SAR空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN; 标识:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {知博均线——主图指标} {参数:M1_0 1000 5 M2_0 1000 10 M3_0 1000 20 M4_0 1000 30 M5_0 1000 60 M6_0 1000 120 M7_0 1000 250} 多头操盘线13:MA(CLOSE,13)COLORRED; 空头操盘线:IF(多头操盘线13<REF(多头操盘线13,1),多头操盘线13,DRAWNULL)COLORGREEN,{淡蓝色}; 平均成本线:COST(50)DOTLINE,COLORLICYAN; 均价:DYNAINFO(11); 多头:DRAWICON(REF(均价,0)>=REF(平均成本线,1),多头操盘线13,3); MA05:=MA(CLOSE,M1); MA10:=MA(CLOSE,M2); MA20:=MA(CLOSE,M3); MA30:=MA(CLOSE,M4); MA60:=MA(CLOSE,M5); 半年线:=MA(CLOSE,M7)DOTLINE,COLORMAGENTA; 年线:=MA(CLOSE,M6)DOTLINE,COLORLICYAN; 持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED,{COLOR0099FF}; 空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00}; 标识:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 附加1:DRAWTEXT_FIX(1,0.03,0.25,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.25,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.25,0,DYBLOCK),COLORYELLOW; D1:=1; AA1:=DRAWGBK('平均成本线——牛股起跑线。平均成本线下方的个股少碰,上穿了平均成本线的个股可为。','.','.','.','.','.'); AA1图标:DRAWTEXT_FIX(D1=1,0,0.0000.18,0,AA1),COLORYELLOW,LINETHICK2; D2:=1; AA2:=DRAWGBK('多头操盘线——翻红时,即可以考虑买股进场,尔后,持股待涨。','.','.','.','.','.'); AA2图标:DRAWTEXT_FIX(D2=1,0,0.0600.18,0,AA2),COLORMAGENTA,LINETHICK2; D3:=1; AA3:=DRAWGBK('空头操盘线——翻绿时,即当从速止盈、止损,尔后,空仓观望。','.','.','.','.','.'); AA3图标:DRAWTEXT_FIX(D3=1,0,0.1200.18,0,AA3),COLORCYAN,LINETHICK2; {飞龙顶底——主图指标} 攻击线5:=MA(C,5)DOTLINE; 操盘线10:=MA(C,10)DOTLINE; 操盘线13:MA(C,13)DOTLINE; 生命线21:=MA(C,21)LINETHICK1; 决策线60:=MA(C,60)LINETHICK1; 年线251:=MA(C,251)LINETHICK1,COLORBROWN,DOTLINE; N:=20; M:=30; P1:=80; P2:=100; VAR101:=(C+H+O+L)/4; 卖出:XMA(VAR101,N)*(1+P1/1000),COLORRED,LINETHICK2; 买入:XMA(VAR101,M)*(1-P2/1000),COLORLIBLUE,LINETHICK2; {将卖出与买入二列中的字母XMA改写成MA—— 即去除掉MA字母前面的X,就可以删除掉公式中的未来函数了。 而我则依然愿意保留着它。} 幅度:=100*(卖出-买入)/买入,NODRAW; MA1:=MA(VAR101,3); STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN; STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN; STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN; STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN; STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN; STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA; STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA; STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA; STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA; DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'卖'),COLORYELLOW; MA20:=MA(CLOSE,20); MA120:=MA(CLOSE,120); MA30:=MA(CLOSE,37); MAP:=MA(CLOSE,8); AA5:=MA(CLOSE,21); AA10:=MA(CLOSE,8),COLORFF0000; AA12:=MA(CLOSE,12),COLORFF0000; BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10); BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10); MA13:=MA(CLOSE,13); VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4); 中期大底:=LLV(LOW,30),; 短期底部0:=LLV(HIGH,30); 短底:=EMA(VAR01,5); 支撑:=HHV(短底,60); 压力1:=HHV(LOW,20),COLORFAABEC; 压力:=SMA(LOW,5,1); 中线:=MA(CLOSE,3); DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'.'),COLORFFFF00; 中轨道:=(MA(HIGH,15) * 1.05); 天:=(MA(LOW,15) * 0.985); 人:=(MA(LOW,15) * 0.96); 地:=(((HIGH + LOW) + CLOSE) / 3); B1:=HHV(地,(4 * 15)); B6:=LLV(地,(4 * 15)); B7:=(B1 - B6); B8:=(MA(((地 - B6) / B7),2) * 80); VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200); 飞龙顶底线1:=SMA(VAR1,3,1); VAR2:=SMA(飞龙顶底线1,3,1); VAR3:=((3 * 飞龙顶底线1) - (2 * VAR2)); VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,5); VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2); VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2); VAR8:=((3 * VAR6) - (2 * VAR7)); VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5)); VARA:=(POW(MA(LOW,5),2) + MA(LOW,5)); VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5)); VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10); VARD:=((SMA(VARC,3,1) * 1.5) - 100); VARE:=SMA(VARD,3,1); VARF:=((3 * VARD) - (2 * VARE)); VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4); VAR11:=EMA(VAR10,13); VAR12:=STD(VAR10,13); VAR13:=(((VAR10 - VAR11) * 100) / VAR12); VAR14:=EMA(VAR13,5); VAR15:=EMA(VAR14,13); VAR16:=((EMA(VAR14,13) + 200) - 100); VAR17:=EMA(VAR16,10); VAR18:=((3 * VAR16) - (2 * VAR17)); VAR19:=(((飞龙顶底线1 + VAR6) + VARD) + VAR16); VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17); VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18); VAR1C:=(((HIGH + LOW) + CLOSE) / 3); VAR1D:=((AMOUNT / VOL) / 100); VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100); VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34))); VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4); VAR22:=EMA(VAR21,24); VAR23:=STD(VAR21,24); VAR24:=(((VAR21 - VAR22) / VAR23) * 100); VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24))); VAR26:=EMA(VAR24,5); VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21))); VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90))); VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4); VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15); VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1); VAR2C:=VAR2B; 短线:=MA(VAR2C,26); MID:=(短线 + (2 * STD(VAR2C,26))); UPPER:=(短线 - (2 * STD(VAR2C,26))); LOWER:=IF((VAR2C > 短线),短线,VAR2C); XY:=MA(CLOSE,5); M80:=MA(CLOSE,80); 短期底部:=(LLV(HIGH,30) * 0.93); MA80:=LLV(HIGH,30); 短期底部2:=SMA(CLOSE,2,1); 趋势:=(MA(LOW,10) * 0.96); 趋:=(EMA(OPEN,107) * 0.897); 超跌位2:=MA(CLOSE,15); GF:=MA(CLOSE,10); MAN:=(SMA(HIGH,21,2) * 1.05); 上1:=(HHV(短底,60) * 0.92); 压力2:=(SMA(HIGH,21,2) * 1.035); 阻挡线:=(SMA(LOW,21,2) * 0.96); 下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV:=SMA(下档线,3,1); K:=SMA(RSV,3,1); D:=((3 * RSV) - (2 * K)); J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100); VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100); VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100); VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6); VAR5P:=MA(VAR4P,3); VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); RSV12:=SMA(VAR6P,3,1); K12:=SMA(RSV12,3,1); D12:=((3 * RSV12) - (2 * K12)); J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1); K24:=SMA(RSV24,3,1); D24:=((3 * RSV24) - (2 * K24)); J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24)))); 压力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D)))); 支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50); U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20); L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1))))); RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L)))); RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L)))); RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D < D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24))))); RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1))))); RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5)))); RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5)))); RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D > D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24))))); 长期底部:=LLV(HIGH,30); DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'.'),COLOR0EABFF; RL5:=(SMA(HIGH,5,2) * 1.05); 上:=(SMA(LOW,5,2) * 0.96); 下:=SMA(LOW,2,1); 中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6); X1:=EMA(中,10); X2:=REF(X1,1); X3:=((REF(HIGH,1) + REF(LOW,1)) / 2); X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21))); X5:=REF(CLOSE,1); X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100); X7:=CROSS(79,X6); X8:=FILTER(X7,4); X9:=MA(CLOSE,115); VAR001:=EMA(CLOSE,8); 飞龙顶底线:=EMA(VAR001,20); VAR002:=CROSS(VAR001,飞龙顶底线); VAR003:=(VAR001 < MA(CLOSE,20)); VAR004:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100); VAR005:=SMA(VAR004,5,1); VAR006:=SMA(VAR005,8,1); VAR007:=(CROSS(VAR005,VAR006) AND (VAR006 < 5)); VAR008:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR007); VAR009:=IF((CLOSE > 1000),VAR007,VAR008); VAR00F:=CROSS(X1,X2); MA115:=VAR00F; 低买:=(VAR002 AND VAR003); 逃遁:=(SMA(HIGH,21,2) * 1.05); 阻挡:=(SMA(LOW,21,2) * 0.94); 持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED,{COLOR0099FF}; 空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORCYAN,{COLORDDFF00}; STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {天堂孤影——主图指标} VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); {主升柱} 孤影图示01:=STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED; VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); {主跌柱} 孤影图示02:=STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,1),COLORLIBLUE; VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; 孤影图示03:=STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,1),COLORYELLOW; VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; {蓝顶外框} 孤影图示04:=STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,2),COLOR00FF00; 孤影图示05:=STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00C8FF; 孤影图示06:=STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ECFF; 孤影图示07:=STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10FFFF; {黄金底} 孤影图示08:=STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00D900; {蓝顶} 孤影图示09:=STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBLUE; {蓝顶中心线} 孤影图示10:=STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090FF2; {升跌过渡} 孤影走势:MA(C,5),COLORLIGRAY,LINETHICK2; {上升线} 万筹朝孤:IF(孤影走势>REF(孤影走势,1),孤影走势,DRAWNULL),COLORFF00FF,LINETHICK2; {下跌线} 孤影弃筹:IF(孤影走势<REF(孤影走势,1),孤影走势,DRAWNULL),COLORLIGREEN,LINETHICK2; X:=(3*C+L+O+H)/6; {上升点线} {天堂孤影绝杀专用} 天堂之路:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLOR77AAFF,LINETHICK2; DD:=天堂之路<REF(天堂之路,1); {下跌点线} 地狱之门:IF(DD,天堂之路,DRAWNULL),COLORWHITE,LINETHICK2,POINTDOT,LINETHICK5; {天堂孤影绝杀专用} A:=(孤影走势>天堂之路); {上升点} 天堂孤影:IF(A,天堂之路,DRAWNULL),COLORRED,POINTDOT,LINETHICK5; 持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)POINTDOT;{霓虹篮 COLOR4D4DFF 海军蓝 COLOR23238E} 空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)POINTDOT;{中春绿 COLOR7FFF00 橙色 COLORFF7F00} BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 持仓标识:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'*')COLORRED;{海蓝 COLOR70DB93}; 空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'*')COLORGREEN;{海蓝 COLOR70DB93}; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {大盘力道——主图指标} X1:=(CLOSE+LOW+HIGH)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); 日均线_05:MA(C,5)COLORWHITE,DOTLINE; 日均线_10:MA(C,10)COLORYELLOW,DOTLINE; 半年线120:MA(C,120)DOTLINE,COLORRED; 年线251:MA(C,251)DOTLINE,COLORYELLOW; MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL)COLORRED; 标识:DRAWKLINE(H,O,L,C); {N(1,50,10)} N:=10; MMCST:=MA(MCST,N),COLORBLACK,LINETHICK; 带状线:=DRAWBAND(MCST,RGB(241,82,54),MMCST,RGB(48,143,16)); 平均成本线:COST(50)DOTLINE,COLORLICYAN; VAR2:=EMA(EMA(X1,1),13); VAR3:=EMA(VAR2,21); XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3); XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3); TEMPG:=MAX(HIGH,XOPEN); XHIGH:=EMA(MAX(TEMPG,XCLOSE),3); TEMP:=MIN(LOW,XOPEN); XLOW:=EMA(MIN(TEMP,XCLOSE),3); O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE); C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN); 标注01:=STICKLINE(XOPEN>=XCLOSE,XHIGH,XLOW,0,0 ),COLORCYAN; 标注02:=STICKLINE(XOPEN>=XCLOSE,C1,O1,3,0 ),COLOR990000; 标注03:=STICKLINE(XOPEN>=XCLOSE,C1,O1,2.5,0 ),COLORCC0000; 标注04:=STICKLINE(XOPEN>=XCLOSE,C1,O1,2,0 ),COLORFF4400; 标注05:=STICKLINE(XOPEN>=XCLOSE,C1,O1,1.5,0 ),COLORFF8800; 标注06:=STICKLINE(XOPEN>=XCLOSE,C1,O1,0.9,0 ),COLORFFCC00; 标注07:=STICKLINE(XOPEN>=XCLOSE,C1,O1,0.3,0 ),COLORCYAN; 标注08:=STICKLINE(XOPEN<XCLOSE,XHIGH,XLOW,0,0 ),COLORRED; 标注09:=STICKLINE(XOPEN<XCLOSE,C1,O1,3,0 ),COLOR000055; 标注10:=STICKLINE(XOPEN<XCLOSE,C1,O1,2.5,0 ),COLOR000077; 标注11:=STICKLINE(XOPEN<XCLOSE,C1,O1,2,0 ),COLOR000099; 标注12:=STICKLINE(XOPEN<XCLOSE,C1,O1,1.5,0 ),COLOR0000BB; 标注13:=STICKLINE(XOPEN<XCLOSE,C1,O1,0.9,0 ),COLOR0000DD; 标注14:=STICKLINE(XOPEN<XCLOSE,C1,O1,0.3,0 ),COLOR0000FF; HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21; LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21; A1:=IF(C>REF(EXPMEMA(H,6),1),1,0); A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0); A3:=A1+A2; A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3); 转折线:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORFFFFFF; 空转多:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORRED; 多转空:IF(空转多<=REF(空转多,1),空转多,DRAWNULL)LINETHICK2,COLORGREEN; 空转多标识:DRAWICON(REF(CLOSE,0)>多转空,多转空,1),COLORRED; 持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20), DRAWNULL),CIRCLEDOT,COLORMAGENTA,{COLOR9955FF}; 空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20), DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00}; STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {个股力道——主图指标} X1:=(CLOSE+LOW+HIGH)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); 日均线_05:MA(C,5)COLORWHITE,DOTLINE; 日均线_10:=MA(C,10)COLORYELLOW,DOTLINE; 半年线120:MA(C,120)DOTLINE,COLORRED; 年线251:MA(C,251)DOTLINE,COLORYELLOW; MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL)COLORRED; 标识:DRAWKLINE(H,O,L,C); {N(1,50,10)} N:=10; MMCST:=MA(MCST,N),COLORBLACK,LINETHICK; 带状线:=DRAWBAND(MCST,RGB(241,82,54),MMCST,RGB(48,143,16)); 平均成本线:COST(50)DOTLINE,COLORLICYAN; VAR2:=EMA(EMA(X1,1),13); VAR3:=EMA(VAR2,21); XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3); XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3); TEMPG:=MAX(HIGH,XOPEN); XHIGH:=EMA(MAX(TEMPG,XCLOSE),3); TEMP:=MIN(LOW,XOPEN); XLOW:=EMA(MIN(TEMP,XCLOSE),3); O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE); C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN); 标注01:=STICKLINE(XOPEN>=XCLOSE,XHIGH,XLOW,0,0 ),COLORCYAN; 标注02:=STICKLINE(XOPEN>=XCLOSE,C1,O1,3,0 ),COLOR990000; 标注03:=STICKLINE(XOPEN>=XCLOSE,C1,O1,2.5,0 ),COLORCC0000; 标注04:=STICKLINE(XOPEN>=XCLOSE,C1,O1,2,0 ),COLORFF4400; 标注05:=STICKLINE(XOPEN>=XCLOSE,C1,O1,1.5,0 ),COLORFF8800; 标注06:=STICKLINE(XOPEN>=XCLOSE,C1,O1,0.9,0 ),COLORFFCC00; 标注07:=STICKLINE(XOPEN>=XCLOSE,C1,O1,0.3,0 ),COLORCYAN; 标注08:=STICKLINE(XOPEN<XCLOSE,XHIGH,XLOW,0,0 ),COLORRED; 标注09:=STICKLINE(XOPEN<XCLOSE,C1,O1,3,0 ),COLOR000055; 标注10:=STICKLINE(XOPEN<XCLOSE,C1,O1,2.5,0 ),COLOR000077; 标注11:=STICKLINE(XOPEN<XCLOSE,C1,O1,2,0 ),COLOR000099; 标注12:=STICKLINE(XOPEN<XCLOSE,C1,O1,1.5,0 ),COLOR0000BB; 标注13:=STICKLINE(XOPEN<XCLOSE,C1,O1,0.9,0 ),COLOR0000DD; 标注14:=STICKLINE(XOPEN<XCLOSE,C1,O1,0.3,0 ),COLOR0000FF; HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21; LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21; A1:=IF(C>REF(EXPMEMA(H,6),1),1,0); A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0); A3:=A1+A2; A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3); 转折线:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORFFFFFF; 空转多:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORRED; 多转空:IF(空转多<=REF(空转多,1),空转多,DRAWNULL)LINETHICK2,COLORGREEN; 空转多标识:DRAWICON(REF(CLOSE,0)>多转空,多转空,1),COLORRED; 持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20), DRAWNULL),CIRCLEDOT,COLORMAGENTA,{COLOR9955FF}; 空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20), DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00}; STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:=DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {大盘XSTD——主图指标} LY:=3; BL:=45; CJQS:=XMA(CLOSE,LY); JBQS:=XMA(CLOSE,BL); N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT); M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT); 外上轨:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1)COLORYELLOW; 外下轨:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9)COLOR0099FF; 内上轨:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05)COLORRED; 内下轨:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95)COLORMAGENTA; 外上通道:IF(外上轨<REF(外上轨,1),外上轨,DRAWNULL),COLORLIBLUE,{淡蓝色}; 外下通道:IF(外下轨<REF(外下轨,1),外下轨,DRAWNULL),COLOR5F9F9F,{士官服蓝色}; 内上通道:IF(内上轨<REF(内上轨,1),内上轨,DRAWNULL),COLORGREEN,{绿色}; 内下通道:IF(内下轨<REF(内下轨,1),内下轨,DRAWNULL),COLORE66878,{紫罗蓝}; 顶:DRAWTEXT(FILTER(EXIST(LONGCROSS(内上轨,外上轨,25),10)AND CROSS(REF(内上轨,1),REF(内上轨,0)),5),REF(HIGH,0)+35,'顶')COLORYELLOW; 底:DRAWTEXT(FILTER(EXIST(LONGCROSS(外下轨,内下轨,25),10)AND CROSS(REF(内下轨,0),REF(内下轨,1)),5),REF(LOW,0)-45,'底')COLORMAGENTA; {立桩量} TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01; 图标3:STICKLINE(TJ,C,O+(C-O)/2,1,0),COLOR00FFFF; 买一跌破内轨:=DRAWTEXT(EXIST(CROSS(内下轨,REF(CLOSE,0)),2)AND CROSS(REF(CLOSE,0),REF(OPEN,0))AND REF(内下轨,0)>REF(内下轨,1),REF(LOW,0)-0.5,'1')COLORLIMAGENTA; 买二跌破外轨:=DRAWTEXT(CROSS(外下轨,REF(LOW,0))AND REF(外下轨,0)>REF(外下轨,1),REF(LOW,0)-0.5,'2')COLORLIMAGENTA; 买三跌破双轨:=DRAWTEXT(FILTERX(CROSS(内下轨,REF(CLOSE,0))AND CROSS(REF(外下轨,0),REF(CLOSE,0)),5),REF(LOW,0)-0.5,'3')COLORLIMAGENTA; 卖一雏鸡破壳:=DRAWTEXT(CROSS(REF(CLOSE,0),REF(内上轨,0)),REF(HIGH,0)+0.5,'1')COLORGREEN; 卖二破二重天:=DRAWTEXT(CROSS(REF(CLOSE,0),REF(内上轨,0))AND CROSS(REF(CLOSE,0),REF(外上轨,0)),外上轨+0.5,'2')COLORGREEN; 卖三白龙回首:=DRAWTEXT(CROSS(REF(外上轨,1),REF(外上轨,0)),外上轨+0.5,'3')COLORGREEN; 买①跌破内轨:DRAWTEXT(CROSS(REF(内下通道,0),REF(LOW,0)),REF(LOW,0)-20,'①')COLORLIMAGENTA; 买②跌破外轨:DRAWTEXT(CROSS(REF(外下通道,0),REF(LOW,0)),REF(LOW,0)-30,'②')COLORLIMAGENTA; 买③跌破双轨:DRAWTEXT(REF(LOW,0)<(内下通道)AND CROSS(REF(外下通道,0),REF(LOW,0)),REF(LOW,0)-40,'③')COLORLIMAGENTA; 卖①雏鸡破壳:DRAWTEXT(CROSS(REF(HIGH,0),(内上通道,0)),REF(HIGH,0)+20,'①')COLORGREEN; 卖②破二重天:DRAWTEXT(CROSS(REF(HIGH,0),(外上通道,0)),REF(HIGH,0)+30,'②')COLORGREEN; 卖③白龙回首:DRAWTEXT(EXIST(CROSS(REF(内上轨,0),REF(外上轨,0)),7)AND CROSS(REF(内上轨,1),REF(内上轨,0)),REF(外上通道,0)+40,'③')COLORGREEN; 持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)POINTDOT;{霓虹篮 COLOR4D4DFF 海军蓝 COLOR23238E} 空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)POINTDOT;{中春绿 COLOR7FFF00 橙色 COLORFF7F00} BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 持仓标识:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20),'*')COLORRED;{海蓝 COLOR70DB93}; 空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20),'*')COLORGREEN;{海蓝 COLOR70DB93}; {个股XSTD——主图指标} LY:=5; BL:=27; CJQS:=XMA(CLOSE,LY); JBQS:=XMA(CLOSE,BL); N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT); M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT); 外上轨:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1)COLORYELLOW; 外下轨:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9)COLOR0099FF; 内上轨:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05)COLORRED; 内下轨:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95)COLORMAGENTA; 外上通道:IF(外上轨<REF(外上轨,1),外上轨,DRAWNULL),COLORLIBLUE,{淡蓝色}; 外下通道:IF(外下轨<REF(外下轨,1),外下轨,DRAWNULL),COLOR5F9F9F,{士官服蓝色}; 内上通道:IF(内上轨<REF(内上轨,1),内上轨,DRAWNULL),COLORGREEN,{绿色}; 内下通道:IF(内下轨<REF(内下轨,1),内下轨,DRAWNULL),COLORE66878,{紫罗蓝}; 顶:DRAWTEXT(FILTER(EXIST(LONGCROSS(内上轨,外上轨,25),10)AND CROSS(REF(内上轨,1),REF(内上轨,0)),5),REF(HIGH,0)+1.2,'顶')COLORYELLOW; 底:DRAWTEXT(FILTER(EXIST(LONGCROSS(外下轨,内下轨,25),10)AND CROSS(REF(内下轨,0),REF(内下轨,1)),5),REF(LOW,0)-1.2,'底')COLORMAGENTA; {立桩量} TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01; 图标3:STICKLINE(TJ,C,O+(C-O)/2,1,0),COLOR00FFFF; 买一跌破内轨:=DRAWTEXT(EXIST(CROSS(内下轨,REF(CLOSE,0)),2)AND CROSS(REF(CLOSE,0),REF(OPEN,0))AND REF(内下轨,0)>REF(内下轨,1),REF(LOW,0)-0.5,'1')COLORLIMAGENTA; 买二跌破外轨:=DRAWTEXT(CROSS(外下轨,REF(LOW,0))AND REF(外下轨,0)>REF(外下轨,1),REF(LOW,0)-0.5,'2')COLORLIMAGENTA; 买三跌破双轨:=DRAWTEXT(FILTERX(CROSS(内下轨,REF(CLOSE,0))AND CROSS(REF(外下轨,0),REF(CLOSE,0)),5),REF(LOW,0)-0.5,'3')COLORLIMAGENTA; 卖一雏鸡破壳:=DRAWTEXT(CROSS(REF(CLOSE,0),REF(内上轨,0)),REF(HIGH,0)+0.5,'1')COLORGREEN; 卖二破二重天:=DRAWTEXT(CROSS(REF(CLOSE,0),REF(内上轨,0))AND CROSS(REF(CLOSE,0),REF(外上轨,0)),外上轨+0.5,'2')COLORGREEN; 卖三白龙回首:=DRAWTEXT(CROSS(REF(外上轨,1),REF(外上轨,0)),外上轨+0.5,'3')COLORGREEN; 买①跌破内轨:DRAWTEXT(CROSS(REF(内下通道,0),REF(LOW,0)),REF(LOW,0)-0.8,'①')COLORLIMAGENTA; 买②跌破外轨:DRAWTEXT(CROSS(REF(外下通道,0),REF(LOW,0)),REF(LOW,0)-1,'②')COLORLIMAGENTA; 买③跌破双轨:DRAWTEXT(REF(LOW,0)<(内下通道)AND CROSS(REF(外下通道,0),REF(LOW,0)),REF(LOW,0)-1.2,'③')COLORLIMAGENTA; 卖①雏鸡破壳:DRAWTEXT(CROSS(REF(HIGH,0),(内上通道,0)),REF(HIGH,0)+0.8,'①')COLORGREEN; 卖②破二重天:DRAWTEXT(CROSS(REF(HIGH,0),(外上通道,0)),REF(HIGH,0)+1,'②')COLORGREEN; 卖③白龙回首:DRAWTEXT(EXIST(CROSS(REF(内上轨,0),REF(外上轨,0)),7)AND CROSS(REF(内上轨,1),REF(内上轨,0)),REF(外上通道,0)+1.2,'③')COLORGREEN; 持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)POINTDOT;{霓虹篮 COLOR4D4DFF 海军蓝 COLOR23238E} 空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)POINTDOT;{中春绿 COLOR7FFF00 橙色 COLORFF7F00} BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 持仓标识:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20),'*')COLORRED;{海蓝 COLOR70DB93}; 空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20),'*')COLORGREEN;{海蓝 COLOR70DB93}; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {薛斯通道-主图指标} LY:=5; BL:=27; CJQS:=XMA(CLOSE,LY); JBQS:=XMA(CLOSE,BL); N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT); M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT); 外上轨:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1)COLORYELLOW; 外下轨:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9)COLORGREEN; 内上轨:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05)COLORWHITE; 内下轨:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95)COLORRED; 图标1:=DRAWTEXT(O<=内下轨,(L * 0.98),'抢'),COLORYELLOW; 图标2:=DRAWTEXT(CROSS(H,内上轨),(H * 1.01),'逃'),COLORYELLOW; {立桩量} TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01; 图标3:STICKLINE(TJ,C,O+(C-O)/2,1,0),COLOR00FFFF; {一穿三:5、10、20} MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ; 图标4:=STICKLINE(一穿三,O,O+(C-O)/2,1,0),COLORFF00FF; AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0); AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0); AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0); BB1:=0; B1万元:=DVOL*DCLOSE/100; B1差:=B1万元-REF(B1万元,1); B2万元:=DVOL*DCLOSE/100; B2比:=B2万元/REF(B2万元,1); 净流入万元:=(AAA2-AAA3-0.5*AAA4); PM:=MA(净流入万元,1); PMA:=PM/REF(PM,1)>1; PMB:=REF(PMA,1)<1 AND PMA; 密码:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW; 二日比:=密码/REF(密码,1); 选股:PMB AND 密码>REF(密码,1) AND 二日比>1,COLORRED,NODRAW; Y:=CLOSE/REF(CLOSE,1)>1.07; X:=VOL>MA(VOL,5); A1:=Y AND X; 图标5:=DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA; 买①跌破内轨:DRAWTEXT(CROSS(REF(内下轨,0),REF(LOW,0)),REF(LOW,0)-0.5,'①')COLORLIMAGENTA; 买②跌破外轨:DRAWTEXT(CROSS(REF(外下轨,0),REF(LOW,0)),REF(LOW,0)-1,'②')COLORLIMAGENTA; 买③跌破双轨:DRAWTEXT(REF(LOW,0)<(内下轨)AND CROSS(REF(外下轨,0),REF(LOW,0)),REF(LOW,0)-1.5,'③')COLORLIMAGENTA; 卖①雏鸡破壳:DRAWTEXT(CROSS(REF(HIGH,0),(内上轨,0)),REF(HIGH,0)+0.1,'①')COLORGREEN; 卖②破二重天:DRAWTEXT(CROSS(REF(HIGH,0),(外上轨,0)),REF(HIGH,0)+0.3,'②')COLORGREEN; 卖③白龙回首:DRAWTEXT(REF(HIGH,0)>(内上轨)AND CROSS(REF(HIGH,0),REF(外上轨,0)),REF(HIGH,0)+0.5,'③')COLORGREEN; 附加1:=DRAWTEXT_FIX(1,0.03,0.16,0,'所属板块:'),COLORFF6000; 附加2:DRAWTEXT_FIX(1,0.10,0.16,0,HYBLOCK),COLORRED; 附加3:DRAWTEXT_FIX(1,0.165,0.16,0,DYBLOCK),COLORYELLOW; {阶梯均线—主图指标} EXPMA(C,5),COLORCC9900; EXPMA(C,8),COLORCC9900; EXPMA(C,10),COLORCC9900; EXPMA(C,12),COLORCC5599; EXPMA(C,15),COLORCC9900; EXPMA(C,30),COLORFF00FF; EXPMA(C,35),COLORFF00FF; EXPMA(C,40),COLORFF00FF; EXPMA(C,45),COLORFF00FF; EXPMA(C,50),COLORFF00FF; EXPMA(C,57),COLORFF00FF; |
|