I tried the second option but it didn't go as expected. I read the documentation and review every post about the backfill_from and tried several things from there without success.
The issue is that the timestamp I get from the data when the next() is called jump from 12:00 to 5:00 of the other day instead of continue to 12:01 and so on until 16:00 and then 9:30 of the next day. Here an extract of my prints:
I have the same problem as reported in the initial post:
in my strategy, I call self.order_target_value(...), when debugging into that function I get to the framework call value = self.broker.getvalue(datas=[data]) , this call returns an invalid value(a very large value, close to the value of the entire portfolio), in my case, it should return 0 since the ticker does not exist in IB portfolio
Can you try and replicate this behavior and fix in case there is a bug?