- 精华
- 0
- 在线时间
- 157 小时
- UID
- 214718
- 积分
- 135
- 帖子
- 92
- 阅读权限
- 40
- 注册时间
- 2015-7-23
- 最后登录
- 2018-12-9
- 精华
- 0
- UID
- 214718
- 积分
- 135
- 帖子
- 92
- 主题
- 29
- 阅读权限
- 40
- 注册时间
- 2015-7-23
- 最后登录
- 2018-12-9
|
本帖最后由 mey16601600 于 2017-7-5 20:40 编辑
小米 发表于 2017-7-5 09:24
是的,A函数没有信号,不可以进行映射交易。。
可以在图表上加载RU888, 并插入合约RU1709,以data0的数据 ...
If( date==xinhao and data1.A_BuyPosition>0 and low<=ma and data1.A_GetOpenOrderCount==0 )
{
data1.A_SendOrder(Enum_Sell,Enum_Exit,data1.A_BuyPosition,low-10*minpoint);
}
If( date==xinhao and data1.A_SellPosition>0 and high>=ma and data1.A_GetOpenOrderCount==0 )
{
data1.A_SendOrder(Enum_buy,Enum_Exit,data1.A_SellPosition,high+10*minpoint);
}
小米帮我看看是不是这样,我想实现在出信号的bar上平仓。只要在后面加上这个可行吗?
变量xinhao是出信号的bar所赋值的日期。 |
|