|
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.
Buylimit without TP et SL |
[bedaine]
|
Post subject: Buylimit without TP et SL |
Post rating: 0
|
Posted: Mon 16 Feb, 2009, 15:10
|
|
User rating: 0
Joined: Mon 06 Oct, 2008, 02:34 Posts: 6
|
How i can open Buylimit without Takeprofit and StopLoss ??
i need put a comment...
double prix = tick.getBid() - (instrument.getPipValue() * 10); engine.submitOrder("MySystem", instrument, IEngine.OrderCommand.BUYLIMIT, lot, prix, 0, 0, 0, 0, "MyPos");
this my error: Zero price not allowed in this order type
thank you
|
|
|
|
|
API Support
|
Post subject: Re: Buylimit without TP et SL |
Post rating: 0
|
Posted: Mon 16 Feb, 2009, 15:53
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Are you sure you are using the same code posted here? The following strategy works for me
Attachments: |
TestZeroPriceForBuyLimitBug.java [1.17 KiB]
Downloaded 684 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.
|
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|