Dukascopy
 
 
Wiki JStore Search Login

How to insert comments on the platform?
 Post subject: How to insert comments on the platform? Post rating: 0   New post Posted: Thu 22 Nov, 2018, 11:26 
User avatar

User rating: 0
Joined: Sat 11 May, 2013, 11:10
Posts: 9
Location: United Kingdom, London
Good morning;

someone explains to me how to insert comments of the positions and orders on the platform? :?:

Thank you.


 
 Post subject: Re: How to insert comments on the platform? Post rating: 0   New post Posted: Thu 22 Nov, 2018, 11:31 
User avatar

User rating: 0
Joined: Sat 11 May, 2013, 11:10
Posts: 9
Location: United Kingdom, London
Image


Attachments:
File comment: Comments
asd.PNG [27.69 KiB]
Downloaded 353 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: How to insert comments on the platform? Post rating: 0   New post Posted: Thu 22 Nov, 2018, 20:54 

User rating: 18
Joined: Thu 20 Apr, 2017, 22:42
Posts: 165
Location: Russian Federation,
According to my observations - comment can be assigned to an "order" in one of the "pending" states:
1. BUY/SELL LIMIT or STOP
2. TP or SL orders for open positions

Position generated from LIMIT or STOP order, when filled, gets comment from source order.
Already filled position having not comment can be "commented" by assigning comment to TP or SL order.

But:
- when you assign "TP comment" to filled position already having comment received from LIMIT/STOP order - none of them is displayed
- when you assign comment to both "TP" and "SL" orders - position also displays nothing and keeps displaying nothing after removing comments from "TP" and "SL" orders

You can set that comment in "Orders" tab.
All this behavior is very strange to me. You may try asking for "API Support" to explain reasons behind all this.

PS: Here is what I see described in API for development of strategies and plugins.

    /**
     * Sets comment for pending orders.
     *
     * <p>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).
     *
     * <pre>{@code
     *  if (order.getState() == IOrder.State.OPENED && order.getOrderCommand() != BUY && order.getOrderCommand() != SELL) {
     *      order.setComment("new_"+order.getComment());
     *  }
     * }</pre>
     *
     * @param comment comment text
     * @throws JFException if order is not in {@link State#OPENED} state
     */
    void setComment(String comment) throws JFException;


 
 Post subject: Re: How to insert comments on the platform? Post rating: 0   New post Posted: Sat 24 Nov, 2018, 09:16 
User avatar

User rating: 0
Joined: Sat 11 May, 2013, 11:10
Posts: 9
Location: United Kingdom, London
Thank you 'n good weekend.


 

Jump to:  

  © 1998-2024 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