Wiki
JStore
Search
Login
Dukascopy Support Board
Automated Trading
Bug Reports
Attention!
Read the forum rules carefully before posting a topic.
Submit JForex API bug reports in this forum only.
Submit Converter issues in
Converter Issues
.
Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be
deleted
.
Pages: [ 1 ]
Print view
Strange openPrice value for order
pminc74
Post subject:
Strange openPrice value for order
Post rating:
0
Posted:
Mon 08 Nov, 2021, 18:40
User rating:
3
Joined:
Fri 15 Nov, 2019, 12:54
Posts:
16
Location:
Poland,
Hi,
I'm tracking messages on orders and I get weird output.
I've got LONG position on EUR/USD at price 1.15903
17:16:50 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15975
Next, on the platform, I'm changing the TP for the position to 1.15964. I get:
17:17:10 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_TP, ORDER_CHANGED_PRICE] state: FILLED
17:17:10 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.1592 SL: 1.15832 TP: 1.15964
(why the open price changed???)
17:17:10 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_PRICE] state: FILLED
17:17:10 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15964
(open price returned to valid value)
Again, I'm changing TP to 1.15982. I get:
17:19:53 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_TP, ORDER_CHANGED_PRICE] state: FILLED
17:19:53 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15906 SL: 1.15832 TP: 1.15982
(the open price changed)
17:19:53 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_PRICE] state: FILLED
17:19:53 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15982
(open price returned to valid value).
Is that correct behaviour?
How to filter messages properly to skip this invalid ones?
pminc74
Post subject:
Re: Strange openPrice value for order
Post rating:
0
Posted:
Tue 09 Nov, 2021, 11:50
User rating:
3
Joined:
Fri 15 Nov, 2019, 12:54
Posts:
16
Location:
Poland,
I suppose this is side effect which has something to do with commission, nevertheless it is weird and it makes some problems in my code (calculating current exposure).
vadim_berezhnoj
Post subject:
Re: Strange openPrice value for order
Post rating:
0
Posted:
Wed 01 Dec, 2021, 16:32
Visual JForex expert at Dukascopy
User rating:
∞
Joined:
Mon 22 Apr, 2013, 11:30
Posts:
604
Location:
UkraineUkraine
Greetings.
For proper issue investigation please send the details, orders date and account ID to
[email protected]
Regards.
Pages: [ 1 ]
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Dukascopy Support Board
Automated Trading
Bug Reports
Jump to:
Select a forum
------------------
Visual JForex
English
Feature Requests
Report a bug
Français
Demandes de nouvelles fonctionnalités
Signaler un problème
Deutsch
Verbesserungsvorschläge
Fehlerberichte
العربية
إقتراحات جديدة
تقارير الأخطاء
Pусский
Заказ нового функционала
Репорты об ошибках
中文
功能要求
报告错误
Forex Community
Community Board
Contests
Trader Contest
Strategy Contest
Dukascopy Products and Services
Fundamental Analysis Contest
Article Contest
Trading Platforms
JForex
FAQs
Feature Requests
Bug Reports
Automated Trading
Knowledge Base
Feature Requests
Implemented Requests
Bug Reports
Fixed Bugs
Fixed Issues
Release Notes
Previos Versions
© 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