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

软件名称:[B]美林证券交易大师的交易策略[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-03-04 06:43:59
软件简介:

  • 源码仅供参考:


     Params
       Numeric Length1(23);
       Numeric Length2(30);
       Numeric Lots(1);
       Numeric Offset(0);
    Vars
       Numeric EMA1;
       Numeric EMA2;
       NumericSeries Myhigh;
       NumericSeries Mylow;
    Begin
       EMA1=XAverage(Close[1], Length1);
       EMA2=XAverage(Close[1], Length2);   
       If(CurrentBar==0)
       {
         Myhigh=InvalidNumeric;
             Mylow=InvalidNumeric;
       }
       Else
       {
         Myhigh=Myhigh[1];
             Mylow=Mylow[1];
       }
       If(CurrentBar<Length2) Return;
       PlotNumeric("EMA1",EMA1);
       PlotNumeric("EMA2",EMA2);   
       If(Myhigh==InvalidNumeric && Close>EMA1 && Close>EMA2 && MarketPosition!=1)
       {
         Myhigh=High;
       }
       If(Myhigh!=InvalidNumeric && High>Myhigh)
       {
         Buy(Lots,Max(Open,Myhigh+Offset*MinMove*PriceScale));
             Myhigh=InvalidNumeric;
       }
       If(Mylow==InvalidNumeric && Close<EMA1 && Close<EMA2 && MarketPosition!=-1)
       {
         Mylow=Low;
       }
       If(Mylow!=InvalidNumeric && Low<Mylow)
       {
         SellShort(Lots,Min(Open,Mylow-Offset*MinMove*PriceScale));
             Mylow=InvalidNumeric;
       }
       Commentary("多头入场价:"+Text(Myhigh));
       Commentary("空头入场价:"+Text(Mylow));   
    End
    //程序化交易 www.cxh99.com
     

[url=http://www.70822.com/soft/sort013/sort083/down-59368.html]美林证券交易大师的交易策略[/url]

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