Need help to use indicators, how to obtain or convert quotes #1016
gabrielblaj
started this conversation in
Help and support
Replies: 2 comments
|
Tip For a working example using price quotes from a pandas.DataFrame, see our Replit of the Williams Fractal indicator. If you're having general trouble getting setup, see our QuickStart guide. See also: |
0 replies
|
Hi @gabrielblaj; I was getting the same error ( You need to create a list of quotes. The process I'm following:
I just have to work out how to convert the answer back to a df! Hope this helps. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
//Python code********
import ccxt
import pandas as pd
afiseaza toate ROW
pd.set_option('display.max_rows',None)
import heikin_ashi as ha
from datetime import datetime
import plotly.graph_objects as go# collect the candlestick data from Binance
import schedule
import time
from stock_indicators import indicators
from stock_indicators import Quote
binance = ccxt.binance()
trading_pair = 'BTC/BUSD'
*****************************limit este numarul de lumanari
candles = binance.fetch_ohlcv(trading_pair, '1h',limit=500)
for candle in candles:
candle[0] = pd.to_datetime(candle[0],unit='ms')
df=pd.DataFrame(candles)
df.columns= ['date','open', 'high', 'low', 'close', 'volume']
quotes=df
psar=indicators.get_parabolic_sar(quotes, acceleration_step=0.02, max_acceleration_factor=0.2)
//end code************
//error*********************
No method matches given arguments for List`1.Add: (<class 'str'>)
//end errror******
All reactions