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

软件名称:[B]开拓者dual-thrust日内交易系统源码[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-03-10 00:40:09
软件简介:

 
  • 源码内容:

    Params
           
            Numeric M(50);
            Numeric LOTS(1);
              
            Vars
            Numeric offset;
            Numeric offset1;
            NumericSeries MA1;
            NumericSeries MA2;
            NumericSeries MA11;
            NumericSeries MA22;
            Numeric spread;
            Numeric OPENP;

           
    Begin

            offset = 5*MinMove()*PriceScale();
            spread=Max(HighD(1)-CloseD(1),CloseD(1)-LowD(1));
            OPENP=OpenD(0);
            MA1=OPENP+0.01*M*spread;
            MA2=OPENP-0.01*M*spread;
            MA11=OPENP+0.01*0.5*M*spread;
            MA22=OPENP-0.01*0.5*M*spread;
                   
    if(Time<=0.0905)        {SetGlobalVar(0,0);}

    if(Time>0.0905 && Time<=0.1455)               
            {

            If(C[1]<MA2 && MarketPosition()==0 && GetGlobalVar(0)<=1)
                    {
                    SellShort(LOTS,C-offset);SetGlobalVar(0,GetGlobalVar(0)+1);
                    }// 70822.com
                   
            If(C[1]>ma1 && MarketPosition()==0 && GetGlobalVar(0)<=1)
                    {               
                    Buy(LOTS,C+offset);SetGlobalVar(0,GetGlobalVar(0)+1);
                    }//来源于: 70822.com
                   
            If(C[1]<MA11 && MarketPosition()==1)
                    {
                    Sell(LOTS,C-offset);
                    }
                   
            If(C[1]>MA22 && MarketPosition()==-1)
                    {               
                    BuyToCover(LOTS,C+offset);
                    }

            }
             
    If(Time>0.1455&&MarketPosition!=0)
            {
            offset1 = 20*MinMove()*PriceScale();
            Sell(0,C-offset);
            BuyToCover(0,C+offset1);
            }
    End


     

[url=http://www.70822.com/soft/sort013/sort083/down-59409.html]开拓者dual-thrust日内交易系统源码[/url]

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