mtapi
mtapi copied to clipboard
why unlocktick() receiving more than 1 tick data?
I am trying to use mtapi with backtest. the backtest is set to use "Every tick".
i have this issue with the UnlockTicks() , each time that i call it, it starts 4/5 thread at the same time to call quote_update and quote_updated.
the expected behavior is on each unlock tick. mtapi receive one set of information. according to #67 i should be able to the processing from database if the backetestlock is equal to true and it only receive new data if the unlockticks is called
am i missing anything?
Function UnlockTicks enable updated quotes between timeframes (candles), not for every ticks. I can changed field BacktestingLockTicks to use enum (NoLock, LockEveryTick, LockEveryTimeFrame) instead boolean values (that lock time frame only). What do think?