卧虎藏龙: 炒股一定要有个好的主图,犹如在大海中的照明塔, 卧虎藏龙主图包括有飞龙、虎、天马过桥、黑马初现、追击等提示,也有减仓、出货等风险提示,更有上下轨、压力位、趋势彩带等比较形象的提示。 源码分享给大家。 指标只是辅助,具体交易要结合大盘和个股情况来看。 A1AA:=9; A2AA:=(REF(CLOSE,A1AA+1)<CLOSE); VAR66:=REF(C,1); VAR77:=SMA(MAX(C-VAR66,0),6,1)/SMA(ABS(C-VAR66),6,1)*100; DRAWGBK(C>0,RGB(10,160,0),RGB(25,15,0),0,' ',0); 上:=(SMA(HIGH,21,2) * 1.05); DRAWTEXT(FILTER(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)),5),(HIGH*0.995),'--减仓'),COLORFFFFFF; 下轨道:(SMA(LOW,21,2) * 0.969),POINTDOT,COLOR00FFFF; BMA:=MA(CLOSE,118); 阻挡:=(SMA(HIGH,21,2) * 1.05); RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=((3 * K) - (2 * D)); RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); K12:=SMA(RSV12,3,1); D12:=SMA(K12,3,1); J12:=((3 * K12) - (2 * D12)); RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=((3 * K24) - (2 * D24)); 支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24)))); 压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),COLOR00FF00; U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50); L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20); RH1:=IF(((J < U2L) AND (REF(J,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND REF(J,1))))); RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1)))); RH42:=IF((HIGH > RH1),J,REF(J,BARSLAST((HIGH > RH1)))); RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J < J24)), HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24))))); RL1:=IF(((J > L2L) AND (REF(J,1) <= L2L)),LLV(REF(LOW,1),(BARSLAST(((J <= L2L) AND (REF(J,1) > L2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((J <= L2L) AND (REF(J,1) > L2L))) - 1)),BARSLAST(((J > L2L) AND REF(J,1))))); RL4:=IF((LOW < RL1),HIGH,REF(HIGH,BARSLAST((LOW < RL1)))); RL42:=IF((LOW < RL1),J,REF(J,BARSLAST((LOW < RL1)))); RL5:=IF((((LOW < RL4) AND (J > RL42)) AND (J > J24)),LOW, REF(LOW,BARSLAST((((LOW < RL4) AND (J > RL42)) AND (J > J24))))); CB:=((AMOUNT / VOL) / 100); CD:=((CB > HIGH) OR (CB < LOW)); 黑马趋势:=MA(CLOSE,3); MAP:=MA(CLOSE,8); AA5:=MA(CLOSE,21); AA10:MA(CLOSE,8),COLOR0000FF; AA12:MA(CLOSE,12),COLOR0000FF; BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10); BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10); MA13:=MA(CLOSE,13); DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < 上)),3), (LOW - 0.07),'追击'),COLORD1E768; AA100:=IF(((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1),AA10,DRAWNULL); AA122:=IF(((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1),AA12,DRAWNULL); DRAWBAND(AA100,RGB(250,0,0),AA12,RGB(0,250,0)); DRAWBAND(AA122,RGB(0,250,0),AA10,RGB(250,0,0)); VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4); 支撑:=EMA(VARD,5); 短期底部:=LLV(OPEN,30); DRAWTEXT(((((((CROSS(黑马趋势,短期底部) AND ((RL5 - REF(RL5,1)) > 0)) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (黑马趋势 > 1)) AND (LOW <= 支撑位)) AND (CLOSE > 支撑位)) AND (HIGH < 压力位)),(LOW - 0.15),'←黑马发现'),COLOR00FFFF; DRAWTEXT((((((((CROSS(黑马趋势,RL5) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (HIGH < 压力位)) AND (LOW <= 短期底部)) AND (CLOSE > 支撑位)) AND (CD < 1)) AND (CLOSE > OPEN)) AND (CLOSE > RL5)),LOW,'←短买'),COLOR00FF00; DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND ((CLOSE - REF(CLOSE,1)) > CLOSE)) AND ((MA(CLOSE,10) - REF(MA(CLOSE,10),1)) > 0)) AND (WINNER(CLOSE) < 0.05)) AND (短期底部 = RL5)) AND (LOW <= RL5)) AND (HIGH < 压力位)),3),LOW,'★机会难得'),COLORFFFFFF; 历史大底:DRAWTEXT(FILTER((((((LLV(LOW,0) AND (WINNER(CLOSE) < 0.08)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)) AND (J < 80)) AND ((CLOSE / OPEN) > 1.08)),20),(LOW - 0.45),'★★历史大底'); DRAWTEXT(FILTER(((((((((LOW <= 短期底部) AND (CLOSE > 压力位)) AND ((AA5 - REF(AA5,1)) > 0)) AND (J < 80)) AND (CLOSE > 支撑位)) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (WINNER(CLOSE) < 0.1)) AND (CLOSE > OPEN)),5),(LOW - 0.15),'★黑马登天'),COLORCDEEC5; X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6); X2:=EMA(X1,10); X3:=REF(X2,1); X4:=((REF(HIGH,1) + REF(LOW,1)) / 2); X5:=(MA(CLOSE,21) + (2 * STD(CLOSE,21))); X6:=REF(CLOSE,1); X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100); X8:=CROSS(79,X7); X9:=FILTER(X8,4); MAP1:=MA(CLOSE,60); 均线30:=MA(CLOSE,30); 均线89:=MA(CLOSE,89); 均线:=MA(CLOSE,16); 均线34:=MA(CLOSE,34); 均线55:=MA(CLOSE,55); VAR1:=EMA(CLOSE,8); VAR2:=EMA(VAR1,20); VAR3:=CROSS(VAR1,VAR2); VAR4:=(VAR1 < MA(CLOSE,60)); VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100); VAR6:=SMA(VAR5,5,1); VAR7:=SMA(VAR6,8,1); VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 16)); VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR8); VARA:=IF((CLOSE > 1000),VAR8,VAR9); 黑马起步:=(VAR3 AND VAR4); 逃遁:=VARA; 均线20:=MA(CLOSE,20); 均线120:=MA(CLOSE,120); 牛熊线:=MA(CLOSE,250); VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120)); VB:=(MA(CLOSE,20) > MA(CLOSE,120)); VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89)); VD:=(MA(CLOSE,20) < MA(CLOSE,120)); VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250)); VF:=(MA(CLOSE,20) > MA(CLOSE,250)); VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20)); DRAWTEXT(FILTER(((((((((OPEN > 均线120) AND (均线20 < 均线120)) AND (LOW <= 均线120)) AND ((均线20 - REF(均线20,1)) > 0)) AND (CLOSE > OPEN)) AND ((均线120 - REF(均线120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= 均线120)),15),LOW,'★120跳马'),COLOR0089E0; DRAWTEXT((((VA AND ((均线120 - REF(均线120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE > OPEN)),LOW,'★宝马望月'),COLORFFFFFF; DRAWTEXT((((((均线 - REF(均线,1)) > 0) AND CROSS(均线20,均线120)) AND (LOW <= 均线120)) AND (CLOSE >= 均线120)),LOW,'三线开花'),COLORFFFFFF; 短期底部2:LLV(HIGH,30),LINETHICK2,COLOR0000FF; 上轨:(SMA(HIGH,21,2) * 1.092),POINTDOT,COLORFFFFFF; 中轨道:(SMA(HIGH,21,2) * 1.017),POINTDOT,COLORFFFFFF; DRAWTEXT(FILTER(((((LOW < 下轨道) AND (CLOSE > MA(CLOSE,15))) AND (CLOSE > 短期底部2)) AND (HIGH < 压力位)),10),LOW,'★短线5%'),COLOR9DC522; DRAWTEXT(((((((HIGH >= 均线120) AND (CLOSE < REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)) AND (CLOSE < 均线120)),(HIGH + 1.05),'减仓'),COLOR00FF00; DRAWTEXT(((VE > VG) AND (HIGH < 阻挡)),(LOW - 0.65),'★黑马短线'),COLOR00FFFF; DRAWTEXT(FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 - REF(X2,1)) > 0)) AND (HIGH < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0.35)),4), (LOW - 0.05),'★黑马狂奔'),COLORD18073; DRAWTEXT((((((((CROSS(支撑,均线) AND (HIGH < 中轨道)) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= X2)) AND (CLOSE >= X2)) AND CROSS(支撑,X2)),LOW,'★黑马起步'),COLOR00FFFF; DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLOR00B4FF; DRAWTEXT(X9 AND CROSS(82,VAR77),(HIGH * 1.03),'出货'),COLOR9000F5; DRAWTEXT((((黑马起步 > 0) AND (LOW <= X2)) AND ((均线 - REF(均线,1)) > 0)), (LOW - 0.11),'★黑马起步'),COLOR00FF00; DRAWTEXT((逃遁 > 0),(HIGH + 0.15),'●逃命'),COLORFFFFFF; RDV:=SMA(LOW,8,1); DRAWTEXT(((((CROSS(K,D) AND (CLOSE >= OPEN)) AND ((X2 - REF(X2,1)) > 0)) ((RDV - REF(RDV,1)) > 0)) AND (K <= 33)),(LOW - 0.08),'★黑马初现'),COLOR8500DE; DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 牛熊线)) AND (HIGH < 阻挡)) AND ((X2 - REF(X2,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH >= X3)),5),(LOW - 0.03),'←黑马筑底'),COLOR85B256; RCK:=(SMA(LOW,21,2) * 0.95); 趋势线:=SMA(LOW,5,1); 飞龙:DRAWTEXT(((CROSS(趋势线,RCK) AND (LOW <= X2)) AND ((X2 - REF(X2,1)) > 0)), LOW,'←★飞龙'),COLORE50000; B1:=(((HIGH + LOW) + CLOSE) / 3); B6:=HHV(B1,(4 * 15)); B7:=LLV(B1,(4 * 15)); B8:=(B6 - B7); 飞龙顶底线:=(MA(((B1 - B7) / B8),2) * 80); DRAWTEXT(FILTER(((((((飞龙顶底线 <= 1) AND (WINNER(CLOSE) < 0.02)) AND (HIGH < 趋势线)) AND (CLOSE > OPEN)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)),8),(LOW - 0.02),'←黑马寻底'),COLORE7DD1F; DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.015)) AND ((OPEN / CLOSE) > 0.99)) AND ((J - REF(J,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH < 支撑位)) AND (CLOSE > 短期底部)),25),(LOW - 0.09),'←开始建仓'),COLOR00FFFF; DRAWTEXT(FILTER((((((((LOW <= 均线30) AND ((AA10 - REF(AA10,1)) > 0)) AND ((均线 - REF(均线20,1)) > 0)) AND ((趋势线 - REF(趋势线,1)) > 0)) AND (CLOSE >= 均线30)) AND (WINNER(CLOSE) < 0.15)) AND ((CLOSE / OPEN) > 1.01)),3), LOW,'★天马奔月'),COLOR76B0FC; DRAWTEXT((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0)) AND (CLOSE > 均线89)) AND (BB10 > 1)) AND ((CLOSE / OPEN) > 1.04)), LOW,'★天马过桥'),COLORCC99FF; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.8,0),COLORFF6C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.5,0),COLORFF7B00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.2,0),COLORFF9C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.8,0),COLORFFBE00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFCC00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1,0),COLORFFFF00; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.8,0),COLOR0000A3; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.5,0),COLOR0000B7; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.8,0),COLOR0000CD; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR0000E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR0754E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR076EF3; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2.5,0),COLOR009FFF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),COLOR00B5FF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,1.5,0),COLOR00E4FF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0,0),COLOR00FFFF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0,0),COLOR00FFFF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 阻挡)) AND (CLOSE < 阻挡)),OPEN,LOW,0,0),COLORFF76FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 阻挡)) AND (CLOSE < 阻挡)),CLOSE,HIGH,0,0),COLORFF76FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 阻挡)) AND (CLOSE < 阻挡)),CLOSE,OPEN,2.5,0),COLORFF62FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 阻挡)) AND (CLOSE < 阻挡)),CLOSE,OPEN,2,0),COLORFF76FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 阻挡)) AND (CLOSE < 阻挡)),CLOSE,OPEN,1.5,0),COLORFFA8FF; VVARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VVARB:=EMA(0.667*REF(VVARA,1)+0.333*VVARA,5); DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VVARA>=VVARB AND VVARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.95,'★虎'); VVAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VVAR2:=REF(VVAR1,1); VVAR3:=SMA(MAX(VVAR1-VVAR2,0),10,1)/SMA(ABS(VVAR1-VVAR2),10,1)*100; HY3:=IF(COUNT(VVAR3<20,5)>=1 AND COUNT(VVAR1=LLV(VVAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWTEXT(HY3,LOW,' 注意买入'),COLORRED; 多周期KD、多周期CCI 无未来,未加密: 本公式 多周期KD、多周期CCI 的特点: 指标用法是在大周期买点中找小周期买点,成功率非常高(顶尖财经 股票学院: www.58188.com) 多周期CCI用法是紫线上穿中轴线接入,多周期KD紫色是月线级别行情,褐色是周线级别行情,黄色是日线级别行情,可以在月线级别行情中去找周线或者日线级别的买点,大概就这样,没有太多技术含量楼主推荐 推荐 多周期CCI {CCI日周月}{改编 BY SHUHONG} {} {BSQJ指标}{买卖区间} 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); STICKLINE(买线>=卖线,0,10,2,1),COLOR2040FF; STICKLINE(买线<卖线,0,-10,2,1),COLOR6CE424; {} 月CCI:"CCI.CCI#MONTH",COLORFF0080,LINETHICK4; 周CCI:"CCI.CCI#WEEK",COLOR0080FF,LINETHICK3; 日CCI:"CCI.CCI",COLORWHITE,LINETHICK2; {} DRAWTEXT(ISLASTBAR,月CCI,' ←月CCI'),COLORFF0080; DRAWTEXT(ISLASTBAR,周CCI,' ←周CCI'),COLOR0080FF; DRAWTEXT(ISLASTBAR,日CCI,' ←日CCI'),COLORWHITE; 多周期KD N:=9;M1:=3;M2:=3; RSV8:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV8,M1,1),COLORGREEN; D:=SMA(K,M2,1),COLORWHITE; J:=(3*K-2*D); RSV9:=(CLOSE-LLV(LOW,N*3.3))/(HHV(HIGH,N*3.3)-LLV(LOW,N*3.3))*100; A1:=SMA(RSV9,M1*3.3,1); B1:=SMA(A1,M2*3.3,1); E1:=3*A1-2*B1; RSV10:=(CLOSE-LLV(LOW,N*11))/(HHV(HIGH,N*11)-LLV(LOW,N*11))*100; A2:=SMA(RSV10,M1*11,1); B2:=SMA(A2,M2*11,1); E2:=3*A2-2*B2; DRAWBAND(B2,RGB(0,199,140),A2,RGB(138,43,226)); VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K13:SMA(VAR13,3,1); D13:SMA(K13,3,1); DRAWBAND(K13,RGB(255,255,0),D13,RGB(0,255,0)); {STICKLINE(K13>D13,K13,D13,8,0),COLOR0055AA; STICKLINE(K13>D13,K13,D13,5,0),COLOR0077CC; STICKLINE(K13>D13,K13,D13,3,0),COLOR0099DD; STICKLINE(K13>D13,K13,D13,1,0),COLOR01BEE7; STICKLINE(K13<=D13,K13,D13,8,0),COLOR006600; STICKLINE(K13<=D13,K13,D13,5,0),COLOR009900; STICKLINE(K13<=D13,K13,D13,3,0),COLOR00BB00; STICKLINE(K13<=D13,K13,D13,1,0),COLOR00CC00;} 20,COLORWHITE; 80,COLORWHITE; 50,COLORWHITE; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; RSV1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100; 长K:SMA(RSV1,5,1),POINTDOT,COLORRED; 长D:SMA(长K,5,1),POINTDOT,COLORGREEN; STICKLINE(长K>长D,长K,长D,2.5,-1),COLORRED; STICKLINE(长K<=长D,长K,长D,2.5,-1),COLORGREEN; 宇宙双龙操盘: M:=13; 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); VARW1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VARW2:=REF(VARW1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARW3:=REF(VARW2,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); VARW4:=REF(VARW3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARW5:=REF(VARW4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARW6:=REF(VARW5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARW7:=REF(VARW6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARW8:=REF(VARW7,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); VARW9:=REF(VARW8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARWA:=REF(VARW9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARWB:=REF(VARWA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARWC:=REF(VARWB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); 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,0),COLORRED; STICKLINE(VARW1 OR VARW2 OR VARW3 OR VARW4 OR VARW5 OR VARW6 OR VARW7 OR VARW8 OR VARW9 OR VARWA OR VARWB OR VARWC,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); VARWD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VARWE:=REF(VARWD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARWF:=REF(VARWE,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); VARW10:=REF(VARWF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARW11:=REF(VARW10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARW12:=REF(VARW11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARW13:=REF(VARW12,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); VARW14:=REF(VARW13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARW15:=REF(VARW14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARW16:=REF(VARW15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARW17:=REF(VARW16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARW18:=REF(VARW17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); 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,0),COLORYELLOW; 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; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA; 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; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR008800; STICKLINE(VARWD OR VARWE OR VARWF OR VARW10 OR VARW11 OR VARW12 OR VARW13 OR VARW14 OR VARW15 OR VARW16 OR VARW17 OR VARW18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66; RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; VARW1A:=REF(VARW1 OR VARW2 OR VARW3 OR VARW4 OR VARW5 OR VARW6 OR VARW7 OR VARW8 OR VARW9 OR VARWA OR VARWB OR VARWC,1) AND VARWD; RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; STICKLINE(VARW1A,REF(CLOSE,1),REF(CLOSE,2),5,2),COLOR00FF00; STICKLINE(VARW1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00D900; STICKLINE(VARW1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBLUE; STICKLINE(VARW1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090FF2; 压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FF33,LINETHICK1; 支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORCC33CC,LINETHICK1; 支撑价:LLV(LOW,34) ,COLOR7FFF00,COLORWHITE; 阻力价:HHV(HIGH,34),COLORFF9900,COLORLIBLUE,LINETHICK1; PMA:MA(C,5),COLORWHITE,LINETHICK2; IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2; IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2; DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,30),L,'极品绝底'), LINETHICK1; 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,COLORFF00FF,LINETHICK2; DD:=多空线<REF(多空线,1); A:=(PMA>多空线); IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4; VARW21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1); VARW22:=8; WW:=CROSS(VARW21,VARW22); DRAWTEXT(WW,L*0.98,'买进!'),COLOR0099FF; |