波段卧龙主图指标 (源码)

2012-04-11 08:16:00来源:本站整理浏览:242

大智慧波段卧龙主图指标公式股票软件源码如下:

DRAWGBKLAST(v>1,STRIP(RGB(0,0,205),RGB(60,179,113),0));
{操盘趋势}
{股票概况}
DRAWTEXTREL(20,20,'买入:B1在连续红色持股区?是否板块领头羊??'),LINETHICK2,Coloryellow;
DRAWTEXTREL(20,80,'三线归一线,你的买入点。十八线上翘,犹如冲锋号。'),LINETHICK2,Colorred;
{操盘线}
MAA:=MA(C,3);
MAB:=MA(C,8);
FILLRGN(MAA,MAB,MAA>MAB,rgb(255,0,0),MAA<MAB,rgb(0,255,0));
生命线:sum(vol*(o+c)/2,88)/sum(vol,88),colorff80ff,linethick2;
持股线:hhv(ma(C,18),2),color00d500;
分离线:if(ma(C,18)<持股线,(ma(C,18)-(持股线-ma(C,18))),持股线),color80ffff,linethick2;
MA18:ma(C,18),linethick2,colorf4e202;
{www.gpxiazai.com 股票软件下载网_大智慧股票指标公式}
角度:ATAN((MA18/REF(MA18,1)-1)*100)*180/3.14159,linethick0;
UPPERL: MA(HIGH,15)*(1+15/130),coloryellow,linethick3;
LOWERL: MA(LOW,15)*(1-15/130),colorred,linethick3;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,7,1),colorFFFF33;
STICKLINE((VAR2 < MA(VAR3,6)),LOW,(MIN(OPEN,CLOSE) * 1.001),0.6,0),colorFFFF33;
STICKLINE((VAR2 < MA(VAR3,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),colorFFFF33;
STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,7,1),color4440FF;
STICKLINE((VAR2 > MA(VAR3,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;
STICKLINE((VAR2 > MA(VAR3,6)),LOW,(MIN(CLOSE,OPEN) * 1.001),0.8,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),
(CLOSE * 1.0025),4.5,0),colorFFFF33;
STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),
(OPEN * 1.0025),4.5,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))),
CLOSE,OPEN,7,0),colorFFFF33;
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.990),'B '),color4440FF,linethick2;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.025),'S '),colorFFFF34,linethick2;
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30);
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
买:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
优:=买 AND MA5>REF(MA5,1);
DRAWTEXT(优,L*0.980, 'B1'),coloryellow;
aa:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(aa,open,close,8,0),coloryellow;
STICKLINE(aa,low,HIGH,0.5 ,0 ),coloryellow;
{波段卧龙}
A1:=MA(C,5)<MA(C,10) AND CROSS(C,MA(C,10)) AND V>MA(V,10) AND MA(C,5)>REF(MA(C,5),1);
A2:=MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND V>MA(V,5) AND CROSS(C,MA(C,5));
STICKLINE((A1>0 OR A2>0),open,close,8,0),COLORFF66FF;
STICKLINE((A1>0 OR A2>0),low,HIGH,0.5 ,0 ),COLORFF66FF;
{见好就收}
LC:=REF(CLOSE,1);
JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,JH),HIGH*1.02,'☆小心'),colorFFFF34;

大智慧波段卧龙主图指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式