超级波段,有用法,有详细分析未来函数的作用: 本指标适合抄底及波段特征明显个股,暴跌途中慎用! 大牛:长线大牛股,目标翻倍;中短牛:15天目标10%-20%! 以上信号结合RSI低位时用更加可靠,盘整市中信号偏多! 当大牛\中牛\短牛同一天出现时,果断买入! 源码如下: N1:=5;N2:=10; STICKLINE(C>0,0,10,15,0),COLOR781816; LC:=REF(CLOSE,1); RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1; RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00FFFF; VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); MA5:=EMA(C,5); MA13:=EMA(C,13); UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),0),COLOR0000FF; DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00; BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1); 0,COLORFF00FF; 10,COLORFF0000; STICKLINE(UP,0,0.2,3,0),COLOR0000FF; STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00; STICKLINE(BT,0,3,2,0),COLOR000088; STICKLINE(BT,0,3,1,0),COLOR0000CC; STICKLINE(BT,0,3,0.22,0),COLOR0000FF; DRAWTEXT(BT,3,'短牛'),COLOR0000FF; TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82; STICKLINE(TJ1,0,2,3,0),COLOR880088; STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA; STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC; STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF; DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF; HR:=HHV(HIGH,55); HRY:=LLV(LOW,55); HRY11:=HR*HRY; HRY33:=SQRT(HRY11); TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(TJ2,0,1,5,0),COLOR008888; STICKLINE(TJ2,0,1,2,0),COLOR00AAAA; STICKLINE(TJ2,0,1,1,0),COLOR00CCCC; STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF; DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF; ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1); STICKLINE(ST,10,9,5,0),COLOR008800; STICKLINE(ST,10,9,2,0),COLOR00AA00; STICKLINE(ST,10,9,1,0),COLOR00CC00; STICKLINE(ST,10,9,0.2,0),COLOR00FF00; DRAWTEXT(ST,9,'卖'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=89,9.5,'★本指标适合抄底及波段特征明显个股,暴跌 途中慎用!!'),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=89,8.7,'★大牛:长线大牛股,目标翻倍; 中短牛:15天目标10%-20%!!'),COLOR0078FF; DRAWTEXT(CURRBARSCOUNT=89,8.0,'★以上信号结合RSI低位时用更加可靠,盘整市中信号偏多!!'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=89,7.3,'★当大牛\中牛\短牛同一天出现时, 果断买入!!'),COLOR00FFFF; 发现未来函数LLV! 发现未来函数HHV! 发现未来函数DRAWLINE! 发现未来函数BARSLAST! 发现未来函数SMA! 分析这个公式有关的未来函数的讨论: DRAWLINE函数,高成功率指标背后的风险! 一直以来都有很多的指标号称高成功率,且用未来函数检测工具检查,结果没有任何未来函数。 面对这样的指标,众多股市新手如获至宝,可是实际操作起来却屡屡受挫,信号常常发生偏移! 我检查了较多的高成功率的指标,发现它们基本都有一个特性:含有函数DRAWLINE()。 早有前辈早已指出:DRAWLINE只是图形上绘制直线段函数,不是未来函数。这个说法没有错,DRAWLINE()本身姿势图形绘制直线段函数,不是未来函数。 那么,问题出在哪儿呢? 问题在于把DRAWLINE返回值赋值给某变量。如ABC:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),LOW,0); 首先要说明的是,DRAWLINE(COND1,PRICE1,COND2,PRICE2,EXPAND)函数画线有个特色,COND1常常成立,但是只有COND2成立后才画出线段。 ABC:DRAWLINE这条赋值语句呢,在COND2未成立时,赋值是空的,但是如果后面COND2成立了,ABC就被赋值了,此时信号将发生偏移。 这种特性完全就是未来函数! 最常见的主图名称就是:区间买卖,魔鬼通道等等名字,问题就出现在以下的划线代码中: N1:=7; LC:=REF(CLOSE,1); X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW,LINETHICK1; 魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00; 魔王:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),1,X),COLOR00FF00; TJ0:=X=魔王; TJ1:=X=魔鬼; TJ2:=X<REF(X,1); TJ3:=X>REF(1,X); JRS1:=DRAWICON(TJ1 AND TJ2,X,1); JRS2:=DRAWICON(TJ0 AND TJ3,X,2); DRAWICON(FILTER(JRS1>0,1),L*0.97,1); DRAWICON(FILTER(JRS2>0,1),H*1.02,15); 以上的代码如果对照历史,成功率可以达到100%,并且100%是买在最低价,卖在最高价!如果真的这样,你家比国库的钱都多了!所以大家可以检查一下你使用的指标中是否含有以上类似的划线代码,有的话你可以在实战中看看,昨天下跌,信号就出现在昨天,今天下跌,信号就出现在今天,明天下跌,信号就出现在明天! DRAWLINE 绘制直线段,不是未来函数。但引用的画线会变时就有了未来函数的特性!!也就是说线条会随条件的变化而偏移改动,但不属于信号漂移!!! 股舞风云瀑布线: 某群的招会员的公式 {股舞风云瀑布线} VAR100:=1; VAR1:=(2*CLOSE+HIGH+LOW+OPEN)*VAR100/5; A1: (EMA(VAR1,3)*VAR100+EMA(VAR1,6)*VAR100+EMA(VAR1,12)*VAR100+EMA(VAR1,24))/4*VAR100; A2: EMA(A1,2),COLORLIGRAY; A3: EMA(A2,2)*VAR100; A4: EMA(A3,2)*VAR100; A5: EMA(A4,2)*VAR100; A6: EMA(A5,2)*VAR100; A7: EMA(A6,2)*VAR100; 长趋线:EMA(CLOSE,55)*VAR100, CIRCLEDOT; VAR11:=MA(CLOSE,1)*VAR100; VAR22:=MA(CLOSE,3)*VAR100; VAR33:MA(VAR22,1)*VAR100; VAR44:MA(VAR22,3)*VAR100; STICKLINE(VAR33>VAR44*VAR100,VAR33*VAR100,VAR44*VAR100,1,0),COLORFF00FF; STICKLINE(VAR33<VAR44*VAR100,VAR33*VAR100,VAR44*VAR100,1,0),COLORFFCC00; A:=IF(CLOSE>=OPEN,(CLOSE-OPEN)/4,0)*VAR100; {阳线上下影} STICKLINE(CLOSE>=OPEN,CLOSE,HIGH,0,0), COLORRED; STICKLINE(CLOSE>=OPEN,OPEN,LOW,0,0), COLORRED; {阴线上下影} STICKLINE(CLOSE<OPEN,OPEN,HIGH,0,0), COLOR00EC00; STICKLINE(CLOSE<OPEN,CLOSE,LOW,0,0), COLOR00EC00; {阳K线} STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.8.2,0),COLOR0000B5; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.9.2,0),COLOR0000C5; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.8,0),COLOR0000D4; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.4,0),COLOR0000EC; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.2,0),COLOR0000FF; {阴K线} STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.8.2,0),COLOR009000; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.9.2,0),COLOR00B400; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.8,0),COLOR00C100; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.4,0),COLOR00DB00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.2,0),COLOR00EC00; ZDZ:=CONST(HHV(MAX(H,长趋线),120)); ZXZ:=CONST(LLV(MIN(L,长趋线),120)); T1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),STRCAT('敢死队席位:',EXTERNSTR(0,13)),''); T2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),STRCAT('智能诊断:',EXTERNSTR(0,12)),''); T3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),STRCAT('年报业绩:',EXTERNSTR(0,8)),''); T4:=IF(FINDSTR(EXTERNSTR(0,10),','),STRCAT('主题投资:',EXTERNSTR(0,10)),''); T5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),STRCAT('解禁日期:',EXTERNSTR(0,15)),''); T6:=IF(FINDSTR(EXTERNSTR(0,1),','),STRCAT('决策提示:',EXTERNSTR(0,1)),''); T7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),STRCAT('业绩预报:',EXTERNSTR(0,14)),''); T8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),STRCAT('机构评级:',EXTERNSTR(0,11)),''); T9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),STRCAT('中报业绩:',EXTERNSTR(0,9)),''); N:=IF(TOTALBARSCOUNT>=120,120,TOTALBARSCOUNT); {本输出适用于锁定K线数为120,N可改为你习惯的K线数,见下图} HH0:=HHV(H,N); LL0:=LLV(L,N); MM0:=CONST((HH0+LL0)*0.5); S01:=CONST(IF(REF(C,N-15)>MM0,1.00,-0.08)); S02:=CONST(IF(REF(C,N-15)>MM0,-1,1)); S1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),S01+(0.08*S02),S01),NODRAW; S2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),S1+(0.08*S02),S1),NODRAW; S3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),S2+(0.08*S02),S2),NODRAW; S4:=IF(FINDSTR(EXTERNSTR(0,10),','),S3+(0.08*S02),S3); S5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),S4+(0.08*S02),S4); S6:=IF(FINDSTR(EXTERNSTR(0,1),','),S5+(0.08*S02),S5); S7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),S6+(0.08*S02),S6); S8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),S7+(0.08*S02),S7); S9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),S8+(0.08*S02),S8); KK:=IF(S1<=0,0.05,IF(S1>=0,-0.05,0)); DRAWTEXT_FIX(1,0,S1+KK,0,T1)COLOR00FFFF; DRAWTEXT_FIX(1,0,S4+KK,0,T4)COLOR0088FF; DRAWTEXT_FIX(1,0,S5+KK,0,T5)COLOR00FF00; DRAWTEXT_FIX(1,0,S6+KK,0,T6)COLOR0000FF; 最佳买点副图(顶尖股票学院: http://58188.com): VAR1:=REF(CLOSE,1); VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100; FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5); BIAS1:=(C-MA(C,6))/MA(C,6)*100; BIAS2:=(C-MA(C,12))/MA(C,12)*100; BIAS3:=(C-MA(C,24))/MA(C,24)*100; BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6; 乖离:=MA(BIAS,3); STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,0.75,0,1,0),COLORRED; VF1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,4)/10; 高: "DMI.PDI"(14,6)>33 AND "DMI.MDI"(14,6)<10 AND "DMI.ADX"(14,6)>40 AND "DMI.ADXR"(14,6)>45, STICK; 危险: HHV(VF1,4)>0.38 OR VF1>0.25 AND 高, STICK; 可买:IF(高=1 AND HIGH-CLOSE>CLOSE-LOW AND VOL>HHV(VOL,13)*0.4 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.03,-0.50,0), STICK; 调整: IF(高=0 AND HHV(高,5)>0,-0.5,0), STICK; 可卖: IF(危险=1 AND HIGH-CLOSE>CLOSE-LOW AND VOL>HHV(VOL,20)/2 AND CLOSE<OPEN*1.01,-0.75,0), STICK; 卖出: IF(危险=0 AND HHV(危险,3)>0,-1,0), STICK; 遇警: IF(可卖=-0.75,-0.75,IF(卖出<0,-1,IF(危险>0,1,IF(调整<0,-0.5,高)))), COLORSTICK; 操盘手联盟:IF(可卖=-0.75,-0.75,IF(卖出<0,-1,IF(危险>0,1,IF(调整<0,-0.5,高)))),COLORRED; |