波段操盘主图公式 源码 想赔钱都难

2015-10-28 22:00:00来源:本站整理浏览:228

波段操盘主图公式 源码 想赔钱都难

{波段操盘}
我稍加整合,感谢各位老师的原始思路。
1,红K持股,绿K持币。
2,凹字金K是倍量。
3,启字粉K是买点,大势不好时慎用。
4,色带是持股平均成本。
5,绝顶白灰K不用说你也懂得。
6,大盘线用来对比股票的强弱。
7,由于有些函数老版本的不认,所以要去掉大盘和大盘线这两行。
8,笑脸是地量反弹。
 

源码


{波段操盘源码}

DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,"",0);
大盘:=EMA(INDEXC,500)/EMA(C,500); 
大盘线:INDEXC/大盘,LINETHICK1,COLOR0066FF;
N:=10;
MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL),LINETHICK;
平均成本:MA(MCST,N), LINETHICK;
DRAWBAND(MCST,RGB(241,82,54),平均成本,RGB(48,143,16));
贵:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100+20;
阿贵:=MA(贵,5);
天狼:=MA(阿贵,3);
VAR1:=EMA(C,5);
VAR2:=MA((LLV(C,9))*1.1,14);
底线:=2*VAR2-VAR1-C*0.1,COLORWHITE;
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE COLORMAGENTA;
STICKLINE(阿贵>=天狼,L,H,0,1),COLORRED;
STICKLINE(阿贵>=天狼,C,O,3.2,2),COLORRED;
STICKLINE(天狼>阿贵,L,H,0,1),COLORGREEN;
STICKLINE(天狼>阿贵,C,O,3.2,2),COLORGREEN;
{红}
STICKLINE(阿贵>=天狼,HIGH,LOW,0,0 ),COLOR000DDD;
STICKLINE(阿贵>=天狼,OPEN,CLOSE,3.2,0 ),COLOR000777;
STICKLINE(阿贵>=天狼,OPEN,CLOSE,2.7,0 ),COLOR000999;
STICKLINE(阿贵>=天狼,OPEN,CLOSE,2.1,0 ),COLOR000BBB;
STICKLINE(阿贵>=天狼,OPEN,CLOSE,1.5,0 ),COLOR000DDD;
STICKLINE(阿贵>=天狼,OPEN,CLOSE,0.3,0 ),COLOR000FFF;
{绿}
STICKLINE(天狼>阿贵,OPEN,CLOSE,3.2,0),COLOR005500;
STICKLINE(天狼>阿贵,OPEN,CLOSE,2.7,0),COLOR007700;
STICKLINE(天狼>阿贵,OPEN,CLOSE,2.1,0),COLOR009900;
STICKLINE(天狼>阿贵,OPEN,CLOSE,1.5,0),COLOR00BB00;
STICKLINE(天狼>阿贵,OPEN,CLOSE,0.9,0),COLOR00FF00;
{粉}
STICKLINE(CROSS(阿贵,底线),L,H,0,1),COLORMAGENTA;
STICKLINE(CROSS(阿贵,底线),OPEN,CLOSE,3.2,0),COLOR550055;
STICKLINE(CROSS(阿贵,底线),OPEN,CLOSE,2.7,0),COLOR770077;
STICKLINE(CROSS(阿贵,底线),OPEN,CLOSE,2.1,0),COLOR990099;
STICKLINE(CROSS(阿贵,底线),OPEN,CLOSE,1.5,0),COLORBB00BB;
STICKLINE(CROSS(阿贵,底线),OPEN,CLOSE,0.9,0),COLORDD00FF;
DRAWTEXT(CROSS(阿贵,底线),(L-0.092),"启"),COLORMAGENTA;
T7:=REF(VOL,6)/REF(VOL,7)>=2;
 T6:=REF(VOL,5)/REF(VOL,6)>=2;
 T5:=REF(VOL,5)/REF(VOL,4)>=1.5;
 T4:=REF(VOL,4)/REF(VOL,3)>=1.5;
 T3:=REF(VOL,2)/REF(VOL,3)>=1.5;
 T12:=V/REF(VOL,1)>2;
 T0:=C>O AND C>REF(C,1);
 凹口选股:=T7 AND T12 AND T0 OR T6 AND T12 AND T0 OR T5 AND T12 AND T0 OR T4 AND T12 AND T0
 OR T3 AND T12 AND T0 ;
DRAWTEXT(凹口选股,(L-0.092),"凹"),COLORYELLOW;
STICKLINE(凹口选股,OPEN,CLOSE,0,0),COLOR000DDD;
STICKLINE(凹口选股,OPEN,CLOSE,3.2,0),COLOR003333;
STICKLINE(凹口选股,OPEN,CLOSE,2.7,0),COLOR005555;
STICKLINE(凹口选股,OPEN,CLOSE,2.1,0),COLOR007777;
STICKLINE(凹口选股,OPEN,CLOSE,1.5,0),COLOR009999;
STICKLINE(凹口选股,OPEN,CLOSE,0.9,0),COLOR00BBBB;
STICKLINE(凹口选股,OPEN,CLOSE,0.3,0 ),COLOR00DDDD;
{www.gpxiazai.com}
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
顶:REFDATE(高1,DATE),COLORBLACK;
绝顶:=REFDATE(顶,DATE),NODRAW;
跑:=绝顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;
STICKLINE(跑,C,O,3,0),COLOR777777;
STICKLINE(跑,C,O,2,0),COLORAAAAAA;
STICKLINE(跑,C,O,1,0),COLORCCCCCC;
STICKLINE(跑,C,O,0.1,0),COLORFFFFFF;
STICKLINE(跑,L,H,0,0),COLORFFFFFF;
DRAWTEXT(跑,C*1.01,"绝顶")COLORAAAAAA;
实量:=VOL,VOLSTICK;
收阳线:=(C>REF(C,1));
地量1:=VOL<LLV(VOL,60)*1.001;
地量:=地量1 AND 收阳线;
地量反弹:=收阳线 AND VOL>REF(VOL,1)*1.05 AND REF(地量,1);
DRAWICON(地量反弹,(L*0.90),5);

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式