Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

I have 4 dataframe Df1 Df2 Df3 Df4 I calculate all df values.. But i want to plot graph using column from all 4 df on the top of first df..can you help how can i do that
yatish Data Science 19 9,564 Dec-14-2018, 05:40 PM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

def backtest( price1,init_capital, max_capital_deploy, buy_margin, sell_margin): longwindow = int(parameters[0]) shortwindow = int(parameters[1]) if (longwindow < shortwindow) or (short...
yatish Data Science 19 9,564 Sep-10-2018, 06:22 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

ok I m trying to fix it..but how can I call the backtst function...
yatish Data Science 19 9,564 Sep-07-2018, 11:54 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

import pandas as pd import numpy as np import statsmodels.tsa.stattools as ts import matplotlib.pyplot as plt from scipy import optimize data = pd.read_csv('aapl.csv') data1 = data[['Date']] def ...
yatish Data Science 19 9,564 Sep-06-2018, 05:19 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

initial_capital= float(1000.0) positions = pd.DataFrame(index=signals.index).fillna(0.0) positions['AAPL'] = 100*signals['signal'] portfolio = positions.multiply(aapl['Adj Close'], axis=0) pos_diff ...
yatish Data Science 19 9,564 Jul-16-2018, 11:32 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

done thanku so much gontajones ...!!!!
yatish Data Science 19 9,564 Jul-06-2018, 10:22 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

I tried the "way" you said I got all in same line but when I used print(aapl.index) print(aapl.columns) I got this RangeIndex(start=0, stop=1845, step=1) Index(['Date', 'Open', 'High', 'Low', 'Close'...
yatish Data Science 19 9,564 Jul-06-2018, 09:37 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

I don't wANT TO DROP any column sir I want to to get obv in the same dataframe of appl in continuation right now it is getting below the data frame with same index Date Open High...
yatish Data Science 19 9,564 Jul-06-2018, 05:57 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

can you please tell me how can I append it to my other index date open high low close volume obv in this way
yatish Data Science 19 9,564 Jul-05-2018, 12:11 PM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

below is the data on which I want to calculate obv value for parameter 10 and 20 Date,Open,High,Low,Close,Adj Close,Volume 2009-12-31,30.447144,30.478571000000002,30.08,30.104286,26.986492,88102700 20...
yatish Data Science 19 9,564 Jul-05-2018, 04:48 AM
    Thread: error on stock indicator code on balance volume
Post: RE: error on stock indicator code on balance volum...

python Date Open high Low close Volume 2006-10-02 75.10 75.870 74.30 74.86 25451400.0 the dataframe is in this format actually when I am pasting ...
yatish Data Science 19 9,564 Jul-04-2018, 10:59 AM
    Thread: error on stock indicator code on balance volume
Post: error on stock indicator code on balance volume

# On-balance Volume def on_balance_volume(aapl, n): i = 0 OBV = [0] #I have a dataframe with open high low close volume of stock prices and wanted to calaculate obv of parameter 10 and 20 ...
yatish Data Science 19 9,564 Jul-04-2018, 10:01 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020