Tag Archives: pyqtgraph

Update on this candlestick Python chart demo with PyQtGraph

Update on this candlestick Python chart demo with PyQtGraph

From a Meetup attendee last nite:

Was that python charting you used pyqtgraph or pycharms? I seen you had both on the meeting last night?

Direct link to the candlestick data would be appreciated.
I am abandoning this for now due to this mysterious exception. I may have a easier alternative.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

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!

Demos of Python pyqtgraph for trading

Demos of Python pyqtgraph for trading

Various examples which could be killed

Don’t have enough packages for this GUI demo:

https://groups.google.com/forum/m/?fromgroups#!topic/pyqtgraph/FH8EZKJ62ws

OHLC but candlestick works:

https://groups.google.com/forum/m/#!topic/pyqtgraph/uJ_jJLln_3E

Does not work: http://stackoverflow.com/questions/17925006/embedding-pyqtgraph-in-qt-without-generating-new-window

 

Scrolling plots and works!

http://www.forexfactory.com/printthread.php?t=461603&page=2

https://github.com/pyqtgraph/pyqtgraph/blob/develop/examples/scrollingPlots.py

Embedding PyQtGraph in Qt without generating new Window

http://stackoverflow.com/questions/17925006/embedding-pyqtgraph-in-qt-without-generating-new-window

Have no idea but warns or just does not work for some reason:

https://groups.google.com/forum/m/#!topic/pyqtgraph/kz4U6dswEKg

http://stackoverflow.com/questions/28296049/pyqtgraph-plotting-time-series

This appears not to work but maybe useful for experts:

http://stackoverflow.com/questions/23151612/pyqtgraph-how-to-plot-time-series-date-and-time-on-the-x-axis

Join my FREE newsletter to learn which charts I use for my automated trading 

My working demo

Cool orderbook plot with Python Pandas ad pyqtgraph from Metatrader

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

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!

Running Qt Designer with Python pyqtgraph

Running Qt Designer with Python pyqtgraph

Here are more notes on how to get this powerful combo running with a GUI builder including a powerful plot. This can be done

 

Running Qt Designer
When you pyqt, it is installed as well but you will find it in a strange spot

find /Users -name Designer*

found in /Users/quantlabsnet/Qt/5.5/clang_64/bin/Designer.app

Convert .ui file to .py with
pyuic4 -x testDesigner.ui -o testDesigner.py

To use pyqtgraph ‘element’, follow
https://groups.google.com/forum/#!msg/pyqtgraph/31cqr43cvCA/K8aCYomRrBYJ
and another approach
https://github.com/pyqtgraph/pyqtgraph/commit/4e9e75817fb0d2b5f6880278857621af30d7d0f1

The VideoSpeedTest and ScatterPlotSpeedTest examples in pyqtgraph both use .ui files that were compiled using the tools/rebuildUi.py script (which just calls pyuic4

Note that there is also exampleLoaderTemplate.ui and exampleLoaderTemplate_pyside.py
but pyside package is needed

pip install -U PySide

You may need cmake: brew install cmake

Join my FREE newsletter to learn how I plan to use Python for my automated trading system

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

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!

Python pyqtgraph with trading chart

Python pyqtgraph with trading chart

Wow! This is pretty impressive and was very easy to install. Here are my notes and instructions:

 

 

Installing pyqtgraph

http://www.pyqtgraph.org/

brew install qt
brew install sip
brew install pyqt

For Mac OSX El Capitan as instructed with download file

python setup.py install

Cool examples
plotting.py

For 3D, you need python-opengl install with:
pip install PyOpenGL PyOpenGL_accelerate
http://pyopengl.sourceforge.net/documentation/installation.html

Other cool working examples
GLMeshItem.py

GraphicsLayout.py
GLSurfaceplot
ScatterPlotSpeedTest.py

 

Join my FREE newsletter to learn how I plan to implement Python and pyqtgraph into my automated trading

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

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!