Dukascopy
 
 
Wiki JStore Search Login

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.

Wrong instrument.getPipValue() for BRENT.CMD/USD and LIGHT.CMD/USD ?
 Post subject: Wrong instrument.getPipValue() for BRENT.CMD/USD and LIGHT.CMD/USD ? Post rating: 0   New post Posted: Wed 22 Jun, 2016, 21:43 
User avatar

User rating: 0
Joined: Tue 05 Jul, 2011, 15:21
Posts: 28
Location: Switzerland,
Dear Support,

there seem to be wrong results for calls of instrument.getPipValue() for both BRENT.CMD/USD and LIGHT.CMD/USD. It returns 0.01 whereas on https://www.dukascopy.com/swiss/english ... f-markets/ it is clearly indicated point value is 1.0. This leads to wrong calculations for amount to trade - they are far too big (obviously by 100 times).

Truth the matter is, the same page also indicates that contract size is 100 barrels for 1 CFD but I'm wondering if there is a better solution then hard-coding different amount to trade calculations for these two CFD instruments. In Instrument interface there are no additional methods to indicate contract size.

I made sure to use the latest SDK (JForex API: 2.12.40; Client: 2.45.47).

Would you consider changing the return value of instrument.getPipValue() for both BRENT.CMD/USD and LIGHT.CMD/USD ?

Thanks in advance !


 
 Post subject: Re: Wrong instrument.getPipValue() for BRENT.CMD/USD and LIGHT.CMD/USD ? Post rating: 0   New post Posted: Fri 01 Jul, 2016, 11:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here is an example position
Image

Current price = $49.61
Open price = $49.49
Price difference = current - open price = $0.12
P/L pips = 12
P/L = $12
Amount = 1

Price difference = P/L pips * pip value
pip vaule = price difference / P/L pips = $0.12 / 12 = $0.01


Attachments:
Fullscreen capture 712016 115055 AM.jpg [29.38 KiB]
Downloaded 443 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.
 

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