Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why unlocktick() receiving more than 1 tick data? #69

Open
mhamri opened this issue Oct 15, 2017 · 1 comment
Open

why unlocktick() receiving more than 1 tick data? #69

mhamri opened this issue Oct 15, 2017 · 1 comment
Labels

Comments

@mhamri
Copy link

mhamri commented Oct 15, 2017

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?

@vdemydiuk
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants