|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Submit a conditional order for Side BUY |
[zinnia]
|
Post subject: Submit a conditional order for Side BUY |
Post rating: 0
|
Posted: Tue 15 Mar, 2011, 13:10
|
|
User rating: 0
Joined: Wed 09 Mar, 2011, 13:48 Posts: 6
|
Hi,
Can anyone tell me the code to submit a order for Side BUY with StopLoss Field value as ask<=[stop].
Thanks
|
|
|
|
 |
[quantisan]
|
Post subject: Re: Submit a conditional order for Side BUY |
Post rating: 0
|
Posted: Tue 15 Mar, 2011, 21:50
|
|
User rating: 1
Joined: Fri 26 Mar, 2010, 19:19 Posts: 116 Location: Canada
|
you can try this:
submit the order wait for it update to OPENED or FILLED state then use IOrder.setStopLossPrice(double price, OfferSide side)
|
|
|
|
 |
API Support
|
Post subject: Re: Submit a conditional order for Side BUY |
Post rating: 0
|
Posted: Mon 21 Mar, 2011, 16:15
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|