PureBytes Links
Trading Reference Links
|
It also looks as if your pips is wrong. YM trades in whole numbers so
I think pips must set to 1.
ibc.PlaceOrder(YM SEP07-ECBOT-FUT, "BUY", 1, "LMT", L-10, 0, "GTC",
False, 1, "", pid);
--- In amibroker@xxxxxxxxxxxxxxx, "eric tao" <erichtao@xxx> wrote:
>
> Hi Guys,
>
> I get following error when I try to place a bracket order using IB
> Controler. Help please.
>
> //--------------------------------------
> // this one succeed
> pid = ibc.PlaceOrder(YM, "SELL", 1, "MKT", 0, 0, "Day", False );
>
> // this one failed, it says:
> // COM method/function 'PlaceOrder' call failed.
> ibc.PlaceOrder(YM, "BUY", 1, "LMT", L-10, 0, "GTC", False, 100, "",
pid);
>
> // this one failed too, same error message
> ibc.PlaceOrder(YM, "BUY", 1, "STP", 0, L+5, "GTC", True, 100, "",
> pid);
>
> //--------------------------------------
>
> Thank you in advance.
> Eric
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|