mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Fix emacross with Polygon as source (#3874)
* fix emacross with Polygon as source * remove import
This commit is contained in:
@@ -15,4 +15,89 @@ rsi
|
||||
rsi -l 20 -u 80 -p 12
|
||||
rsi --spy
|
||||
rsi --no_bench --no_short
|
||||
..
|
||||
load ${ticker=tsla} --source YahooFinance
|
||||
bt
|
||||
whatif
|
||||
whatif -n 2.34
|
||||
whatif 2021-01-01
|
||||
ema
|
||||
ema --spy
|
||||
ema --spy --no_bench
|
||||
ema -l 2
|
||||
emacross
|
||||
emacross -l 10 -s 3
|
||||
emacross --spy --no_bench --no_short
|
||||
rsi
|
||||
rsi -l 20 -u 80 -p 12
|
||||
rsi --spy
|
||||
rsi --no_bench --no_short
|
||||
..
|
||||
load ${ticker=tsla} --source IEXCloud
|
||||
bt
|
||||
whatif
|
||||
whatif -n 2.34
|
||||
whatif 2021-01-01
|
||||
ema
|
||||
ema --spy
|
||||
ema --spy --no_bench
|
||||
ema -l 2
|
||||
emacross
|
||||
emacross -l 10 -s 3
|
||||
emacross --spy --no_bench --no_short
|
||||
rsi
|
||||
rsi -l 20 -u 80 -p 12
|
||||
rsi --spy
|
||||
rsi --no_bench --no_short
|
||||
..
|
||||
load ${ticker=tsla} --source AlphaVantage
|
||||
bt
|
||||
whatif
|
||||
whatif -n 2.34
|
||||
whatif 2021-01-01
|
||||
ema
|
||||
ema --spy
|
||||
ema --spy --no_bench
|
||||
ema -l 2
|
||||
emacross
|
||||
emacross -l 10 -s 3
|
||||
emacross --spy --no_bench --no_short
|
||||
rsi
|
||||
rsi -l 20 -u 80 -p 12
|
||||
rsi --spy
|
||||
rsi --no_bench --no_short
|
||||
..
|
||||
load ${ticker=tsla} --source Polygon
|
||||
bt
|
||||
whatif
|
||||
whatif -n 2.34
|
||||
whatif 2021-01-01
|
||||
ema
|
||||
ema --spy
|
||||
ema --spy --no_bench
|
||||
ema -l 2
|
||||
emacross
|
||||
emacross -l 10 -s 3
|
||||
emacross --spy --no_bench --no_short
|
||||
rsi
|
||||
rsi -l 20 -u 80 -p 12
|
||||
rsi --spy
|
||||
rsi --no_bench --no_short
|
||||
..
|
||||
load ${ticker=tsla} --source EODHD
|
||||
bt
|
||||
whatif
|
||||
whatif -n 2.34
|
||||
whatif 2021-01-01
|
||||
ema
|
||||
ema --spy
|
||||
ema --spy --no_bench
|
||||
ema -l 2
|
||||
emacross
|
||||
emacross -l 10 -s 3
|
||||
emacross --spy --no_bench --no_short
|
||||
rsi
|
||||
rsi -l 20 -u 80 -p 12
|
||||
rsi --spy
|
||||
rsi --no_bench --no_short
|
||||
exit
|
||||
|
||||
@@ -227,6 +227,7 @@ def load_stock_polygon(
|
||||
df_stock_candidate["Close"] = df_stock_candidate["Adj Close"]
|
||||
df_stock_candidate = df_stock_candidate.sort_values(by="date")
|
||||
df_stock_candidate = df_stock_candidate.set_index("date")
|
||||
df_stock_candidate.index = df_stock_candidate.index.normalize()
|
||||
return df_stock_candidate
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user