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

[amibroker] Unable to get traling stop to work in IBC 1.1.1



PureBytes Links

Trading Reference Links

 

hello,

here is the problem.

ibc = GetTradingInterface("IB");

if( ibc.IsConnected() ) // check if connection to IB was successfull

{

parentIDLong=ibc.PlaceOrder("USD.JPY-IDEALPRO-CASH", "BUY", 25000, "STPLMT", 114.44,114.31 , "GTC", False,1,"" ); // place order but do not transmit yet

ibc.PlaceOrder("USD.JPY-IDEALPRO-CASH", "SELL", 25000, "LMT",114.55, 0, "GTC", False,1,"",parentIDLong);

ibc.PlaceOrder("USD.JPY-IDEALPRO-CASH", "SELL", 25000, "TRAIL",114.24, 114.24, "GTC", True, 1, "", parentIDLong);

} 

Problem is that long position is not closed out even when sell stop level is hit.

Anyone knows where is the aux price field in the placeorder function? Is there an example that shows the placeorder function with TRAIL STOP and AUX Price(For the increment)


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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___