老张解盘
-
相关简介:C/C++ Code 复制内容到剪贴板 {老张解盘} 多空2:=ema(c,148); 多空3:=ema(c,250); TJTS:=BARSTATUS=2; IFC0ANDTJTSTHENBEGIN DRAWTEXTREL(20,50, '老张解盘' ),LINETHICK6,Coloryellow; DRAWTEXTREL(200,50,STKLABEL+ '' +STKNAME),LINETHICK6,ColorFFFF80; DRAWTEXTREL(500
-
文章来源:择股网作者:股海网发布时间:2009-08-23浏览次数:
C/C++ Code复制内容到剪贴板
- {老张解盘}
- 多空2:=ema(c,148);
- 多空3:=ema(c,250);
- TJTS:=BARSTATUS=2;
- IF C>0 AND TJTS THEN BEGIN
- DRAWTEXTREL(20,50,'老张解盘'),LINETHICK6,Coloryellow;
- DRAWTEXTREL(200,50,STKLABEL+' '+STKNAME),LINETHICK6,ColorFFFF80;
- DRAWTEXTREL(500,30,'流通:'+NUMTOSTRN(FINANCE2 (36),0 )+' '+'换手:'+NUMTOSTRN( DYNAINFO(37)*100,3 )),LINETHICK3,ColorFFFF80;end;
- IF c>=多空2 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,200,'股价在半年线之上'),LINETHICK3,color00ff00;end;
- IF c<多空2 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,200,'股价在半年线之下'),LINETHICK3,color00ffff;end;
- IF 多空2>=ref(多空2,1) AND TJTS THEN BEGIN
- DRAWTEXTREL(670,200,'半年线趋势向上'),LINETHICK3,colorffff00;end;
- IF 多空2<ref(多空2,1) AND TJTS THEN BEGIN
- DRAWTEXTREL(670,200,'半年线趋势向下'),LINETHICK3,color00ffff;end;
- IF c>=多空3 AND TJTS THEN BEGIN
- DRAWTEXTREL(240,600,'股价在年线之上'),LINETHICK3,color00ffff;end;
- IF c<多空3 AND TJTS THEN BEGIN
- DRAWTEXTREL(240,600,'股价在年线之下'),LINETHICK3,colorffff00;end;
- IF 多空3>=ref(多空3,1) AND TJTS THEN BEGIN
- DRAWTEXTREL(240,700,'年线趋势向上'),LINETHICK3,color00ffff;end;
- IF 多空3<ref(多空3,1) AND TJTS THEN BEGIN
- DRAWTEXTREL(240,700,'年线趋势向下'),LINETHICK3,colorffff00;end;
- tr:=c*2.5/100+c;
- hd:=c-c*2.5/100;
- IF cost(50) AND TJTS THEN BEGIN
- DRAWTEXTREL(20,200,'市场平均成本:'+NUMTOSTRN( cost(50),2)),LINETHICK3,colorffff00;end;
- IF cost(4) AND TJTS THEN BEGIN
- DRAWTEXTREL(20,300,'主力平均成本:'+NUMTOSTRN( cost(4),2)),LINETHICK3,color00ffff;end;
- IF cost(30) AND TJTS THEN BEGIN
- DRAWTEXTREL(20,400,'控盘平均成本:'+NUMTOSTRN( cost(30),2)),LINETHICK3,color0000ff;end;
- IF cost(75) AND TJTS THEN BEGIN
- DRAWTEXTREL(20,500,'拉升平均成本:'+NUMTOSTRN( cost(75),2)),LINETHICK3,color0000ff;end;
- IF cost(95) AND TJTS THEN BEGIN
- DRAWTEXTREL(20,600,'顶部平均成本:'+NUMTOSTRN( cost(95),2)),LINETHICK3,color00ffff;end;
- IF cost(0.05) AND TJTS THEN BEGIN
- DRAWTEXTREL(20,700,'底部平均成本:'+NUMTOSTRN( cost(0.05),2)),LINETHICK3,color00ffff;end;
- IF tr AND TJTS THEN BEGIN
- DRAWTEXTREL(240,200,'股道卖出价预测:'+NUMTOSTRN( tr,2)),LINETHICK3,color00ffff;end;
- IF hd AND TJTS THEN BEGIN
- DRAWTEXTREL(240,300,'股道买入价预测:'+NUMTOSTRN( hd,2)),LINETHICK3,color0099ff;end;
- IF C>0 AND TJTS THEN BEGIN
- DRAWTEXTREL(240,400,'获利盘比例=:'+NUMTOSTRN( winner(c)*100,2)),LINETHICK3,color0099ff;end;
- IF C>0 AND TJTS THEN BEGIN
- DRAWTEXTREL(240,500,'套牢盘比例=:'+NUMTOSTRN( (100-winner(c)*100),2)),LINETHICK3,color0000ff;end;
- ld:=ma(v/(h-l),4);
- dmp:=abs(c-o);
- dmm:=v/(h-l);
- i:=-100;
- IF dmm<ld and dmp<ma(dmp,4) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'资金无入场意愿,萎缩中'),LINETHICK3,colorffff00;i:=i+100;end;
- IF dmm<ld and dmp>ma(dmp,4) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'场内资金有运作行为'),LINETHICK3,colorffff00;i:=i+100;end;
- IF dmm>ld and dmp<ma(dmp,4) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'多空双方激烈争夺中'),LINETHICK3,color00ffff;i:=i+100;end;
- IF dmm>ld and dmp>ma(dmp,4) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'场外资金介入(或出局)意愿强烈'),LINETHICK3,color00ffff;i:=i+100;end;
- pdi:=sum(max(max(h-l,abs(h-ref(c,1))),abs(l-ref(c,1))),14);
- mdi:=h-ref(h,1);
- adx:=ref(l,1)-l;
- adxr:=sum(if(mdi>0 and mdi>adx,mdi,0),14);
- typ:=sum(if(adx>0 and adx>mdi,adx,0),14);
- cci:=adxr*100/pdi;
- wr:=typ*100/pdi;
- mtm:=ma(abs(wr-cci)/(wr+cci)*100,6);
- mtmma:=(mtm+ref(mtm,6))/2;
- IF cross(cci,wr) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'PDI线从下向上突破MDI线,显示有新多头进场,为买进信号'),LINETHICK3,color0099ff;i:=i+100;end;
- IF cross(wr,cci) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'PDI线从上向下跌破MDI线,显示有新空头进场,为卖出信号'),LINETHICK3,colorff0000;i:=i+100;end;
- IF mtm>ref(mtm,1) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'ADX值持续高于前一日,行情将维持原趋势'),LINETHICK3,colorffff00;i:=i+100;end;
- IF mtm<ref(mtm,1) and mtm<20 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'ADX值递减,降到20以下,且横向行进时,气氛为盘整'),LINETHICK3,color00ffff;i:=i+100;end;
- IF mtm<ref(mtm,1) and ref(mtm,1)<ref(mtm,2) and ref(mtm,2)>ref(mtm,3) and ref(mtm,3)>ref(mtm,4) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'ADX值从上升倾向转为下降时,表明行情即将反转'),LINETHICK3,color0099ff;i:=i+100;end;
- lc:=(h+l+c)/3;
- rsi1:=(lc-ma(lc,14))/0.015*avedev(lc,14);
- rsi2:=-(100*(hhv(h,14)-c)/(hhv(h,14)-llv(l,14)));
- IF rsi1<-180 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'CCI指标底位,买入机会'),LINETHICK3,color00ffff;i:=i+100;end;
- IF rsi1>180 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'CCI指标高位,卖出机会'),LINETHICK3,color00ff00;i:=i+100;end;
- IF v/capital>0.075 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'换手过大,小心主力出逃,短期头部'),LINETHICK3,colorffff00;i:=i+100;end;
- IF rsi2>-20 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'W&R超买,短线即将见顶,应及时卖出'),LINETHICK3,color00ffff;i:=i+100;end;
- IF rsi2<-80 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'W&R超卖,短线即将见底,应伺机买进'),LINETHICK3,colorffff00;i:=i+100;end;
- psy:=c-ref(c,6);
- 布林1:=ma(psy,6);
- IF cross(psy,布林1) and 布林1<-0.8 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'MTM从下向上突破MTMMA,买入信号'),LINETHICK3,color00ff00;i:=i+100;end;
- IF cross(布林1,psy) and 布林1>0.8 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'MTM从上向下跌破MTMMA,卖出信号'),LINETHICK3,color00ff00;i:=i+100;end;
- 布林2:=ref(c,1);
- 布林3:=sma(max(c-布林2,0),6,1)/sma(abs(c-布林2),6,1)*100;
- 布林4:=sma(max(c-布林2,0),12,1)/sma(abs(c-布林2),12,1)*100;
- IF 布林3>80 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'6日RSI向上突破85,超买,考虑卖出'),LINETHICK3,colorffff00;i:=i+100;end;
- IF 布林3<15 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'6日RSI超卖,随时有可能反弹,考虑买入'),LINETHICK3,colorffff00;i:=i+100;end;
- IF cross(布林3,15) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'6日RSI向上突破15,买进信号'),LINETHICK3,color00ffff;i:=i+100;end;
- IF cross(布林3,85) AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'6日RSI向下跌破85,卖出信号'),LINETHICK3,color00ff00;i:=i+100;end;
- 布林5:=count(c>ref(c,1),12)/12*100;
- 布林6:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;
- 布林7:=布林6+3*std(布林6,10);
- xx:=布林6-3*std(布林6,10);
- a001:=(布林7-xx)/布林7<0.03;
- a002:=(布林7-xx)/布林7>0.18;
- a003:=(ma(c,60)-ma(c,5))/ma(c,60)>0.15;
- a004:=(ma(c,5)-ma(c,60))/ma(c,5)>0.15;
- IF a001 AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'多空布林收敛中,有变盘的可能,上下自己分析'),LINETHICK3,colorffff00;i:=i+100;end;
- IF a003 and a002 and c>o AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'布林上下乖离太大,有反弹的可能'),LINETHICK3,color00ffff;i:=i+100;end;
- IF a004 and a002 and c<o AND TJTS THEN BEGIN
- DRAWTEXTREL(480,400+i,'布林上下乖离太大,有回落的可能'),LINETHICK3,color00ff00;i:=i+100;end;
- IF h>=hhv(h,20) AND TJTS THEN BEGIN
- DRAWTEXTREL(850,200,'创20天新高'),LINETHICK3,colorffff00;end;
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:盘中预警公式:无敌3(大智慧2个版本)(付通达信源码)
下一篇:红买绿卖