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

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



PureBytes Links

Trading Reference Links

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___