Page 1 of 1

Wrong close prices

Posted: Thu Oct 19, 2023 11:59 am
by US7
Hello Everybody,

I'm debugging the Java-Code. As you see in the screenshot, I have the wrong close prices for ES-Futures from dxfeed. 

On the left side, the price should be like 4388.25, but at the debug on the right side is the price 17553.0.. 

Does anyone have an idea?

BM_000.JPG
BM_000.JPG (290.42 KiB) Viewed 4742 times

Re: Wrong close prices

Posted: Thu Oct 19, 2023 12:32 pm
by Andry API support
in API price is measured in pips.
Here it must be equal to 0.25 because 17553 multiplied by 0.25 makes 4388.25
You can get pips values from the InstrumentInfo object which is passed to initialize method (if you are using Simplified API).

Re: Wrong close prices

Posted: Thu Oct 19, 2023 12:37 pm
by US7
ok, I got it.
Thank you for quick reply 

Re: Wrong close prices

Posted: Thu Oct 19, 2023 12:47 pm
by Andry API support
If you are plotting on main (primary) chart it will accept values in pips because there is the price axis on the right of the main chart. So it will multiply the passed value by pips.
But if you are plotting on the bottom chart it will plot exactly the passed value.