Dukascopy
 
 
Wiki JStore Search Login

POSITION.Open Price.
 Post subject: POSITION.Open Price. Post rating: 0   New post Posted: Sat 01 Oct, 2016, 10:13 
User avatar

User rating: 0
Joined: Mon 06 Jul, 2015, 04:37
Posts: 5
Location: Russian Federation, Komsomolsk-on-Amur
Уважаемые эксперты. Приведу простой пример стратегии в которой хотел бы обратить внимание на ветку onTick. В стратегии используется два варианта ордеров, отложенные ордера и открытие позиции по рынку. Если отложенный ордер не исполняется до определенного момента, мы производим его отмену и открываемся по рынку. В общей сложности задействовано четыре варианта открытия позиций, два – коротких, и два - длинных. В ветке onTick не стал расписывать весь алгоритм ограничился тем с чего все начинается. А начинается все с POSITION.Open Price. Т. е. речь пойдет о ситуации, когда позиция уже открылась и ветка onTick начинает работать с ценой открытия. Возникает вопрос, как идентифицировать цену открытия определенной позиции, дабы применить к ней конкретный алгоритм контроля? Иначе говоря позиции разные, соответственно и условия управления позициями отличаются. Для большего понимания вопроса, выложил скрин. Пробовал несколько вариантов, но безуспешно, интересует ваше мнение.
Image


Attachments:
example_.vfs [48.72 KiB]
Downloaded 251 times
скрин.png [188.04 KiB]
Downloaded 382 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: POSITION.Open Price. Post rating: 0   New post Posted: Mon 03 Oct, 2016, 16:09 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Добрый день.

Для этих целей можно использовать подпись позиций индивидуальным коментарием.
Можно маркировать позиции byPending byMarket или номерами Pos1 Pos2 Pos3 Pos4.

С уважением, Команда Поддержки.


Attachments:
example_wt_comment.vfs [50.27 KiB]
Downloaded 229 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: POSITION.Open Price. Post rating: 0   New post Posted: Tue 04 Oct, 2016, 04:22 
User avatar

User rating: 0
Joined: Mon 06 Jul, 2015, 04:37
Posts: 5
Location: Russian Federation, Komsomolsk-on-Amur
Проще не придумаешь. Спасибо.


 

Jump to:  

cron
  © 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