盈透api python封装_[转载]用MT4来接入IB盈透TWS平台交易外汇

本文介绍了如何通过MT4平台利用TWSLink类库连接到盈透IB API进行外汇交易。主要步骤包括初始化DLL、连接到IB、注册合约和执行交易指令。文中提到了两种选择:商业软件TradeBullet(需月费)和免费的Trade Commander,两者都提供了TWS的买卖跟踪止损功能,为避免MT4数据喂价问题,提供更直接的ECN市场退出交易。

用MT4来接入IB盈透TWS平台交易外汇

TWSLink是对盈透IB API

类库的一个封装,把TWSLink安装上后,就可以在MT4中用MQL语言编写交易程序,有固定套路:

1,初始化TWSLink DLL

2,连接到IB

3,注册合约(品种),

4、执行交易指令

这是基本步骤,在TWSLink帮助中说的很清楚,而且每步都有例子参考。

With forex the TWS trailing stop BUY and SELL

orders are essential so one can enter the trade from MT4 bid price,

BUT exit the trade from the ECN market data. Thus avoiding MT4 data

feed 100% on the exit. Great ! Stop hunters from your MT4 broker

gone, just the ECN guys to complete with !!!

Choice one : Commercial costs a monthly fee

Software Provider : TradeBullet

http://www.trade-commander.org/twsli...initialisation

MT4 Code > TradeBullet API > TB

> IB TWS (Forex).

With trailing stops due before 2008.

Nice tool, plenty of experience with TWS.

Choice two: Free for personal use.

Software Provider : Trade Command

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值