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 BUYSTOP function doesn't work
 Post subject: The BUYSTOP function doesn't work Post rating: 0   New post Posted: Fri 27 Nov, 2015, 06:37 
User avatar

User rating: 0
Joined: Sat 21 Nov, 2015, 05:51
Posts: 4
Location: Canada,
Image

Hi, i joined the java file in the attachment.
When i use this java file, the 42th line doesn't work, as shown on the image.
What should i do to fix it?

Thanks a lot.


Attachments:
QQ Photo20151127003158.jpg [9.78 KiB]
Downloaded 206 times
OneOrderStopOrder.java [1.91 KiB]
Downloaded 74 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: The BUYSTOP function doesn't work Post rating: 0   New post Posted: Fri 27 Nov, 2015, 15:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider the following code
engine.submitOrder("order" + counter++, this.instrument, IEngine.OrderCommand.BUYSTOP, 0.01, askBar.getClose() + buyStopPriceStep, slippage, stopLossPrice, takeProfitPrice);


 

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