- 精华
- 0
- 在线时间
- 5 小时
- UID
- 293022
- 积分
- 4
- 帖子
- 2
- 阅读权限
- 10
- 注册时间
- 2020-6-16
- 最后登录
- 1970-1-1
- 精华
- 0
- UID
- 293022
- 积分
- 4
- 帖子
- 2
- 主题
- 2
- 阅读权限
- 10
- 注册时间
- 2020-6-16
- 最后登录
- 1970-1-1
|
请老师帮忙修改下时间日内模型,上午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) |
|