Get price in the onDepth event

Custom indicators, trading strategies, data export and recording and more...
DGDario
Posts: 14
Joined: Wed Feb 26, 2020 8:39 pm
Has thanked: 6 times

Get price in the onDepth event

Post by DGDario » Mon Feb 08, 2021 5:48 pm

How can I get the corresponding price of the nth level in the onDepth event?

Svyatoslav
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

Post by Svyatoslav » Mon Feb 08, 2021 5:59 pm

Listen to onInstrumentAdded, it contains InstrumentInfo object with pips. Your price will be the pips multiplied by level number.

Post Reply