Quant Science Profile picture
Jul 25 9 tweets 3 min read Read on X
🚨BREAKING: A new Python library for algorithmic trading.

Introducing TensorTrade: An open-source Python framework for trading using Reinforcement Learning (AI) Image
TensorTrade is an open source Python framework for building, training, evaluating, and deploying robust trading algorithms using reinforcement learning leveraging:

- numpy
- pandas
- gym
- keras
- tensorflow
Example: Using TensorTrade to Train and Evaluate with Reinforcement Learning

Step 1: Create training and evaluation sets

We'll start by creating a training and evaluation set as CSV files. Image
Step 2: Create a Configuration

Here we are using the config dictionary to store the CSV filename that we need to read. Image
Step 3: Initialize and run with Ray

Now it’s time to initialize and run Ray, passing all the parameters necessary, including the name of the environment creator function (create_env defined above). Image
Next Steps: Reward Agents

Reward Agents (AI) bring a new capability to allow Reinforcement Learning to integrate a reward system that allows the Agent to optimize the strategy to a reward (e.g. profit). Image
Performance:

Here's a performance chart of a reward-optimized example. Image
🚨 NEW WORKSHOP: How I built an automated algorithmic trading system with Python.

Hedge funds have better tools & faster execution.

That ends on August 7th.

👉 Register here to learn how to compete in an unfair game with Python (500 seats): learn.quantscience.io/become-a-pro-q…Image
That's a wrap!

If you enjoyed this thread:

1. Follow me @quantscience_ for more of these
2. RT the tweet below to share this thread with your audience

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Quant Science

Quant Science Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @quantscience_

Jul 25
🚨 Introducing Goldman Sachs GS-Quant

A Python quant toolkit made by Goldman Sachs.

This is what you need to know: (a thread 🧵) Image
1. GS Quant:

GS Quant is a Python toolkit for quantitative finance, created on top of one of the world’s most powerful risk transfer platforms. Image
2. Goals:

GS Quant is designed to accelerate the development of quantitative trading strategies and risk management solutions, crafted over 25 years of experience navigating global markets. Image
Read 7 tweets
Jul 24
🚨 BREAKING: I just stumbled upon this Machine Learning Python library for Algorithmic Trading that looks insane.

It's called AlphaPy.

This is what it does: Image
AlphaPy is a machine learning framework for both speculators and data scientists.

It is written in Python with the scikit-learn and pandas libraries, as well as many other helpful libraries for feature engineering and visualization.

Here's some of what it does:
1. Run machine learning models using scikit-learn and xgboost.

2. Create models for analyzing the markets with MarketFlow.

3. Predict sporting events with SportFlow.

4. Develop trading systems and analyze portfolios using MarketFlow and Quantopian’s pyfolio.
Read 11 tweets
Jul 19
FinViz: A financial Visualization and Screening Tool

Available in Python.

This is how: Image
Meet finvizfinance:

A Python package that collects financial information from the FinViz website.

- Stock Charts
- Fundamentals
- Technicals
- Insider Information
- News
- Forex
- Crypto
1. Get Chart Data, Fundamentals, Description: Image
Read 10 tweets
Jul 15
12 Python libraries for free market data everyone should know: Image
yfinance

Data for stocks (historic, intraday, fundamental), FX, crypto, and options. Uses Yahoo Finance so any data available through Yahoo is available through yfinance.

github.com/ranaroussi/yfi…
pandas-datareader

pandas-datareader used to be part of the pandas project. Now an independent project. Includes data for stocks, FX, economic indicators, Fama-French factors, and many others.

pandas-datareader.readthedocs.io/en/latest/
Read 17 tweets
Jul 14
Stock Prediction AI: Using Machine Learning and Deep Learning to predict stock price movements in Python.

The Python code is 100% free on GitHub.

Let's dive in (bookmark this): Image
1. The Python Machine Learning and Deep Learning Libraries:

- mxnet
- gluon
- sklearn
- xgboost Image
2. Stock Price Data (Train/Test)

The dashed vertical line represents the separation between training and test data.

GS is shown but will use 72 assets.

Daily prices for each asset. Image
Read 13 tweets
Jul 12
🚨BREAKING: A new Python library for algorithmic trading.

Introducing TensorTrade: An open-source Python framework for trading using Reinforcement Learning (AI) Image
TensorTrade is an open source Python framework for building, training, evaluating, and deploying robust trading algorithms using reinforcement learning leveraging:

- numpy
- pandas
- gym
- keras
- tensorflow
Example: Using TensorTrade to Train and Evaluate with Reinforcement Learning

Step 1: Create training and evaluation sets

We'll start by creating a training and evaluation set as CSV files. Image
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(