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?
Wrong close prices
-
- Posts: 563
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 27 times
- Been thanked: 86 times
Re: Wrong close prices
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).
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).
-
- Posts: 563
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 27 times
- Been thanked: 86 times
Re: Wrong close prices
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.
But if you are plotting on the bottom chart it will plot exactly the passed value.