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.

Major Bug Issue 2.7.2
 Post subject: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Mon 03 Sep, 2012, 15:34 

User rating: 0
Joined: Mon 03 Sep, 2012, 15:25
Posts: 8
The issue mentioned here:
viewtopic.php?f=65&t=47906&p=66515&_dc=930
and claimed in that article will be resolved in 2.7.1 still remains in 2.7.2. I cannot modify an existing stoploss or takeprofit in a demo account without getting the error:
Your order has been rejected due to validation failure. Invalid order


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 08:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
What you are referring to is the JForex-API version used in JForex-SDK.
Go to Help -> About... to check the current JForex-API version of the JForex platform.


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 09:27 

User rating: 0
Joined: Mon 03 Sep, 2012, 15:25
Posts: 8
Don't understand
The Jforex non sdk version is 2.7 - same issue

In a Netbeans environment with version 2.7.2 - same issue
What am I missing here


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 09:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We cannot reproduce this issue with examples from the post you refer to, please provide precise reproduction steps.


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 15:33 

User rating: 0
Joined: Mon 03 Sep, 2012, 15:25
Posts: 8
no steps
simply open a position manually
create a new strategy and add the following to onstart

try
{
List<IOrder> existingOrders = engine.getOrders();
for (IOrder order: existingOrders)
{
order.setTakeProfitPrice(1.2565);
}
}
catch (Exception Ex) {}

here's what happens. if the position does not have a takeprofit set - works fine
however after the takeprofit is set once, regardless of which number is entered above, the following is returned:

Your order has been rejected due to validation failure. Invalid order


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 15:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
maxrolo1 wrote:
simply open a position manually
Do you mean manually creating an order in JForex platform? In that case you're nevertheless using JForex-API 2.7 which does not contain the bugfix.
maxrolo1 wrote:
try
{
List<IOrder> existingOrders = engine.getOrders();
for (IOrder order: existingOrders)
{
order.setTakeProfitPrice(1.2565);
}
}
catch (Exception Ex) {}

here's what happens. if the position does not have a takeprofit set - works fine
however after the takeprofit is set once, regardless of which number is entered above, the following is returned:

Your order has been rejected due to validation failure. Invalid order
Do you launch the strategy from the JForex platform or from JForex SDK?


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 16:00 

User rating: 0
Joined: Mon 03 Sep, 2012, 15:25
Posts: 8
The above was launced with JForex platform


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 16:01 

User rating: 0
Joined: Mon 03 Sep, 2012, 15:25
Posts: 8
However I have done the same with the SDK using the newly realeased 2.7.2 - and the same issue remains


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 16:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide:
  • The example strategy which replicates the issue.
  • The program which launches the strategy in the JForex-SDK.
  • Reproduction steps which don't include usage of JForex platform since it uses JForex-API 2.7.


 
 Post subject: Re: Major Bug Issue 2.7.2 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 20:58 

User rating: 0
Joined: Mon 03 Sep, 2012, 15:25
Posts: 8
My apologies. we are good to go.
I had updated only the JForex-API-2.7.2. jar. Seems like it required other dependancies. When I created a new project based on the new SDK, all worked fine.
Thanks again for your excellent support


 

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