Full position close is not allowed for Global accounts. State change here o. Stay up-to-date with our latest Jforex api developments and subscribe to automatic Jforex API release note e-mails. State of the order. Returns order in IOrder.
Already trading with us? Add Dukascopy Trading Tools on your web for free! Wednesday, Dec 20, You hereby agree that your demo account information will be shared with such representatives allowed to take contact with you. You hereby waive the benefit of Swiss banking secrecy in this respect towards the above mentioned persons and entities. Confidentiality of your personal data will be ensured throughout the group, regardless of the location of specific group units. By proceeding further you express your desire to be contacted in regard to our services and offers unless you opt out.
Confidentiality of your personal data will be ensured throughout the Group, regardless of the location of specific Group units. For more details please check our Privacy Notice.
JForex API provides the possibility to develop custom software applications using Java programming language. Closes all orders passed in parameter s Not applicable for global accounts Parameters: JFException - if orders not in IOrder.
If the instrument is not subscribed the method will always return false. You can use Instrument. Returned order is in IOrder. Label must be unique for the given user account among the current orders. Label must have at most characters. If zero, then last market price visible on the JForex will be used. Price should be divisible by 0. In case of market orders, incorrect price worse than current market will be changed to current price and slippage slippage - slippage.
Not applicable for Global accounts. If price is 0 or negative, then stop loss condition will be removed. This method will send command to the server, getStopLossPrice method will still return old value until server will accept this changes Applicable to orders of state IOrder. If trailingStep is bigger than 10, then trailing step logic will be applied for stop loss price. JFException - if order is not in IOrder.
If price is 0 or negative, then take profit condition will be removed. This method will send command to the server, getTakeProfitPrice method will still return old value until server will accept this changes Applicable to orders of state IOrder.
Order is neither IOrder. OPENED state or pending part of partially filled order By default, may not be called on the same order more often than once per second exact value of max order update per second is sent by server. If order has both pending and filled parts and amount is greater than 0, only filled part will be closed. Full position close is not allowed for Global accounts. Can be less than opened amount, in this case partial close will take place.
If 0 is provided then all amount will be closed price - required close price. Close will be rejected if no liquidity at this price. This parameter doesn't affect entry conditional orders. The value of slippage means following: JFException - when called for order not in IOrder.
And if order is IOrder. To specify custom slippage, or disable slippage at all, please use extended close If 0 is provided then all amount will be closed Throws: Not allowed for Global accounts. State of the order Returns: All the ticks, bars and other feed elements that platform receives while waiting get dropped.