Bollinger Bands Signal with Retention

Author: EH
Contact: Information not Provided
Download this Script
Posting Date: 10/18/2016 Download Count: 10
Category: Function Rating: (1 votes)
Click here to Rate this Script

Summary:
This is the same logic as the Bollinger Bands Trading System but is in function form
so you can easily add it to an existing merged voting trading system.

This function should be called from a merged voting trading system. It returns
a +1, +2, -1 or -2 depending on the mode used and criteria that generated
signal.

Rather than use a separate exit strategy for profit and loss, it instead has a signal
retention variable that determines how long the buy or sell signal will exist after it was
initiated.

This was found to yield better results while adding to a merged voting system of my
own.

If before the signal retention runs out it generates the same signal, it will reset and
start from the beginning.

If the opposite signal is generated before it runs out, it will return the new signal and
the counter will be reset.

Example: Signal retention is set to 10 bars and the lower bollinger band is hit and
generates a buy signal. Two bars later it hits lower bollinger again so buy signal is
reset and it begins counting to 10 bars again. Then 7 bars later, the upper bollinger
is hit and a sell signal is generated. It begins counting to 10 bars again and
assuming another bollinger is not hit, will begin to return 0 after 10 bars.


User Comments:
Post a Comment

I am the author and would like to edit this page

I am the author and would like to delete this post

Back to Main Page