My objective is to create a trading system using tick volume and also tick price to estimate a parameter needing as much prices as possible, hence a need a way to collect the price everytime it changes, does such a function exist in zorro ? So far I did not find any solution excepted maybe creating a shares files in which metatrader will store these tick data and zorro will read them in order to refresh the paramater every minute.
Yes, you can collect prices every tick - use a TMF of a phantom trade that never closes. The TMF runs every tick, and the TradePriceClose is the current tick price.
Only problem is that the historical price data is M1 data. So in the backtest you only get 1-minute ticks, unless you convert real tick data to the Zorro .bar format.
ok thx for the answer that was all I needed, as for the backtest I have the solution, I will estimate these parameters for each minute separately and will store their value somewhere before backtesting.
I would have another question regarding this problem. I would need the mid of the current bid/ask as a tick data corresponds a move of the mid, does TradePriceClose reflect this mid price ?