PureBytes Links
Trading Reference Links
|
I really don't know if you can use a percentage number on the IBC
interface or not. I looked at TWS and you can use a % Trail order
there. Many on-line brokerages allow this. If you can set the IBC
order to use a % number I don't know how. But what I wrote will work
and TWS will allow you to use a stop amount in the trail.
I suggest you ask this on the AmiBroker-AT forum or send a note to AB
support.
Sorry for the misdirection,
Barry
--- In amibroker@xxxxxxxxxxxxxxx, "guhu0434" <g.h.h@xxx> wrote:
>
> Thank you Barry, I will have a look.
>
> As I understand, i cannot send the order directly, since it is
> impossible to send a trail order with %.
>
> With regards, GuHu
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Barry Scarborough" <razzbarry@>
> wrote:
> >
> > There are a couple of ways to do this.
> >
> > 1. Send and order. In your code monitor for the fill. Then get
the
> > the fill price. Then send a trailing order 15% above or below the
> > fill price, i.e. stop price = trade price * 1.15 for short
> positions
> > or trade price * 0.85 for long positions.
> >
> > 2. Send a bracket order with the buy or sell order as a SPT order
> > with the stop price and then send a bracket trail with the stop
set
> > 15% away from the buy STP price as above for long or short
> positions.
> >
> > I put some code in the AFL library. Search the AFL lib using
Author
> > Barry and look at the manual bracket order code to see how to
> > structure a bracket order.
> >
> > I also put an auto trading program in the AFL library called
> > AutoTrader Basic Flow. If you want to modify AutoTrader code to
> > either have it get the trade price and send another order as a
> trail
> > or use brackets have a go.
> >
> > Have fun,
> > Barry
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "guhu0434" <g.h.h@> wrote:
> > >
> > > Hello Guys,
> > >
> > > I have too a question concerning the IB plugin.
> > >
> > > I want to send a trailing stop order with for an example of 15%.
> > >
> > > I read the documentation at http://www.amibroker.com/at/.
> > >
> > > There I saw the possibility to creat a order of type "TRAIL",
but
> I
> > do
> > > not see the chance to pass the "15%" as a parameter. StopPrice
> will
> > > only take a real number.
> > >
> > > How can I achieve it?
> > >
> > > Any help is appreciated
> > >
> > > GuHu
> > >
> >
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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/
|