|
How to add comment to existing position? |
TadCary
|
Post subject: How to add comment to existing position? |
Post rating: 0
|
Posted: Wed 15 Feb, 2017, 22:55
|
|
User rating: 1
Joined: Wed 23 Nov, 2016, 05:50 Posts: 3 Location: Ukraine, Dnipro
|
I have several exit triggers, for example "A, B, C", and for historical testing I want to know which trigger fired for every closed position. For example: position NNNNN closed by trigger "A", position NNNNN closed by "B" and so on.
Unfortunately it's impossible to assign comment string to existing position because it's read only. But maybe there other way to pass info about exits to my trading report?
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How to add comment to existing position? |
Post rating: 1
|
Posted: Thu 16 Feb, 2017, 17:57
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
Unfortunately linking such event to a position is not possible as a "comment" for the reason you stated. Although you can "print" a message that will appear in the strategy messages panel (when launched form JFOREX platform) So if a given position is hit by condition 1 you'll have an information like its position ID. Check the attached workaround.
You have to change the code manually to add the "print" function: console.getOut().println(Your_variable_name) where your variable according to the example attached in PID_Condition1 / 2 or 3
Attachments: |
Workaround_PID.vfs [30.72 KiB]
Downloaded 174 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
]
|
|
|
|
|