[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: PlaceOrder call



PureBytes Links

Trading Reference Links

Hi T,

You are correct. I shouldn't pass an array to the price field, I'll
check it tomorrow just to make sure.
BTW, are you using IBC in real trading? I'm testing some scalp system
and figured semiauto would help :)

Again, Thank you for your help.

Eric


--- In amibroker@xxxxxxxxxxxxxxx, "tjloyd" <lifferds@xxx> wrote:
>
> Did a little trial and error.  It appears as though the error is in
> the limit price (L-10).  I suspect that, because L returns the Low
> array, the PlaceOrder call does not know which Low you want to use. 
> Try using a fixed number and see if the bracket order goes in, then
> reset your limit price to a fixed price, such as LastValue(L) or
> SelectedValue(L).
> 
> Good Luck,
> Snap
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "eric tao" <erichtao@> wrote:
> >
> > Hi t,
> > Thank you for your response.
> > But it returned the same error after I change ticksize.
> > Is there anyone succeed in bracket order using parentID?
> > 
> > Eric
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "tjloyd" <lifferds@> wrote:
> > >
> > > OOPS.  I think pips actually need to be 10000.  100=.01, 1=.0001
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, "tjloyd" <lifferds@> wrote:
> > > >
> > > > 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@> 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/