Please try:
- 7.1.0.53 for 7.1
- 7.0.0.97 for 7.0
Bookmap API price getting process
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Bookmap API price getting process
AndreyR wrote: ↑Sun Oct 25, 2020 4:54 pmHi!
the price you're getting is measured in pips. You need to multiply it by pips value to get the readable price. You can get it from InstrumentInfo object in initialize method.
You can draw lines and show info simultaneously. Take a look at this one.Code: Select all
@Override public void initialize(String alias, InstrumentInfo info, Api api, InitialState initialState) {
Just change methods called for graphics in this example for
Code: Select all
graphics.drawString("your text here", ...
Hi again. My new question is about pips and pips value. For some reason, now the price given by the send() method of MarketByOrderDepthDataListener is about right (it seems it rounds the price to an integer value though (3001.75 --> 3002 or 3001)). But if I multiply this given price by the pips value, as you suggested, the price goes down by a factor of 4 (the real price is about 3000 and the shown price is about 750). I'm testing the indicator using replayed data. Can this be the reason of the issue? Or I'm doing something wrong? Thanks
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Bookmap API price getting process
Hi!
I need to find out what causes such behavior. I have sent you a private message.For some reason, now the price given by the send() method of MarketByOrderDepthDataListener is about right