dwxconnect icon indicating copy to clipboard operation
dwxconnect copied to clipboard

missing in "market_data"

Open prozor7 opened this issue 1 year ago • 1 comments

I believe that the "High" and "Low" price information is the most important piece of information in daily market data (current-day).

Only "Bid" and "Ask" are available as information "on_tick" at the moment. We should have a function called "on_tick_daily", is what I propose. Open, High, Low, and Bid

Please point me in the right direction if I'm missing how to access those four bits of data using the on_tick method.

regards

prozor7 avatar Aug 30 '23 09:08 prozor7

Hi, Sorry for the late reply. Open/High/Low/Close is only available using bars, not ticks. Ticks are defined as only bid/ask. You could subscribe to bar data like this:

self.dwx.subscribe_symbols_bar_data([['EURUSD', 'D1'], ['GBPUSD', 'D1']])

Then the on_bar_data() function should trigger when there is a new bar.

elvinex avatar Feb 14 '24 09:02 elvinex