软件名称:[B]照葫芦画瓢 仿制了晴天2119的指标日均图分时图( 源码+图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:12.0 KB
官方主页:Home Page
更新时间:2011-12-01 04:08:57
软件简介:
仿制品不太一样请谅解,感谢指标区赵鑫鑫老师
第一引用指标
MA1:MA(CLOSE,5),LINETHICK0;
MA2:MA(CLOSE,10),LINETHICK0;
MA3:MA(CLOSE,20),LINETHICK0;
MA4:MA(CLOSE,30),LINETHICK0;
MA5:MA(CLOSE,40),LINETHICK0;
MA6:MA(CLOSE,50),LINETHICK0;
MA7:MA(CLOSE,60),LINETHICK0;
MA8:=MA(CLOSE,120);
MB5:CROSS(c,MA1),LINETHICK0;
MB10:CROSS(c,MA2),LINETHICK0;
MB20:CROSS(c,MA3),LINETHICK0;
MB30:CROSS(c,MA4),LINETHICK0;
MB40:CROSS(c,MA5),LINETHICK0;
MB50:CROSS(c,MA6),LINETHICK0;
MB60:CROSS(c,MA7),LINETHICK0;
MB120:CROSS(c,MA8),LINETHICK0;
MBB:C>=MA2,LINETHICK0;
MS5:CROSS(MA1,C),LINETHICK0;
MS10:CROSS(MA2,C),LINETHICK0;
MS20:CROSS(MA3,C),LINETHICK0;
MS30:CROSS(MA4,C),LINETHICK0;
MS40:CROSS(MA5,C),LINETHICK0;
MS50:CROSS(MA6,C),LINETHICK0;
MS60:CROSS(MA7,C),LINETHICK0;
MS120:CROSS(MA8,C),LINETHICK0;
MSS:MA2>=C,LINETHICK0;
在建立分时指标
MA5:="ma.ma1#day"(5);
MA10:="ma.ma2#day"(10);
MA30:="ma.ma3#day"(30);
MA60:="ma.ma4#day"(60);
MA120:="ma.ma5#day"(120);
{显示均线结果}
rcc:=DYNAINFO(3); s2:=sma(c,3,1); s6:=sma(c,5,1);
dk:=10*(s2-s6); kk:=IF(DATATYPE=8,0.95,1);
花心:HHV(H,480),DOTLINE,COLORRED;
花蕾:LLV(l,480),DOTLINE,COLORgreen;
DRAWTEXTREL(0,350,' 5日线: '+NUMTOSTRN(MA5,2)+'元'),LINETHICK1,colorwhite;
DRAWTEXTREL(0,450 ,'10日线: '+NUMTOSTRN(MA10,2)+'元'),LINETHICK1,color00ffff;
DRAWTEXTREL(0,550 ,'30日线: '+NUMTOSTRN(MA30,2)+'元'),LINETHICK1,color00ffff;
DRAWTEXTREL(0,650,' 60日线: '+NUMTOSTRN(MA60,2)+'元'),LINETHICK1,colorwhite;
DRAWTEXTREL(0,750 ,'120日线: '+NUMTOSTRN(MA120,2)+'元'),LINETHICK1,color00ffff;
M5:="MA引用.MB5#DAY";
M10:="MA引用.MB10#DAY";
M20:="MA引用.MB20#DAY";
M30:="MA引用.MB30#DAY";
M40:="MA引用.MB40#DAY";
M50:="MA引用.MB50#DAY";
M60:="MA引用.MB60#DAY";
M120:="MA引用.MB120#DAY";
BMM:="MA引用.MBB#DAY";
SM5:="MA引用.MS5#DAY";
SM10:="MA引用.MS10#DAY";
SM20:="MA引用.MS20#DAY";
SM30:="MA引用.MS30#DAY";
SM40:="MA引用.MS40#DAY";
SM50:="MA引用.MS50#DAY";
SM60:="MA引用.MS60#DAY";
SM120:="MA引用.MS120#DAY";
SMM:="MA引用.MSS#DAY";
cM5:="MA引用.MA1#DAY";
cM10:="MA引用.MA2#DAY";
cM20:="MA引用.MA3#DAY";
cM30:="MA引用.MA4#DAY";
cM40:="MA引用.MA5#DAY";
cM50:="MA引用.MA6#DAY";
cM60:="MA引用.MA7#DAY";
var120:='■今日上穿';
if M5>0 AND BARSTATUS=2 THEN var120:=var120+'【5】均线'+NUMTOSTRN(cM5,2)+'元';
if M10>0 AND BARSTATUS=2 THEN var120:=var120+'【10】均线'+NUMTOSTRN(cM10,2)+'元';
if M20>0 AND BARSTATUS=2 THEN var120:=var120+'【20】均线'+NUMTOSTRN(cM20,2)+'元';
if M30>0 AND BARSTATUS=2 THEN var120:=var120+'【30】均线'+NUMTOSTRN(cM30,2)+'元';
if M40>0 AND BARSTATUS=2 THEN var120:=var120+'【40】均线'+NUMTOSTRN(cM40,2)+'元';
if M50>0 AND BARSTATUS=2 THEN var120:=var120+'【50】均线'+NUMTOSTRN(cM50,2)+'元';
if M60>0 AND BARSTATUS=2 THEN var120:=var120+'【60】均线'+NUMTOSTRN(cM60,2)+'元';
if M120>0 AND BARSTATUS=2 THEN var120:=var120+'【120】均线';
if BMM>0 AND BARSTATUS=2 THEN var120:=var120+'■在10均线上方■'+NUMTOSTRN(cM10,2)+'元';
DRAWTEXTREL(12,102,var120),Color8000FF;
var121:='■今日下破';
if SM5>0 AND BARSTATUS=2 THEN var121:=var121+'【5】均线'+NUMTOSTRN(cM5,2)+'元';
if SM10>0 AND BARSTATUS=2 THEN var121:=var121+'【10】均线'+NUMTOSTRN(cM10,2)+'元';
if SM20>0 AND BARSTATUS=2 THEN var121:=var121+'【20】均线'+NUMTOSTRN(cM20,2)+'元';
if SM30>0 AND BARSTATUS=2 THEN var121:=var121+'【30】均线'+NUMTOSTRN(cM30,2)+'元';
if SM40>0 AND BARSTATUS=2 THEN var121:=var121+'【40】均线'+NUMTOSTRN(cM40,2)+'元';
if SM50>0 AND BARSTATUS=2 THEN var121:=var121+'【50】均线'+NUMTOSTRN(cM50,2)+'元';
if SM60>0 AND BARSTATUS=2 THEN var121:=var121+'【60】均线'+NUMTOSTRN(cM60,2)+'元';
if SM120>0 AND BARSTATUS=2 THEN var121:=var121+'【120】均线';
if SMM>0 AND BARSTATUS=2 THEN var121:=var121+'■在10均线下方■'+NUMTOSTRN(cM10,2)+'元';
DRAWTEXTREL(12,170,var121),Color00FF00;
[url=http://www.70822.com/soft/sort013/sort03/down-41559.html]照葫芦画瓢 仿制了晴天2119的指标日均图分时图( 源码+图)[/url]