- 精华
- 0
- 在线时间
- 43 小时
- UID
- 248246
- 积分
- 66
- 帖子
- 33
- 阅读权限
- 30
- 注册时间
- 2017-3-7
- 最后登录
- 2019-6-13
- 精华
- 0
- UID
- 248246
- 积分
- 66
- 帖子
- 33
- 主题
- 25
- 阅读权限
- 30
- 注册时间
- 2017-3-7
- 最后登录
- 2019-6-13
|
发表于 2018-11-8 11:54:16
|显示全部楼层
为什么自己编的应用公式在急速版上可以有信号,在旗舰版上没有信号
//------------------------------------------------------------------------
// 简称: DUANXIAN
// 名称: DUANXIAN
// 类别: 公式应用
// 类型: 用户应用
// 输出: Void
//------------------------------------------------------------------------
Params
//此处添加参数
Vars
//此处添加变量
Begin
//此处添加代码正文
//多开
if(barstatus==0)setglobalvar(0,0);
if(barstatus==0)setglobalvar(1,0);
// if (Q_Last==Q_AskPrice)
if(Q_OutsideVol>GetGlobalVar(0) and (Q_LastVol()>0 and Q_OpenIntFlag>0))
{
buy(1,Q_Last);
}
//空开
// if (Q_Last==Q_BidPrice)
if(Q_InsideVol>GetGlobalVar(1) and (Q_LastVol()>0 and Q_OpenIntFlag>0))
{
SellShort(1,Q_Last);
}
//平仓
if(A_BuyPosition()>0 )
{
sell(1,A_BuyAvgPrice+1);
}
if(A_SellPosition>0)
{
BuyToCover(1,A_SellAvgPrice-1);
}
//止损
/* if (Q_LastTime+0.003<=Time)
{If(A_GetOpenOrderCount()>0) {
(A_OpenOrderContractNo());
BuyToCover(1,Q_Last);
sell(1,Q_Last);
}}*/
setglobalvar(0,Q_OutsideVol);
setglobalvar(1,Q_InsideVol);
End
//------------------------------------------------------------------------
// 编译版本: 2018/09/25 122512
// 内核版本: V2.8.2.14
// 版权所有 kingofdragon1
// 更改声明 TradeBlazer Software保留对TradeBlazer平台
// 每一版本的TradeBlazer公式修改和重写的权利 |
|