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񀠽 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!
|
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
|