mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 04:52:07 +00:00
@@ -66,11 +66,11 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import mplfinance as mpf\n",
|
||||
"from gamestonk_terminal.common.technical_analysis import trendline_api as trend\n",
|
||||
"from gamestonk_terminal.stocks import stocks_helper\n",
|
||||
"\n",
|
||||
"df_stock = trend.load_ticker(ticker, (datetime.now() - timedelta(days=180)).strftime(\"%Y-%m-%d\"))\n",
|
||||
"df_stock = trend.find_trendline(df_stock, \"OC_High\", \"high\")\n",
|
||||
"df_stock = trend.find_trendline(df_stock, \"OC_Low\", \"how\")\n",
|
||||
"df_stock = stocks_helper.load_ticker(ticker, (datetime.now() - timedelta(days=180)).strftime(\"%Y-%m-%d\"))\n",
|
||||
"df_stock = stocks_helper.find_trendline(df_stock, \"OC_High\", \"high\")\n",
|
||||
"df_stock = stocks_helper.find_trendline(df_stock, \"OC_Low\", \"how\")\n",
|
||||
"mc = mpf.make_marketcolors(up='green',down='red',\n",
|
||||
" edge='black',\n",
|
||||
" wick='black',\n",
|
||||
|
||||
Reference in New Issue
Block a user