To add Bollinger Bands in finance_work2.py

Hi,

I am new to programming and this is my first major work.

I wish to add Bollinger Bands and Hull Moving Average(HMA) in
finance_work2.py. Need your guidance.

Installation details:

Windows 7
Python 3.3.2
Matplotlib 1.2.1
Numpy 1.7.1
Ta-Lib

As it is I don't have any issues running the script however, adding BB and
HMA will complete my task.

Thanks in advance.

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/To-add-Bollinger-Bands-in-finance-work2-py-tp41310.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Since nobody has replied, I would suggest asking your question on the scipy
users list, which is more geared towards implementation of various
algorithms. The matplotlib mailing list mostly deals with plotting
questions. When you need help with plotting your results, let us know!

Cheers!
Ben Root

···

On Sun, Jun 23, 2013 at 6:29 AM, psb1967 <psb67@...32...> wrote:

Hi,

I am new to programming and this is my first major work.

I wish to add Bollinger Bands and Hull Moving Average(HMA) in
finance_work2.py. Need your guidance.

Installation details:

Windows 7
Python 3.3.2
Matplotlib 1.2.1
Numpy 1.7.1
Ta-Lib

As it is I don't have any issues running the script however, adding BB and
HMA will complete my task.

Thanks in advance.

Hi Ben,

Benjamin Root-2 wrote

···

On Sun, Jun 23, 2013 at 6:29 AM, psb1967 &lt; > psb67@ > &gt; wrote:

Since nobody has replied, I would suggest asking your question on the
scipy
users list, which is more geared towards implementation of various
algorithms. The matplotlib mailing list mostly deals with plotting
questions. When you need help with plotting your results, let us know!

Cheers!
Ben Root

May be it was my mistake posting a wrong request, without properly
understanding the nature of this elite site, nevertheless, I am grateful for
your taking time to reply and guide me in the proper direction.

I will give it a try with scipy user list.

Regards

Suresh

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/To-add-Bollinger-Bands-in-finance-work2-py-tp41310p41355.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Suresh, I think the most likely reason no one has answered is that the intersection of the set of matplotlib experts and the set of people who know what Bollinger bands are is too close to zero. I'm a beginner at matplotlib, but I do know what Bollinger bands are, and I'd suggest your best approach is to take a look at the matplotlib demo gallery here:

http://matplotlib.org/examples

in particular, study the code for the fifth example from the top here: http://matplotlib.org/examples/pylab_examples/plotfile_demo.html

which implements a plot of Open, High. Low, and Closing prices. I'm assuming you know enough math to implement a Bollinger band version of a moving average, and can just substitute it for the code that plots the extra lines on the example.

Good luck,
Bill

···

On Jul 1, 2013, at 1:42 PM, psb1967 <psb67@...32...> wrote:

Hi Ben,

Benjamin Root-2 wrote

On Sun, Jun 23, 2013 at 6:29 AM, psb1967 &lt; > >> psb67@ > >> &gt; wrote:

Since nobody has replied, I would suggest asking your question on the
scipy
users list, which is more geared towards implementation of various
algorithms. The matplotlib mailing list mostly deals with plotting
questions. When you need help with plotting your results, let us know!

Cheers!
Ben Root

May be it was my mistake posting a wrong request, without properly
understanding the nature of this elite site, nevertheless, I am grateful for
your taking time to reply and guide me in the proper direction.

I will give it a try with scipy user list.

Regards

Suresh

William Ray Wing wrote

Suresh, I think the most likely reason no one has answered is that the
intersection of the set of matplotlib experts and the set of people who
know what Bollinger bands are is too close to zero. I'm a beginner at
matplotlib, but I do know what Bollinger bands are, and I'd suggest your
best approach is to take a look at the matplotlib demo gallery here:

http://matplotlib.org/examples

in particular, study the code for the fifth example from the top here:
http://matplotlib.org/examples/pylab_examples/plotfile_demo.html

which implements a plot of Open, High. Low, and Closing prices. I'm
assuming you know enough math to implement a Bollinger band version of a
moving average, and can just substitute it for the code that plots the
extra lines on the example.

Good luck,
Bill

Hi Bill,

I am truly overwhelmed to see the kind of efforts taken to guide when one
requires guidance, esp. the fresh programmers. One of the things that I
learned when no one responds with a specific answer but shown the direction
is that I am given an opportunity to learn and work by myself. I really
appreciate your time and will start working on the example you have cited.

In fact, I did get a complete Bollinger bands script however, I will start
working on the line you have shown; it may open up new avenues.

Regards.

Suresh

···

On Jul 1, 2013, at 1:42 PM, psb1967 &lt; > psb67@ > &gt; wrote:

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/To-add-Bollinger-Bands-in-finance-work2-py-tp41310p41359.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi Bill,

Made an important move, after a log jam for quite some.

I spent some time exploring *TA-LIB for python*. Today I tested plotting
Bollinger bands, SMA, WMA etc on my 5 min. intraday hist. chart. It was not
bad.

The most important one, *Hull Moving Average (HMA)* which is back bone to my
system needs to be written. I will start working on that one, now I don't
need to worry any more about other aspects. :slight_smile:

Thanks once again to both of you.

Regards

Suresh

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/To-add-Bollinger-Bands-in-finance-work2-py-tp41310p41454.html
Sent from the matplotlib - users mailing list archive at Nabble.com.