Tag Archives: Python

Example URL links of long term mean reverting strategy code with Ernie Chan

Notes

Notes on Ernie Chan lomg term vs short term coding

cointegration diverges between pairs over long term while co-relation comove in same direction
cointegration is long term and about price
correlation is short term and about returns
basic mean reversion strategy bollinger bands -> enter into position only when price deviates by more than a std deviation and exit when price reverts
consider commission fees to stay profitable

More helpful links while researching

http://epchan.blogspot.com/2016/04/mean-reversion-momentum-and-volatility.html

https://www.forexfactory.com/showthread.php?t=262827

Machine learning in trading: Predicting multiple trade outcomes using a linear regression model

FX-Trader Magazine Article: Function based trailing stop mechanisms

http://adrianboeing.blogspot.com/2010/03/alpha-beta-filters.html

https://robotwealth.com/demystifying-the-hurst-exponent-part-1/

https://robotwealth.com/demystifying-the-hurst-exponent-part-2/

http://www.jurikres.com/catalog1/ms_cfb.htm#top

https://www.researchgate.net/publication/266672524_Can_we_predict_the_unpredictable

very useful

https://dailypriceaction.com/free-forex-trading-lessons/mean-reversion-guide-to-market-timing/

Lots of Python code examples

https://www.datacamp.com/community/tutorials/finance-python-trading

Half life test mentioned in Ernie Chan’s video above

View story at Medium.com

More

View story at Medium.com

Complete pairs trading example

View story at Medium.com

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Forex pairs available for Oanda REST Python API

These are the only forex pairs that gives any data for the Python/REST API call of InstrumentsOrderBook. The good is these have liquidity/volume and low spread. My new Python script will give breakdown of total short vs longs at any time called.

Can get order book from
AUD_JPY
USD_CAD
EUR_CHF
GBP_USD
USD_CHF
AUD_USD
GBP_CHF
EUR_AUD
USD_JPY
EUR_USD
NZD_USD
EUR_JPY
GBP_JPY
EUR_GBP

Sort of like this https://marketplace.oanda.com/products/open-position-ratios

Be contrarion according to this?

Open Position Ratios (FX Brokerages)

Or ignore? https://www.forexlive.com/Orders/!/against-retail-position-ratio-charts-20140625

What this link discounts is that most trades do not go outside of the Oanda networks esp on higher volume pairs!

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
Microsoft

Why Microsoft enabled easy install for Python on Windows 10

So is Microfot trying to make it easier for developers to install Python on Windows 10. Are they just trying to stay relevant for both cloud and Machine learning as Google releases Tensor Flow 2 with Colab? I explain all this in an opinion video so I would be interested to hear what you have to say. Here is the Microsoft article below

 

Who put Python in the Windows 10 May 2019 Update?

If you are wanting to build trading bot with crypto, try learning with this framework

Python Algo Trading Infrastructure with Crypto Currency

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Kraken advantages with Cryptowatch and Python API

 

I did not know this when I signed up. They have a Python API for their killer CryptoWatch pweb platform. They have some big benefits over Binance:

  1. Allow stop loss and take profit
  2. Cryptowatch platform is owned by Kraken
  3. Cryptowatch has a Python  API
  4. Trade in fiat currency once you move to the intermediate level

This is an unofficial Python wrapper for the Cryptowatch public Data API. Cryptowatch is a cryptocurrency charting and trading platform owned by Kraken.

https://readthedocs.org/projects/python-cryptowatch/

Holy

https://github.com/uoshvis/python-cryptowatch

A sad note here. None of the cryptowatch for Python on GitHub are useful. They also appear to be abandonded. with no live trading capabilities.

I even looked for Kraken repos on Github but resulted in nothing useful.

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Cryptocurrency Algo trading Python infrastructure course to analytics

 

Python Infrastructure Student likes the content and says:

I want to say that I greatly enjoy your content and training. I have learned a lot from you through completing the python3 infrastructure course, watching countless hours of your youtube videos, and as a current member of the elite trial. Even though I was new to python when I started the infrastructure course I quickly picked it up and was off to the races and have also started reading the recommend book on machine learning. Looking forward to whats to come…
As I was browsing through your website I came across signals dashboard and wanted to see if I was eligible to start receiving the signals. If so, I have created a dedicated email address …
Thanks again for all the great content.

Thanks for the kind word and support

I have different signal services for that like
NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Google Colab leads the future of machine learning and Python

A repeat from yesterday in case you missed it:

Fun with Binance CCXT API trading

I got a live Binance trade video demo with their latest API. This stuff is not fun as I accidentally put at $100 + trade instead of $2 trade. You need to be careful when playing with this fire. I have all of this documented in my a NEW private 48 minute video for my ELITE level members.

The deal is still on for $997 for everything I do including the Python Infrastructure course to lay down your foundation for both systematic trading and the lucrative trading bots.

https://quantlabs.net/academy/introduction-quant-elite-membership/

Much will be coming.

Google Colab will lead the future of machine learning and Python

