|
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.
the api have trailing stops? |
illusionriver
|
Post subject: the api have trailing stops? |
Post rating: 0
|
Posted: Fri 24 Aug, 2012, 04:23
|
|
User rating: 0
Joined: Fri 24 Feb, 2012, 03:03 Posts: 9
|
hi,support
object[] list = engine.getOrders().toArray(); foreach (IOrder order in list) { if (order.getState().toString().Equals("FILLED")) { // i want set this order is trailing stops order. } }
can you tell me , how set the order to trailing stops .
thanks a lot
|
|
|
|
 |
jlongo
|
Post subject: Re: the api have trailing stops? |
Post rating: 0
|
Posted: Fri 24 Aug, 2012, 09:23
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi illusionriver:
As far i can see in javadoc JForex API don't have methods to set trailing step... But you can define a "Trailing step" on your strategy changing the stop loss to a price corresponding to the trailing step price value.
Hope that helps
JL
|
|
|
|
 |
illusionriver
|
Post subject: Re: the api have trailing stops? |
Post rating: 0
|
Posted: Fri 24 Aug, 2012, 10:35
|
|
User rating: 0
Joined: Fri 24 Feb, 2012, 03:03 Posts: 9
|
oh, i think manual operation the trailing steps, if on tick to operation,the orders is manual to services. else if on bar to operation,the Accuracy is not well. so i find the great methods to used.
thinks a lot, jlongo
|
|
|
|
 |
API Support
|
Post subject: Re: the api have trailing stops? |
Post rating: 0
|
Posted: Mon 27 Aug, 2012, 08:39
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|