以下是通达信乘风操盘主副图公式 原码
通达信乘风操盘主副图公式 原码
你可能看不起这么简单、普通的二个指标,但这确确切切是我平时用来买卖股票的主要参考指标。这二个指标,都是我在30分钟操盘而设计,用在其它周期不知道是否适合。
看过、做过无数指标,最终我还是选择回归。传统指标能沿袭至今,当然有它强大的理由。如果你问我,你用什么指标操作股票?我很坦诚相待告诉你:均线和MACD看趋势,布林和KDJ、RSI来买卖,VOL与筹码线判强弱!
兵库里有很多很利害的武器,你不去研究这些兵器的使用方法和技巧,却偏偏要舍近求远地寻找什么连你也不知道的所谓宝剑,何解?这是我曾经的误区!
做股票的方法是什么?简单来说就是高抛低吸!KDJ与BOLL就是充分运用了物极必反的原理设计的好指标!
常常看到一些坛友发的指标,标题很好很强大,什么XX万不卖指标、最牛的XX指标、超准啊精确啊最牛啊、成功率百分之XX啊、绝品极品啊。。。。。。,我有时也觉得很好笑!
我做股票,很少很少用指标信号选股和预警,我不做短线,预什么警?真正的选股利器是什么指标?我认为是热点版块和龙头股!7月这一波?涨得最好的是什么版块?军工和国企改革!你持了吗?这就是选股利器!
选股比什么指标都重要!这是我做600876的主要原因!
主图参数:n:=30;
{乘风买卖主图}
DRAWGBK(C>0,RGB(80,60,60),RGB(50,100,200),0,’ ‘,0);
BOLL2:MA(CLOSE,N/1.5),LINETHICK2,COLORAA00AA;
UB2:BOLL2+2*STD(CLOSE,N/1.5),LINETHICK1,COLOR00FF00;
LB2:BOLL2-2*STD(CLOSE,N/1.5),LINETHICK1,COLOR00FF00;
BOLL:MA(CLOSE,N/3),LINETHICK1,COLOR00DDFF;
UB:BOLL+2*STD(CLOSE,N/3),LINETHICK1,DOTLINE,COLORFF0000;
LB:BOLL-2*STD(CLOSE,N/3),LINETHICK1,DOTLINE,COLORFF0000;
ZMA5:MA.MA1#DAY,COLOR0000FF,NODRAW;
STICKLINE(H>=MA(C,20)+2*STD(C,20) AND H/BOLL2>=1.1,H*1.005,L*0.995,5,1),COLOR00FF00;
STICKLINE(L<MA(C,20)-2*STD(C,20),H*1.005,L*0.995,5,1),COLOR00FFFF;
STICKLINE(H>=MA(C,10)+2*STD(C,10) AND H/BOLL2>=1.1,H,L,4.5,0),COLOR00AA00;
STICKLINE(L<MA(C,10)-2*STD(C,10),H,L,4.5,0),COLOR000033;
STICKLINE(C<O,H,L,0.02,0),COLOR999000;
STICKLINE(C>=O,H,L,0.02,0),COLOR000088;
STICKLINE(C<O,C,O,3.2,0),COLOR777000;
STICKLINE(C<O,C,O,2.1,0),COLOR888000;
STICKLINE(C<O,C,O,1,0),COLOR999000;
STICKLINE(C>=O,C,O,3.2,0),COLOR000066;
STICKLINE(C>=O,C,O,2.1,0),COLOR000077;
STICKLINE(C>=O,C,O,1,0),COLOR000088;
{走强}
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,H,L,0.02,0),COLORFFE600;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,H,L,0.02,0),COLOR0000FF;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,C,O,3.2,0),COLORDDC400;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,C,O,2.1,0),COLOREED500;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,C,O,1,0),COLORFFE600;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,C,O,3.2,0),COLOR0000DD;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,C,O,2.1,0),COLOR0000EE;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,C,O,1,0),COLOR0000FF;
{主升}
主升:=(C*3+O*2+H+L)/7>=(MA(C,60)+MA(C,60)+2*STD(C,60))/2;
STICKLINE(C<O AND 主升,H,L,0.02,0),COLORFFFFFF;
STICKLINE(C>=O AND 主升,H,L,0.02,0),COLORFF00FF;
STICKLINE(C<O AND 主升,C,O,3.2,0),COLORBBBBBB;
STICKLINE(C<O AND 主升,C,O,2.1,0),COLORCCCCCC;
STICKLINE(C<O AND 主升,C,O,1,0),COLORDDDDDD;
STICKLINE(C>=O AND 主升,C,O,3.2,0),COLORBB00BB;
STICKLINE(C>=O AND 主升,C,O,2.1,0),COLORCC00CC;
STICKLINE(C>=O AND 主升,C,O,1,0),COLORDD00DD;
STICKLINE((REF(C,1)-C)/REF(C,1)>=0.095 AND C=O AND H=L,C,O,4,0),COLORFFF000;
STICKLINE((C-REF(C,1))/REF(C,1)>=0.095 AND C=O AND H=L,C,O,4,0),COLOR00FFFF;
{BOLL3:MA(CLOSE,N),LINETHICK2,COLOR000088;
UB3:BOLL3+2*STD(CLOSE,N),LINETHICK2,COLORFFF000;
LB3:BOLL3-2*STD(CLOSE,N),LINETHICK2,COLORFFF000;}
IF(PERIOD<5,ZMA5,DRAWNULL),COLOR0000FF,LINETHICK1;
BOLL2,LINETHICK2,COLORAA00AA;
UB2,LINETHICK1,COLOR00FF00;
LB2,LINETHICK1,COLOR00FF00;
BOLL,LINETHICK1,COLOR00DDFF;
UB,LINETHICK1,DOTLINE,COLORFF0000;
LB,LINETHICK1,DOTLINE,COLORFF0000;
超跌:=ZMA5/L>1.19;
DRAWICON(PERIOD<5 AND ZMA5/L>=1.18,H*1.015,26);
DRAWICON(PERIOD<5 AND H/ZMA5>=1.18,H*1.015,15);
DRAWICON(PERIOD<5 AND H/MIN(UB,UB2)>=1.025,L*0.96,6);
DRAWICON(PERIOD<5 AND MAX(LB,LB2)/L>=1.02,L*0.96,5);
{乘风买卖副图}
BOLL20:=MA(CLOSE,20);
UB20:=BOLL20+2*STD(CLOSE,20);
LB20:=BOLL20-2*STD(CLOSE,20);
BOLL10:=MA(CLOSE,10);
UB10:=BOLL10+2*STD(CLOSE,10);
LB10:=BOLL10-2*STD(CLOSE,10);
N:=9;M:=3;
RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
K:SMA(RSV,M,1),COLOREE90FF,LINETHICK2,NODRAW;
D:SMA(K,M,1),COLORFFFFFF,NODRAW;
J:IF(3*K-2*D>100,100,3*K-2*D),COLOR999000,NODRAW;
RSF6:100-SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,COLOR00FFFF,LINETHICK2,NODRAW;
XXX2:DRAWLINE(CROSS(D,K),HHV(K,15),REF(CROSS(D,K),1),REF(HHV(K,15),1),1),COLORFFF000,DOTLINE;
XXX1:DRAWLINE(CROSS(K,D) AND REF(K,1)<35,LLV(K,15),REF(CROSS(K,D) AND REF(K,1)<35,1),REF(LLV(K,15),1),1),COLOR0000FF,DOTLINE;
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=20*(DIF-DEA);
MACDABS:=IF(PERIOD=1,10*ABS(MACD),IF(PERIOD=2,5*ABS(MACD),IF(PERIOD=3,4*ABS(MACD),IF(PERIOD=4,3*ABS(MACD),IF(PERIOD=5,2*ABS(MACD),ABS(MACD))))));
STICKLINE(MACD>0,MACDABS,0,2,1),COLORRED;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACDABS,0,2,1),COLORC0C0C0;
STICKLINE(MACD<0,MACDABS,0,2,1),COLORAA0000;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),MACDABS,0,2,1),COLOR2255DD;
RSF6,COLOR00FFFF,LINETHICK2;
K,COLOREE90FF,LINETHICK2;
D,COLORFFFFFF;
J,COLOR999000;
底部:IF((L<LB10 OR L<LB20) AND (J<0 OR K<20),85,100),COLORFFFFFF,LINETHICK2;
J抄底:IF(CROSS(J,0) AND (COUNT(L<LB10,3)>0 OR COUNT(L<LB20,3)>0),75,100),COLOR00FFFF,LINETHICK2;
K抄底:IF(CROSS(K,D) AND REF(K,1)<35 AND (COUNT(L<LB10,3)>0 OR COUNT(L<LB20,3)>0),75,100),COLORFF00FF,LINETHICK2;
高位风险:IF(H>UB20 AND H>UB10 AND K>95,25,0),COLOR00FF00,LINETHICK2;
背离风险:IF((H>UB20 OR H>UB10) AND MIN(UB20,UB10)/MAX(UB20,UB10)>0.95 AND K<HHV(K,20) AND COUNT(K>95,20)>0,35,0),COLORFF0000,LINETHICK2;
评论(0)