Giter Club home page Giter Club logo

fullstack-trading-app's People

Contributors

hackingthemarkets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fullstack-trading-app's Issues

Lesson 07 MYSQL version of the new_closing_highs

If anyone is using MYSQL rather than SQLite I was able to get the new_closing_highs to work and grab the correct date by using the following command: ( to do the new_closing_lows version swap MAX with MIN )

elif stock_filter == 'new_closing_highs':
    # The inner join here allows us to grab the whole row with the proper date for MAX(close)
    cursor.execute("""
            SELECT * FROM (
                SELECT symbol, name, t1.stock_id, t1.close, t1.date
                FROM stock_price t1
                JOIN stock ON stock.id = t1.stock_id
                INNER JOIN 
                (
                    SELECT stock_id, MAX(close) as max_close
                    FROM stock_price
                    GROUP BY stock_id
                ) t2
                    ON t1.stock_id = t2.stock_id AND t1.close = t2.max_close
            ) AS t
            WHERE date = %s;
        """, (date.today().isoformat(),))

date.today() should not be used

I'm not sure, but I guess we shouldn't use date.today() to get current_date for "{current_date} 09:30:00-04:00"
date.today() will give you the local current date and at some time of the day (or night) it will be different with the US/Eastern date.
As long as we are using pytz for the is_dst hack, I would suggest to use it this way to sync with 'US/Eastern':
current_datetime = datetime.datetime.now(pytz.timezone('US/Eastern'))
utcoffset = str(current_datetime)[-6:]
current_date = current_datetime.date().isoformat()
start_minute_bar = f"{current_date} 09:30:00{utcoffset}"

Day orders expired

I've noticed, some of my orders got expired and wasn't sold by the end of the day.
I guess we need a way to prolongate the orders if they were not filled for some reason

Issue with date.today() in Populate_prices.py

Having issue populating prices on weekend as

if len(recent_closes) >= 50 and date.today().isoformat() == bar.t.date().isoformat():

is looking for today's date and not calculating any of the indicators

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.