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)
__._,_.___
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
__,_._,___
|
|