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.

Submit a conditional order for Side BUY
 Post subject: Submit a conditional order for Side BUY Post rating: 0   New post 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


 
 Post subject: Re: Submit a conditional order for Side BUY Post rating: 0   New post 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)


 
 Post subject: Re: Submit a conditional order for Side BUY Post rating: 0   New post Posted: Mon 21 Mar, 2011, 16:15 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
viewtopic.php?p=39091#p39091


 

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