Dukascopy
 
 
Wiki JStore Search Login

Order Labeling problem
 Post subject: Order Labeling problem Post rating: 0   New post Posted: Tue 23 Aug, 2016, 10:54 
User avatar

User rating: 1
Joined: Mon 04 Apr, 2016, 12:33
Posts: 10
Location: Płaszow
Hello support. I read all topics listed in English forum, but I haven't found precise explenation. I Have problem with Labeling orders/positions, or in another words, with assigning comments to them. I want to run few VJF strategies, so I have to identify each order. When I try to add comment and then filter them, this part of script stops working properly.
So basically I have 2 problems here:
- Lableling/commenting orders and filtering them in the future
- Porblems with additional closing position orders - they not closing positions

I attached all files that are needed.

Thank you for your help.

Image
Image


Attachments:
Screenshot_1.png [155.52 KiB]
Downloaded 129 times
Screenshot_2.png [100.74 KiB]
Downloaded 237 times
Screenshot_3.png [118.57 KiB]
Downloaded 265 times
Super_Trend.vfs [71.14 KiB]
Downloaded 181 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: Order Labeling problem Post rating: 1   New post Posted: Mon 29 Aug, 2016, 19:22 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

I'm afraid to say that identifying every single order or position by the comment field is not possible because the strategy can assign a given comment once the order command is sent and it will be made every time the order command (in this case open at market) is executed. In other words, the comment that you give is used by all the orders/position created by the this block.
The identification of every single order/ position is made automatically using the variable position ID which is available if you wish to use it.

What is exactly the issue with the condition closing ? the way you used the blocks seems to be okay and following the strategy report of 1 week of back-testing it I've seen a position closed with 11.9 pips of profit which means that the block was executed. If you wish to close partially the position, you have to input the amount to be closed with regards to the initial position amount.

Cheers


 

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