- ago
Observing a mismatch of the side/action of imported trades from IB in a trade history strategy. "Buy" is read as "Cover". Didn't test shorts yet.

Could this please be investigated?
0
647
Solved
16 Replies

Reply

Bookmark

Sort
Cone8
 ( 5.57% )
- ago
#1
Yes, thanks for the report.
It appears that IB changed the format somewhat, but we can adapt to make it more flexible.
1
Cone8
 ( 5.57% )
- ago
#2
IB Provider Build 40 is ready with the trade parser fix.
1
Best Answer
- ago
#3
Hey Cone,

observing another bug if the quantity reaches 4 digits (separated by a comma). Quantity becomes only the first digit, and the execution price becomes the last 3 digits of the quantity. I also dropped you a message on Discord.
0
Cone8
 ( 5.57% )
- ago
#4
Okay, thanks. I'll look into that.
(I think only Glitch monitors Discord.)
0
Cone8
 ( 5.57% )
- ago
#5
Fixed for the next IB Provider update (47) -




1
Cone8
 ( 5.57% )
- ago
#6
And IB Build 47 is available. How's that for turn-around?
0
- ago
#7
Quantity readout seems to work!
But it looks like all trades in the backtest are shifted by one trading day, the readout of the parser is correct though.
0
Cone8
 ( 5.57% )
- ago
#8
Since the Trade data have a non-zero timestamp, they'll sync to the next trading day for Daily data. If you run with 30-Minute bars, for example, they'll sync correctly.

Thanks for the observation. We'll have to make an adjustment for that!
0
- ago
#9
When running the backtest in <Daily scale, I unfortunately get the "Could not load Backtest Data in this Scale/Range" error.
0
Cone8
 ( 5.57% )
- ago
#10
Then what is the Backtest data and the scale and range?

An image of the Strategy Settings, Symbol/DataSource, Historical Providers, .etc. would be good to know.
0
- ago
#11
The backtest data is set to SPY, for which I have no <Daily data.
Is this mandatory to map the trade history on the right trading days in the backtest?
0
Glitch8
 ( 10.10% )
- ago
#12
WL8 comes with the WealthData Provider which can provide daily SPY data.

You’ll at least need to select a symbol and a benchmark symbol for which you can get daily data.
0
- ago
#13
<Daily = smaller than Daily :-)

QUOTE:
they'll sync to the next trading day for Daily data. If you run with 30-Minute bars, for example, they'll sync correctly.
0
Glitch8
 ( 10.10% )
- ago
#14
Do you have any intraday data? If so you could change the symbol to one for which you have data.
0
- ago
#15
I don't have intraday data for 30+ years, and it feels like a strange solution, because logically there is no need for intraday data here. Both the backtest (trade history) and benchmark data are Daily (intraday timestamps of trade history could be ignored). There is a sync problem as mentioned above. Would appreciate another solution for this (just shift all trades by one trading day if Data Scale is Daily?).
0
Cone8
 ( 5.57% )
- ago
#16
Don't worry. It's solved for Build 88.

Does IB supply trade histories for 30 years back?
1

Reply

Bookmark

Sort