极品布林主图35+布林+涨3%+回调买入+动因买入[同花顺公式]
相关标签:涨停回调买入主图指标 、 回调买入指标公式源码 、 突破买入主图指标源码 、 回调50%主图公式源码 、 回调起涨指标源码 、 买入就涨指标源码 、 同花顺主图公式源码 、 135战法主图源码 、 牛股回调买入主图 、 同花顺买入指标公式 、 布林回踩主图源码 、 同花顺买入抄底指标 、 通达信布林主图源码 、 布林主图公式源码 、 同花顺分时主图指标 、
黄色买入箭头为3%;//布林线
原理解析:
来源:程序化99( WWW.CXH99.COM )
源码:
MID:MA(CLOSE,20);
UPPER: MID + 2*STD(CLOSE,20);
LOWER: MID - 2*STD(CLOSE,20);
强:((UPPER-MID)/2)+MID,DOTLINE;
//涨停回调
CC3:=REF(C,1);
涨停:=IF((C-CC3)*100/CC3>=(10-0.01*100/CC3),1,0);
STICKLINE(涨停,OPEN,CLOSE,0.5,0),coloryellow;
跌停:=IF((CC3-C)*100/CC3>=(10-0.01*100/CC3),1,0);
STICKLINE(跌停,OPEN,CLOSE,0.5,0),COLOR666600;
均价线:=AMOUNT/VOL;
C2:=REF(C,1);
B1:='┄┄┄┄┄';
DRAWTEXT(均价线 AND 涨停,均价线,B1),colorgreen;
B3:='┄┄┄┄┄';
DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),colormagenta;
B2:='┄┄┄┄┄';
DRAWTEXT(涨停,L,B2),colorgray;
支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorred;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
HH:=COUNT(涨停,13)>=1;
STICKLINE(PP2 AND HH,OPEN,CLOSE,0.8,0),colorblue;
STICKLINE(PP AND HH,OPEN,CLOSE,0.8,0),colorblue;
STICKLINE(PP3 AND HH,OPEN,CLOSE,0.8,0),colorblue;
A:=SMA(L,4,3),NODRAW;
STICKLINE(A AND REF(PP,1) AND HH ,A*0.9999,A*0.9979,5,0),colorgreen;
DRAWICON(A AND REF(PP,1) AND HH,L*0.98,1);
STICKLINE(A AND REF(PP3,1) AND HH ,A*0.9999,A*0.9979,5,0),colorgreen;
DRAWICON(A AND REF(PP3,1) AND HH,L*0.98,1);
//135上法
EMA13:=EMA(C,13),colorwhite,LINETHICK2;
EMA34:=EMA(C,34),coloryellow;
EMA55:=EMA(C,55),COLORFF00FF;
EMA120:=EMA(C,120),COLORFFCC66;
差:=IF(EMA13>EMA55,(EMA13-EMA55)/EMA55,0);
低:=SMA(L,4,3),NODRAW;
A1:=EMA13*1.035;
B:=(REF(L,1)-REF(EMA13,1))/2+REF(EMA13,1),NODRAW;
Y:=(MA(C,11)-MA(C,55))/MA(C,11)*100;
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
均线互换:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);
DRAWTEXT(均线互换,L*0.98,'均线互换'),COLOR0099FF;
STICKLINE(均线互换,H,L,0,1),COLOR0099FF;
STICKLINE(均线互换,O,C,3,1),LINETHICK2,COLOR0099FF;
YY1:=C>MA(C,11) AND OPEN<MA(C,11);
YY3:=C>MA(C,33) AND OPEN<MA(C,33);
YY5:=C>MA(C,55) AND OPEN<MA(C,55);
DRAWTEXT(YY1 AND YY5 AND YY3,LOW*0.99,'一阳三线'),colorred;
ZD1:=C<EMA(C,13) AND OPEN>EMA(C,13) AND C<EMA(C,34) AND OPEN>EMA(C,34);
ZD2:=C<EMA(C,55) AND OPEN>EMA(C,55) AND (C-REF(C,120))/REF(C,120)>0.5;
ZD3:=ZD1 AND ZD2;
ZD:=ZD3 AND FILTER(ZD3,10);
DRAWTEXT(ZD,LOW-0.2,'断头铡刀'),colorblue;
DRAWTEXT(CROSS(EMA34,EMA13),EMA34*1.01,'分'), COLOR00FF00;
下影线:=(C-L)>(H-C);
DRAWTEXT(EXIST(均线互换,25) AND LOW<=EMA55 AND EMA13>=REF(EMA13,1) ,L*0.99,'#');
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
DRAWTEXT( VOLUME>MAVOL1 AND VOLUME>MAVOL2 AND REF(C,1)<EMA13 AND C>EMA13 AND
C<A1 AND EMA13>EMA34 AND C>=REF(C,1),L*0.995,'▲'),colorred;
LCC:=REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;
RSI12:=SMA(MAX(CLOSE-LCC,0),12,1)/SMA(ABS(CLOSE-LCC),12,1)*100;
RSI24:=SMA(MAX(CLOSE-LCC,0),24,1)/SMA(ABS(CLOSE-LCC),24,1)*100;
DRAWTEXT((RSI6>93 AND RSI12>87) OR (RSI12>87 AND RSI24>80) OR (RSI6>93 AND RSI24>80),H*0.95,'逃'),coloryellow;
条件:=C<EXPMA(C,12)/1.05 AND BETWEEN(CCI.CCI,-200,-100) AND KDJ.J<10 AND REF(KDJ.J,2)>REF(KDJ.J,1) AND KDJ.J>REF(KDJ.J,1) AND EVERY(BETWEEN(ABS(C-O)/O,0.001,0.005),2);
DRAWTEXT(条件,C*0.95,'星'),coloryellow;
//赚3%
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
xx:=EMA((Var1-Var2)/(Var3-Var2)*100,13);
yy:=EMA(0.667*REF(xx,1)+0.333*xx,2) , ;
//STICKLINE(CROSS(xx,20) AND yy<xx,xx+19,xx-10,4,0),colorred;
//DRAWTEXT(CROSS(xx,20) AND yy<xx,LOW,,"buy");
DRAWICON(CROSS(xx,20) AND yy<xx,LOW,'BUY1');
//IF(CROSS(xx,20) AND yy<xx);
//BUY;
//动因;
dy:=SUM((OUTVOL-INVOL)/CAPITAL*100,0),colorwhite;
dy5:=MA(dy,5),Colorffeeaa;
dy10:=MA(dy,10),Color0000ff;
Vdy:=LONGCROSS(dy,dy5,5);
Vdh:=VOL/CAPITAL*100;
Vdl:=VOL/MA(VOL,5);
VAR1:=C>O;
TIPTEXT(Vdy AND Vdl>1.00 AND VAR1 AND Vdh>2.0,LOW,'介入点,主动性买盘明显增大'),colorwhite;
//假阳:=C<O AND O>REF(H,1) AND C>REF(MAX(O,C),1) AND (MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
//假阳上下影:=REF(C,1)<REF(O,1) AND REF(O,1)>REF(H,2) AND REF(C,1)>REF(MAX(O,C),2) AND (MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
软件1:=(((O-REF(C,1))/REF(C,1)))<=(-(0.049));
软件2:=(C/O)>1.06;
打桩大阳:=IF((软件1 AND 软件2) ,10,0);
DRAWTEXT(打桩大阳>1,LOW*0.99,'5天3%出');
TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容