设为首页收藏本站

 找回密码
 注册
查看: 685|回复: 0
打印 上一主题 下一主题

请老师完善下时间 [复制链接]

Rank: 1

精华
0
UID
293022
积分
4
帖子
2
主题
2
阅读权限
10
注册时间
2020-6-16
最后登录
1970-1-1
跳转到指定楼层
1#
发表于 2020-6-21 22:15:41 |只看该作者 |倒序浏览
请老师帮忙修改下时间日内模型,上午9.01到14.58平仓,晚上21.01到0.58平仓if(time>=0.1458)
      {
        if(MarketPosition==1)
                        sell(0,open);
                if(MarketPosition==-1)
                                {
                        buytocover(0,open);
                                             
        }
        }
                              
       myhigh = Highest(High[1],length);
        mylow = Lowest(Low[1],length);
              PlotNumeric("myhigh",myhigh);
              PlotNumeric("mylow",mylow);
        if (High>myhigh and MarketPosition<>1 and open<=myhigh and time>=0.0901 && time <0.1458)
        {
                Buy(hands,myhigh+n*MinMove*pricescale);
        }
        if ( MarketPosition<>1 and open>myhigh and time>=0.0901 && time <0.1458)
        {
         Buy(hands,open);
        }
        if (Low<mylow and MarketPosition<>-1 and open>=mylow and time>=0.0901 && time <0.1458)
        {
                SellShort(hands,mylow-n*MinMove*pricescale);
        }
        if (  MarketPosition<>-1 and open<mylow and time>=0.0901 && time <0.1458)
您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-4-26 02:37

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部