mt5.copy_ticks last always Zero. what is the issue? constraints on the data?

 
Ticks received: 263705
Display obtained ticks 'as is'
(1740441600, 1.04664, 1.04693, 0.0, 0, 1740441600372, 134, 0.0)
 
Michael De:
Ticks received: 263705
Display obtained ticks 'as is'
(1740441600, 1.04664, 1.04693, 0.0, 0, 1740441600372, 134, 0.0)

Which types of ticks are you requesting with?

CopyTicks - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

Documentation on MQL5: Timeseries and Indicators Access / CopyTicks
Documentation on MQL5: Timeseries and Indicators Access / CopyTicks
  • www.mql5.com
The function receives ticks in the MqlTick format into ticks_array. In this case, ticks are indexed from the past to the present, i.e. the 0...
 
Michael De:
Ticks received: 263705
Display obtained ticks 'as is'
(1740441600, 1.04664, 1.04693, 0.0, 0, 1740441600372, 134, 0.0)

Forum on trading, automated trading systems and testing trading strategies

Python integration - Volume always shows up as 0 when using symbol_info_tick

Fernando Carreiro, 2025.03.01 21:25

@Michael De #: this does not work. last and volume are zeros even with the copy function. don't know the issue
"Last" and "Volume" are only available for exchange based assets, like Futures or Stocks. It is not available for non-centralised assets, like Forex, CFDs, etc.