Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Bollinger Band Formula for RSI Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
amullen5190
Posted : Saturday, March 28, 2015 7:58:22 PM
Registered User
Joined: 2/11/2015
Posts: 2

Hi,

I am having a bit of trouble figuring out how to calculate a bollinger band for RSI. I have the bollinger band formula for price from this thread: http://forums.worden.com/default.aspx?g=posts&t=53647&#264253 but am not sure how to get a past RSI14 value (like H2). Do you have any recommendations?

Also, is there a comprehensive syntax guide for the TC2000 scripting language? I already have this page: http://www.tc2000.com/tc2000help/Content/TC2000NEW/Personal%20Criteria%20Language.htm

Thanks!

Bruce_L
Posted : Monday, March 30, 2015 1:17:21 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The PCF Formula Descriptions and Handy PCF example formulas to help you learn the syntax of PCFs! topics are pretty much going to give you the same information as the help files as far as exploring the syntax of the Personal Criteria Formula Language.

If the RSI is Wilder's smoothed, the formula is going to be way too long and slow to be practical or post in the forums.

If it is the plain RSI indicator without Wilder's smoothing, then an upper Bollinger Band 20, 2.00 could be written as follows.

RSI14.20 + 2 * SQR(ABS(RSI14.1. ^ 2 + RSI14.1.1 ^ 2 + RSI14.1.2 ^ 2 + RSI14.1.3 ^ 2 + RSI14.1.4 ^ 2 + RSI14.1.5 ^ 2 + RSI14.1.6 ^ 2 + RSI14.1.7 ^ 2 + RSI14.1.8 ^ 2 + RSI14.1.9 ^ 2 + RSI14.1.10 ^ 2 + RSI14.1.11 ^ 2 + RSI14.1.12 ^ 2 + RSI14.1.13 ^ 2 + RSI14.1.14 ^ 2 + RSI14.1.15 ^ 2 + RSI14.1.16 ^ 2 + RSI14.1.17 ^ 2 + RSI14.1.18 ^ 2 + RSI14.1.19 ^ 2 - 20 * RSI14.20 ^ 2) / 20)

With the lower Bollinger Band just changing one of the + signs to a - sign instead.

RSI14.20 - 2 * SQR(ABS(RSI14.1. ^ 2 + RSI14.1.1 ^ 2 + RSI14.1.2 ^ 2 + RSI14.1.3 ^ 2 + RSI14.1.4 ^ 2 + RSI14.1.5 ^ 2 + RSI14.1.6 ^ 2 + RSI14.1.7 ^ 2 + RSI14.1.8 ^ 2 + RSI14.1.9 ^ 2 + RSI14.1.10 ^ 2 + RSI14.1.11 ^ 2 + RSI14.1.12 ^ 2 + RSI14.1.13 ^ 2 + RSI14.1.14 ^ 2 + RSI14.1.15 ^ 2 + RSI14.1.16 ^ 2 + RSI14.1.17 ^ 2 + RSI14.1.18 ^ 2 + RSI14.1.19 ^ 2 - 20 * RSI14.20 ^ 2) / 20)

Modelling Bollinger Bands (& Standard Deviation) in a TC PCF

Your best option in TC2000 version 12.4 is usually going to be just not writing a Condition Formula at all. Just add the Bollinger Bands to the RSI indicator. You would then be able to click on the Bollinger Bands and select Create Scan Condition to create a condition.

Create Conditions from Your Chart (5:25)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.