软件名称:[B]买入策略60分钟线[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2017-07-13 00:31:37
软件简介:
C : CLOSE;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD := 2*(DIFF-DEA);
Zero := 0;
MACDM:= 2*(DIFF-DEA);
N=150;
IF(OPEN<500 AND CLOSE<500) GGhloc=1;
Nl= LLVBARS(LOW,N);
Nlb=HHVBARS(LOW,N);
Nlg=Nl+1;
DIFl=REF(DIFF,Nl);
SXLNll=0;
Nlf=Nl-1;
DEAl=REF(DEA,Nl);
MACDl=REF(MACDM,Nl);
IF(DIFl<0 AND MACDl<0) SXLNll=1;
DIFFl=DIFl;
MACVard=0;KLVaro=0;
WHILE(Nlf>=0 AND REF(MACDM,Nlf)<0)
{IF(DIFFl>REF(DIFF,Nlf))
DIFFl=REF(DIFF,Nlf);
Nlf=Nlf-1;}
Nd=LLVBARS(DIFF,N);
Nda=HHVBARS(DIFF,N);
Ndg=Nd+1;
DIFFd=REF(DIFF,Nd);
MACDd=REF(MACDM,Nd);
IF(DIFFd<0 AND DIFFd<=REF(DIFF,Ndg) AND MACDd<0 AND Nd>Nlg) MACVard=1;
MACl=COUNT(DIFF>DEA,Nlg);
MACv=COUNT(DIFF>DEA,Nl); ;
MACm=COUNT(DIFF>DEA,Nd);
MALl=(LOW-REF(LOW,1))/REF(LOW,1);
MACg=COUNT(REF(MACDM,1)<MACDM*0.9,Nlg);
MACc=COUNT(REF(CLOSE,1)<CLOSE,Nlg);
IF(MACc>0 AND MACg==1 AND MACl<MACm) KLVaro=1;
GHDIFq=0;
GHDIFh=LLV(DIFF,Nlg);
GHDIFg=HHV(DIFF,Nlg);
IF(DIFFl<=GHDIFh AND DIFFd<DIFFl) GHDIFq=1;
flagm :=GGhloc>0 AND MACVard>0 AND SXLNll>0 AND GHDIFq>0 AND KLVaro>0;
DRAWICON(flagm>0,CLOSE*0.98,"buy");
DRAWTEXT(flagm>0,CLOSE*0.93,'买');
[url=http://www.70822.com/soft/sort013/sort036/down-113935.html]买入策略60分钟线[/url]