I don’t even think Microsoft Azure is going to be as competitive compared to what Google is pumping out. Google owns the mobile with Android, Google has the market leadership with their machine learning framework like TensorFlow, Now this Colab puts them light yers ahead in the integrated development environment market even compared to any thing Microsoft puts out including Visual Code.

See the links I refer to by going here

https://quantlabs.net/blog/2019/04/google-colab-will-lead-the-future-of-machine-learning-and-python/

Who tried this coin bot VPS hosting service in terms of safety

Has anyone ever hosted their trading bot on hosting service especially in safety or secure terms https://coinbotvps.com/#questions

I am trying to figure if it is safe and secure in terms of not stealing API connection data. Another concern I would have is how responsive they are in terms of problems.

Let me know your comments especially if you have tried them.

Here is part of my chat conversation:

https://quantlabs.net/blog/2019/04/who-tried-this-coin-bot-vps-hosting-service-in-terms-of-safety/

Bryan

P.S. The future will be very exciting with what I am discovering from these Google free open source machine learning tools.

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Stock predicting with Google TensorFlow 2 Colab Python

Check out this article I posted yesterday which lit up my Facebook. This was the new Google Colab that work with TensorFflow really nice.

Stock predictor with Google TensorFlow 2 Colab Python

Add in the Google Colab environment, you will have fun working with this stuff. Here is a video demonstrating both the TensorFlow 2 for stock predicting. This is most the likely future of machine learning for the quant finance world.

https://quantlabs.net/blog/2019/04/stock-predictor-with-google-tensorflow-2-colab-python/

Fun with Binance CCXT API trading

 

I got a live Binance trade with their latest API. This tuff is not fun as I accidentally put at $100 + trade instead of $2 trade. You need to be careful when playing with this fire. I have all of this documented in my a NEW private 48 minute video for my ELITE level members.

The deal is still on for $997 for everything I do including the Python Infrastructure course to lay down your foundation for both systematic trading and the lucrative trading bots.

 

https://quantlabs.net/academy/introduction-quant-elite-membership/

Thanks and much will be coming.

Bryan

P.S. The future will be very exciting with what I am discovering from these Google free open source machine learning tools.

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Stock predictor with Google TensorFlow 2 Colab Python

Add in the Google  Colab environment, you will have fund working with this stuff. Here is a video demonstrating both the TensorFLow 2 for stock predicting. This is most likely future in machine learning for the quant finance world.

Here is the Colab environment tool

 

https://colab.research.google.com/notebooks/welcome.ipynb

 

 

 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

More machine learning with python books added

I have added two more books for my machine learning study. This includes:

Introduction to Machine Learning with Python
and
Thoughtful Machine Learning with Python

The first book is well received by reviews online including Amazon buyers. You will find the second does not have the same level of review but some of the topics are not addressed elsewhere.

best book for machine learning with TensorFlow and Python Scikit-Learn

Both books would probably be compared to old school compared to the one I start with which is here

best book for machine learning with TensorFlow and Python Scikit-Learn

I plan to get started with this book in the next day. It seems to save some time as opposed to learning from other legends like Andrew Ng or Geoffrey Hinton.

Let’s see what happens with this major undertaking.

As I want to focus on Python, I am sure there will be new content added to my current Infrastructure Building Block course. As I now tell newbies, this is the place to focus on to build your foundation if you want to leverage your technical knowledge in algo trading.

Here are the details of that book I speak of

Python Algo Trading Infrastructure with Crypto Currency

For the time being, just ignore everything else.
Bye Paypal hello Stripe and crypto for new payment gateway

I have posted an articles about Paypal new policies which is making me move off it as a payment gateway. See this here

Bye Paypal hello Stripe and crypto for new payment gateway

I am also considering Stripe to be being high risk. As a result, all future payments will be credit card or debit cards only via my CRM provider Infusionsoft. Also, I will be hosting some deals as a testing of this new payment gateway. It will targeted to those non technical folks out there.

Thanks

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

best book for machine learning with TensorFlow and Python Scikit-Learn

is this best machine learning book to help build your cryptocurrency trading bot with pinpoint accuracy?

Bot Secret video posted while BCH LTC is one fire today

 

Topics on this secret video about this bot is now embedded in the Elite membership include

1. Early indicators for market entry

2. Using whipsaws to prevent high probable losses

3. Why this forex bot works

(nearly 2 hours)

THIS WILL BE AVAILABLE UNTIL LATE FRIDAY (2 DAYS ONLY)

Get access via your ELITE Trial or Annual here

https://quantlabs.net/academy/introduction-quant-elite-membership/

Is this the best book for machine learning for TensorFlow and Python Scikit-Learn

A book sent over by student which covers all the basic machine learning frameworks including TensorFlow and Scikit-Learn in Python. This might be something I will use as a one stop shop for learning this stuff.

This should be useful to build out more intelligent algo / systematic trading systems for any asset class out there.

https://quantlabs.net/blog/2019/04/is-this-the-best-book-for-machine-learning-for-tensorflow-and-python-scikit-learn/

Thanks Bryan

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!