Dukascopy
 
 
Wiki JStore Search Login

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?
 Post subject: the api have trailing stops? Post rating: 0   New post 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


 
 Post subject: Re: the api have trailing stops? Post rating: 0   New post Posted: Fri 24 Aug, 2012, 09:23 
User avatar

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


 
 Post subject: Re: the api have trailing stops? Post rating: 0   New post 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


 
 Post subject: Re: the api have trailing stops? Post rating: 0   New post Posted: Mon 27 Aug, 2012, 08:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See the last paragraph of:
https://www.dukascopy.com/wiki/#Set_Stop_Loss_price/Set_Stop_Loss_to_an_existing_order


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com