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

软件名称:[B]莽牛操盘手、免费的莽牛操盘手策略源码[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2018-09-01 01:33:17
软件简介:

 公式简介:

 
为了更好的让大家体验开拓者TB的自动交易功能,我们特写了上莽牛操盘手策略源码,并免FEI符上,但是能不能盈利?盈利有多少?我们并不做说明,因为这个莽牛操盘手策略仅供大家学习交流之用。要使用经过实盘验证的策略,可与西部汇市联系,我们为你们推荐适合您的那一款,以下是这款策略实盘界面:
 
莽牛操盘手实图
 
上图在K线部分可以看到三条红色连线,这就是历史交易指令的持仓连线,意为开仓与平仓间的持仓部分。图中两个向上箭头一黄一紫,分别代表买开和买平,如果是向下则代表卖平和卖开。如果您已开通开拓者TB软件,那么下载这款莽牛操盘手策略并编译后启动自动交易就可以实现程序化交易了...

 
Params
  Numeric K1(50);
  Numeric K2(7);
  Numeric nOffSet(0);
  Numeric stopLossSet(100);
 
  Vars
  NumericSeries a1;
  NumericSeries a2;
  Numeric MinPoint;  
  Numeric MyEntryPrice;      
  Numeric MyExitPrice;
  Numeric stopLossPoint;
  Numeric offSetDots;
  bool    cross1;
  bool    cross2;
 
Begin
offSetDots = nOffSet * MinMove * PriceScale;
 
  a1=Highest(high[1],K1);
  a2=Lowest(low[1],K2);
  
  cross1=CrossOver(high,a1);
  cross2=CrossUnder(low,a2);
  
 
  
  If(cross1 && MarketPosition<>1)
  {
   Buy(1,a1+offSetDots);      
   }
  If(cross2 && MarketPosition<>-1)
  {
   SellShort(1,a2-offSetDots);      
   }
stopLossPoint = stopLossSet * MinMove * PriceScale;
       
       
        If(MarketPosition == 1)
        {
       
               
                myEntryPrice = AvgEntryPrice;
       
                 If(low <= myEntryPrice - stopLossPoint)
                {
                        myExitPrice = myEntryPrice - stopLossPoint;
                        If(open < myExitPrice) myExitPrice = open;
                        Sell(0,myExitPrice);
                }
        }
        else If (MarketPosition == -1)
        {
       
                myEntryPrice = AvgEntryPrice;
       
                 If(High >= myEntryPrice + stopLossPoint)
                {
                        myExitPrice = myEntryPrice + stopLossPoint;
                        If(open > myExitPrice) myExitPrice = open;
                        BuyToCover(0,myExitPrice);       
                }
        }
       
  
End

[url=http://www.70822.com/soft/sort013/sort083/down-127994.html]莽牛操盘手、免费的莽牛操盘手策略源码[/url]

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