用法:趋势线上穿红色区域可以短线关注;成功率我没测试过,所以我随便附上选股公式给大家,你们就自己去测试吧。准不准不清楚,反正我是负责提供源码。
{仿趋势王副图}
NOTEXT超强:0.3;
NOTEXT强:0;
NOTEXT弱:-0.2;
NOTEXT底:-0.3;
STICKLINE(C>0,NOTEXT底,NOTEXT弱,6,0)COLORFF0000;
STICKLINE(C>0,NOTEXT弱,NOTEXT强,6,0)COLOR2E5B00;
STICKLINE(C>0,NOTEXT强,NOTEXT超强,6,0)COLOR160973;
LC:=REF(CLOSE,1);
AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=8*X/R*MAX(AA,BB)/333.333;
趋势:SUM(SI,0),COLORYELLOW,LINETHICK2;
{仿趋势王选股}
LC:=REF(CLOSE,1);
AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=8*X/R*MAX(AA,BB)/333.333;
趋势:=SUM(SI,0);
XG:CROSS(趋势,0);
{老师的猎艳彩虹源码}
{猎艳彩虹}
DRAWTEXT_FIX(1,0.9,90,0,'猎手工作室出品') , COLORRED ;
MID:=(3*C+L+O+H)/6;
VARA:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)
+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)
+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF
(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF
(MID,20))/210,COLORYELLOW,LINETHICK2;
平台压力:HHV(H,250)COLORCYAN;{可以不要,不然有些弱势横盘整理的股票会看不清楚}
EMA(VARA,5)COLORFF00FF;
EMA(VARA,10)COLORFF00FF;
EMA(VARA,20)COLORFF00FF;
EMA(VARA,30)COLORFF00FF;
EMA(VARA,40)COLORFF00FF;
EMA(VARA,50)COLORFF00FF;
EMA(VARA,60)COLORFF00FF;
EMA(VARA,70)COLORFF00FF;
EMA(VARA,80)COLORFF00FF;
EMA(VARA,90)COLORFF00FF;
EMA(VARA,100)COLORFF00FF;
EMA(VARA,110)COLORFF00FF;
EMA(VARA,120)COLORFF00FF;
EMA(VARA,130)COLORFF00FF;
EMA(VARA,140)COLORFF00FF;
EMA(VARA,150)COLORFF00FF;
EMA(VARA,160)COLORFF00FF;
EMA(VARA,170)COLORFF00FF;
EMA(VARA,180)COLORFF00FF;
EMA(VARA,190)COLORFF00FF;
EMA(VARA,200)COLORFF00FF;
EMA(VARA,210)COLORFF00FF;
EMA(VARA,220)COLORFF00FF;
EMA(VARA,230)COLORFF00FF;
EMA(VARA,240)COLORFF00FF;
EMA(VARA,250)COLORFF00FF;
DRAWKLINE(HIGH,OPEN,LOW, CLOSE);
DRAWICON(CROSS(C,VARA),L*0.99,7)COLORFF00FF;
DRAWICON(CROSS(VARA,C),H*1.01,8)COLORFF00FF;