-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Sql Lite DB #30
Comments
Hi Vamsi, glad you are liking AutoTrader! If you just want to visualise the data, you can just use import pandas as pd
from autotrader import AutoPlot
# Load price data
symbol = "symbol name"
df_data[symbol] = pd.read_sql( ... )
# Instantiate AutoPlot and plot
ap = AutoPlot(df_data[symbol])
ap.plot(instrument=symbol) Just make sure that the data you provide has columns named When you are ready to run some backtests/trade on the data, you will indeed have to use the Ps. you might find the following blog posts useful, which go over using AutoPlot in depth: |
Thank you very much Kieran for your guidance. I could able to successfully up the charts. Below is the code. I've few questions
Once again thank you for your time. Cheers!
|
indicators = {'tickers[1] Data': {'type': 'Heikin-Ashi', 'data': candle_data[tickers[1]]},}
ap = AutoPlot(candle_data[tickers[0]])
ap.plot(indicators=indicators, instrument=tickers[0]) |
Thank you for your guidance. This gave me how to plan my setup. Once again appreciate your time. |
Hi, first of all what you did with this repo is really impressive. It will help lot of people to research & backtesting on stock market.
I'm trying to create charts using data from local db. I've tick level data in sqllite db. Trying to understand how to provide that as input to
add_data
Currently I'm working on pandas dataframes to analyze, so this is how I access to data
df_data[symbol] = pd.read_sql("SELECT * FROM {} where time BETWEEN {} and {}".format(tradesTableName,tickerStartDateTimestamp,tickerEndDateTimestamp), con=db)
Any suggestions on how to plot the data?
Thank you very much for your time.
Cheers!
Vamsi
The text was updated successfully, but these errors were encountered: