Get price in the onDepth event
Get price in the onDepth event
How can I get the corresponding price of the nth level in the onDepth event?
-
- Site Admin
- Posts: 278
- Joined: Mon Jun 11, 2018 11:44 am
- Has thanked: 2 times
- Been thanked: 31 times
Re: Get price in the onDepth event
Listen to onInstrumentAdded, it contains InstrumentInfo object with pips. Your price will be the pips multiplied by level number.