- 精华
- 0
- 在线时间
- 20 小时
- UID
- 1558
- 积分
- 57
- 帖子
- 34
- 阅读权限
- 30
- 注册时间
- 2008-4-29
- 最后登录
- 2019-9-18
- 精华
- 0
- UID
- 1558
- 积分
- 57
- 帖子
- 34
- 主题
- 7
- 阅读权限
- 30
- 注册时间
- 2008-4-29
- 最后登录
- 2019-9-18
|
公式运行第一遍时结果是正确的,如果点击刷新数据就出错,不满足的BAR也会执行写数据操作。百思不得其解,请管理员帮助查找原因。
If(BBuy1>0 and B1T>0 and Bstop11>0)
{
If((BarN>B1T and l<Bstop11) or (BarN==B1T and C<Bstop11))
{
lss2=GetTBProfileString(FormulaName+"买入持仓",Lower(Symbol)+"b1t");
If(lss2<>InvalidString and date>=Value(lss2))
{
Sell(Value(Mid(lotss,0,1)),Min(open,Bstop11)-30*MinMove*PriceScale);
SetTBProfileString(FormulaName+"买入持仓",Lower(Symbol)+"b1t","");
}
Batryiban=0;BBuy1=0;B1T=0;Bstop1=0;Bstop11=0;Bfzx=0;Bfzxlx=0;GongJiTing=0;YiJiaoYi=1;BR=0;
SetTBProfileString(FormulaName+"买持平仓记录",Symbol+Text(Date),"1");
}
} |
|