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

[amibroker] Re: How can I send a modify order to raise stop to breakeven after the first lot is closed?


  • To: amibroker@xxxxxxxxxxxxxxx
  • Subject: [amibroker] Re: How can I send a modify order to raise stop to breakeven after the first lot is closed?
  • From: "murthysuresh" <money@xxxxxxxxxxxxxx>
  • Date: Mon, 10 Sep 2007 10:34:56 -0000

PureBytes Links

Trading Reference Links

What you need is a One Cancells all order. I use BT. When my order is 
executed, it sets a <close at Target> and <Close at Stop> with one 
Cancells other order.

--- In amibroker@xxxxxxxxxxxxxxx, "Padhu" <ccie8340@xxx> wrote:
>
> hi,
> 
> Hoping somone on this list can shed some light on this.
> 
> //// Forex trading using Amibroker using TWS API
> Buy=some_rule; //Not as good as Japanese Forex Trader
> Buy_level=valuewhen(buy,c,1);
> 
> exit1=buylevel+exit1_offset;
> exit2=Trailingstop of 30 pips with initial stop at breakeven
(Buy_level)  ( Initial stop loss set for 30 pips trailing below entry 
when long is entered)
> 
> If ibc.isconnected()
> 
> placeorder( for 2 lots)
> sell lot1 at exit1
> upon exit1 send order with exit2 condition.
> 
> Any ideas on how to do this?.
> Thanks.
> 
> Cheers,Padhu
>




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/