Wrong close prices

Custom indicators, trading strategies, data export and recording and more...
US7
Posts: 6
Joined: Sat May 25, 2019 8:55 am
Has thanked: 4 times

Wrong close prices

Post by US7 » Thu Oct 19, 2023 11:59 am

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 4128 times

Tags:

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Wrong close prices

Post by Andry API support » Thu Oct 19, 2023 12:32 pm

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).

US7
Posts: 6
Joined: Sat May 25, 2019 8:55 am
Has thanked: 4 times

Re: Wrong close prices

Post by US7 » Thu Oct 19, 2023 12:37 pm

ok, I got it.
Thank you for quick reply 

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Wrong close prices

Post by Andry API support » Thu Oct 19, 2023 12:47 pm

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.

Post Reply