Dukascopy
 
 
Wiki JStore Search Login

Безубыток сетки ордеров
 Post subject: Безубыток сетки ордеров Post rating: 0   New post Posted: Tue 05 Jan, 2016, 19:38 
User avatar

User rating: 0
Joined: Tue 05 Jan, 2016, 19:31
Posts: 3
Location: Russian FederationRussian Federation
Решил попробовать VJForex.
На mql4 этот код выглядел бы так:
position.price=(position.type==ENTER_BUY)
                           ? Bid-((position.profit / (symb.tickvalue * position.volume) * _Point))
                           : Ask+((position.profit/(symb.tickvalue*position.volume)*_Point));

Где
symb.tickvalue=MarketInfo(_Symbol,MODE_TICKVALUE);

Какие блоки и как выстроить чтоб получить подобное?
Скажем направление позиций и их общий объем я знаю как получить.
Но чем заменить _Point (pipsSize?) и как получить tickvalue?


 
 Post subject: Re: Безубыток сетки ордеров Post rating: 0   New post Posted: Wed 06 Jan, 2016, 15:12 
Visual JForex expert at Dukascopy
User avatar

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

Во вложениях каждой переменной типа instrument есть параметры, pipsSize и pipsScale, размер пункта и знак пункта после запятой соответственно.
Напривер для EUR/USD будет 0.0001 и 4.

Image

Для более точного ответа, пожалуйста уточните значения переменных из формулы.

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


Attachments:
Picture.png [71.85 KiB]
Downloaded 815 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: Безубыток сетки ордеров Post rating: 0   New post Posted: Thu 07 Jan, 2016, 12:26 
User avatar

User rating: 0
Joined: Tue 05 Jan, 2016, 19:31
Posts: 3
Location: Russian FederationRussian Federation
Да, спасибо, уже нашел.
А что насчет MODE_TICKVALUE? Это стоимость пункта в валюте депозита, есть такой инструмент?


 
 Post subject: Re: Безубыток сетки ордеров Post rating: 0   New post Posted: Mon 11 Jan, 2016, 19:05 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Такого инструмента нет, так как для вычисления стоимости пункта, необходим объем конкретной позиции.
Но вы можете самомтоятельно это вычислить в самой стратегии.
Калькуляторы могут помочь:
https://www.dukascopy.com/swiss/english ... alculator/


 

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