Calculation profit USDJPY

Questions about MultiCharts .NET and user contributed studies.
Drogo
Posts: 14
Joined: 11 Oct 2012
Has thanked: 2 times

Calculation profit USDJPY

Postby Drogo » 30 Oct 2015

Hello,

I have problem with calculation open position for symbol USDJPY - datasource: IB, IQFeed as well.
Others symbols work normal.

OpenProfit:
symbol: USD.JPY BarTime: 17. 1. 2011 11:30:00 OpenProfit: -0,105449637253248 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 17. 1. 2011 15:30:00 OpenProfit: -1,46123068765215 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 17. 1. 2011 19:30:00 OpenProfit: -0,105449637253248 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 17. 1. 2011 23:00:00 OpenProfit: -0,710364674018185 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 18. 1. 2011 3:30:00 OpenProfit: -1,54164248403947 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 18. 1. 2011 7:30:00 OpenProfit: -3,05305668407816 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 18. 1. 2011 11:30:00 OpenProfit: -2,75077384407042 StopLoss: 388 ProfitTarget 388
symbol: USD.JPY BarTime: 18. 1. 2011 15:30:00 OpenProfit: -1,54164248403947 StopLoss: 388 ProfitTarget 388

For calculation Profit target and stoploss i use information from symbol:
Bars.Info.PriceScale,Bars.Info.PointValue, Bars.Info.MinMove
Calculations StopLosses and ProtfitTragets are correct. For used example, StopLoss and ProfitTarget is 388.
So this trade should be finished as StopLoss on next bar. But OpenProfit on this bar is only
-1,46123068765215. No idea why????

If I increase BigPointValue in symbol setting from 1250 to 125000 the difference is still there, only both sides are multiplied 100.
All others symbols (USD.CAD, EUR.USD, USD.CHF etc.) work correctly.

Yo can also count it according the chart....
Any idea? Thank you for help.

I use the new version 9.1.11817
Attachments
USDPY.png
screen
(67.27 KiB) Downloaded 817 times
settingUSDJPY.PNG
setting symbol
(13.85 KiB) Downloaded 821 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Calculation profit USDJPY

Postby Henry MultiСharts » 10 Nov 2015

Hello Drogo,

Please send us the following information for analysis to support@multicharts.com:
- workspace you are using;
- in QuoteManager select the symbols you are using, make a right click on it->Export data->Export instrument (without data). Send us the QMD export file for analysis;
- in PowerLanguage .NET editor->File->Export->export the studies you are using for replicating this behavior; send us the pln file;
- attach your debugging log that illustrates the issue;
- description why you think these values are incorrect.


Return to “MultiCharts .NET”