I need to get historical data to train my Machine Learning model for the following 5 SPY indicators: STD, BB, RSI, MOM, and EMA.
In research environment I can get them using the following statements:

history = qb.History(["SPY"],  start_time, end_time, Resolution.Minute)
STD = qb.Indicator(StandardDeviation(36), spy.Symbol, start_time, end_time, Resolution.Minute)
BB = qb.Indicator(BollingerBands(30, 2), spy.Symbol, start_time, end_time, Resolution.Minute)
RSI = qb.Indicator(RelativeStrengthIndex(5), spy.Symbol, start_time, end_time, Resolution.Minute)
MOM = qb.Indicator(Momentum(5), spy.Symbol, start_time, end_time, Resolution.Minute)
EMA9 = qb.Indicator(ExponentialMovingAverage(9), spy.Symbol, start_time, end_time, Resolution.Minute)

How can I get them for main.py?
I really appreciate your help!!

Mario

PS: This is the second time I sent this question. Nobody answered to he first one.

Author