软件名称:[B]7均线战法主图[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2012-06-29 16:23:17
软件简介:
7均线战法主图
{单一均线操作系统主图N:=7,M:=2}
M:=2;N:=7;
虎:MA(C,7),LINETHICK2,COLORWHITE;
虎K:=MA(C,N-1);
明操作价:=MA(C,N-1),NODRAW;
操作价:=REF(明操作价,1) ,COLORRED,NODRAW;
虎H:=MA(H,N),COLORWHITE,LINETHICK1;
虎HK:=MA(H,N-1);
明平衡H价:=MA(H,N-1),NODRAW;
今上限:=REF(明平衡H价,1),COLORGREEN,NODRAW;
虎L:=MA(L,N),COLORWHITE,LINETHICK1;
虎LK:=MA(L,N-1);
明平衡L价:=MA(L,N-1),NODRAW;
今下限:=REF(明平衡L价,1),COLORYELLOW,NODRAW;
{STICKLINE(ISLASTBAR,今下限,今下限,20,1),COLORYELLOW;
STICKLINE(ISLASTBAR,今上限,今上限,20,1),COLORGREEN;
STICKLINE(ISLASTBAR,操作价,操作价,20,1),COLORWHITE;}
MAIRU1:=C>操作价 AND L<=今上限 AND C>今上限;
MAICHU1:=C<操作价 AND H>今下限 AND C<今下限;
买信号:=MAIRU1 AND C>=REF(C,7);
卖信号:=MAICHU1 AND C<=REF(C,7) ;
买价:=IF(L<=操作价,操作价, 今上限);
买操作价:买价,NODRAW,COLORRED;
卖价:=IF(H>=操作价,操作价,今下限);
卖操作价:卖价,NODRAW,COLORYELLOW;
买入:=((COUNT(买信号,BARSLAST(卖信号)) = 1) AND 买信号),NODRAW;
卖出:=((COUNT(卖信号,BARSLAST(买信号)) = 1) AND 卖信号),NODRAW;
卖出T:=BARSLAST(卖出);
买入T:=BARSLAST(买入);
持股T:((SUM(卖出,买入T) = 0) *买入T),NODRAW;
CB3:=REF(买价,REF(持股T,1)+1);
成本:IF(买入,买价,IF(持股T,REF(买价,持股T),IF(卖出,CB3,DRAWNULL))),NODRAW,COLORRED;
收益率:IF(持股T,100*(C-成本)/成本,IF(卖出,100*(卖价-成本)/成本,0)),COLORRED,NODRAW;
STICKLINE(卖出, 卖价,成本,0.1,0),COLORYELLOW;
STICKLINE(持股T, 成本,成本,20,0),COLORGREEN;
STICKLINE(买入, 买价,买价,10,0),COLORRED;
STICKLINE(卖出, 卖价,卖价,10,0),COLORRED;
DRAWLINE(买入,买价,卖出,卖价,0);
DRAWICON(买入,L*0.97,1) ;
DRAWICON(卖出,H*1.03,2) ;
[url=http://www.70822.com/soft/sort012/sort045/down-50189.html]7均线战法主图[/url]