分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]老鸭头战法、精典老鸭头战法改编模型[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2018-08-31 00:40:47
软件简介:

 公式简介:

 
今天尝试了无数次下载,终于为大家找到了这一款老鸭头战法指标改写的模型,运行开拓者TB评台,初步测试觉得该模型还算是一个正期望值的系统,专用于日内的波段操作。现在就将这款老鸭头战法公式送给大家,大家可以下载或复制源码,对更多的商品或IF短周期进行测试,下图是对镍指数的加载。
 
老鸭头战法模型
 
图上这部分数据大约为一周的行情,完成了三笔交易,都是盈利交易。不过今天在过经测试时发现该策略的实际回撤有点大,因此该策略如果要实站还需修改,或联系西部汇市客服,使用已在实站的成熟型策略...

 
 
Params
Numeric notbef(9.00);
Numeric notaft(14.55);
Numeric f1(0.01);
Numeric f2(1);
Numeric f3(0.01);
Numeric reverse(1.00);
Numeric rangemin(0.1);
Numeric xdiv(3);
Numeric offset(5);
Vars
NumericSeries ssetup(0);
NumericSeries bsetup(0);
NumericSeries senter(0);
NumericSeries benter(0);
NumericSeries bbreak(0);
NumericSeries sbreak(0);
NumericSeries ltoday(0);
NumericSeries hitoday(9999);
NumericSeries startnow(0);
NumericSeries div(0);
BoolSeries rfilter(false);
Numeric i_reverse;
Numeric i_rangemin;
Numeric i_vB;
Numeric i_vS;
Numeric i_offset;
Numeric offset2;
Begin
If(BarStatus==2 && Time==0.090000 && high==low ) return; 
i_offset = offset*MinMove*PriceScale;
i_reverse = reverse*(OpenD(0)/100);
i_rangemin = rangemin*(OpenD(0)/100);
if(BarStatus==0)
{ startnow=0;
div=max(xdiv,1);}
if(Date != Date[1])
{ SetGlobalVar(0,0);// 将第1个全局变量设置为0,将第2个全局变量设置为0
        SetGlobalVar(1,0);
        startnow=startnow+1;
        ssetup=hitoday[1]+f1*(Close[1]-ltoday[1]);
        senter=((1+f2)/2)*(hitoday[1]+Close[1])-(f2)*ltoday[1];
        benter=((1+f2)/2)*(ltoday[1]+Close[1])-(f2)*hitoday[1];
        bsetup=ltoday[1]-f1*(hitoday[1]-Close[1]);
        bbreak=ssetup+f3*(ssetup-bsetup);
        sbreak=bsetup-f3*(ssetup-bsetup);
        hitoday=High;
        ltoday=Low;
        rfilter=(hitoday[1]-ltoday[1])>=i_rangemin;}
if(High>hitoday)
{ hitoday=High;}
if(Low<ltoday)
{ ltoday=Low;}
if(Time*100>notbef and Time*100<notaft and startnow>=2 and rfilter)//当前公式应用商品在当前Bar的时间乘以100》=9点或者小于14.55分
{ if(Time != GetGlobalVar(1) and GetGlobalVar(1) != 0)
        {
                SetGlobalVar(1,10000);
        }
        if(hitoday>=ssetup and marketposition>-1 and GetGlobalVar(1)<1)
        {If(Low<=(senter+(hitoday-ssetup)/div))
                { SellShort(1,senter+(hitoday-ssetup)/div+i_offset);
                        SetGlobalVar(1,Time);
                        Return;}}
        if(ltoday<=bsetup and marketposition<1  and GetGlobalVar(1)<1)
        { If(High>=(benter-(bsetup-ltoday)/div))
                {  Buy(1,benter-(bsetup-ltoday)/div-i_offset);
                        SetGlobalVar(1,Time);
                        Return; }}
 
        if(marketposition==-1)
        { SetGlobalVar(0,1);
                if(High-EntryPrice>=i_reverse)
                {    BuyToCover(1,entryprice);
                        Return;}}
        if(marketposition==1)
        {   SetGlobalVar(0,1);
             if(EntryPrice-Low>=i_reverse)
                { Sell(1,entryprice);
                   Return;}}
        if(marketposition==0)
        { if(High>=bbreak and GetGlobalVar(0) == 0)
                {   Buy(1,bbreak-i_offset);
                      Return; }}
        if(marketposition==0)
        { if(low<=sbreak  and GetGlobalVar(0) == 0)
                {SellShort(1,sbreak+i_offset);
                  Return;   } }}
 
if(Time*100>=notaft and Time<0.1600)
{  if(marketposition==-1)
        {  BuyToCover(1,Open); }
        if(marketposition==1)
        {  Sell(1,Open);}}
End
 
 
 

[url=http://www.70822.com/soft/sort013/sort083/down-127991.html]老鸭头战法、精典老鸭头战法改编模型[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:93.75000 毫秒