Hi All,

I love QC and I'm getting more and more into it, but I really hope the learning curve flattens out at some point because the most basic stuff takes ages to figure out! I guess the effort will pay off!

I'm just trying to join historical OHLC with some indicators in a single dataframe. I gave up after a long time trying.

The below code runs but the result is wrong as the index is not being kept properly.

Any help please?

df = qb.History(spy.Symbol, startDate, endDate, resolution)

mom = Momentum(11)
momdf = qb.Indicator(mom, "SPY", startDate, endDate, resolution)

results = pd.concat([df, momdf])
results

Author