the state of the order that I am asking for its OpenPrice is = "CREATED" but the problem is that returned value is = zero and this causes many problems in my strategy tester
I'm using OnTick function call and don't filter bars to avoid week-ends and flat bars ...
Any idea?!
API Support
Post subject: Re: Order.getOpenPrice() returns 0 ?!
Hi, The order has no information about it's open price before it's opened. The open price from an order you can have only after it's state had been changed to OPENED. So, solution is to check the orders state before it's call OpenPrice.
Guest
Post subject: Re: Order.getOpenPrice() returns 0 ?!
Post rating: 0
Posted: Thu 09 Sep, 2010, 12:43
User rating: -
Hi all,
now I add the state test of order while asking for the OpenPrice and I'am surprised by the fact that it takes a lot time to get a response (many bars of hours) .
what do think of this?!
API Support
Post subject: Re: Order.getOpenPrice() returns 0 ?!
Hi, If you create a buy market order, then the order open price after submit will be zero, and after order fill open will be changed. Please take a look at the following JForex Wiki page https://www.dukascopy.com/wiki/index.php ... rder_State.