Registered User Joined: 11/25/2006 Posts: 51
|
I would like to create a Z-SCORE Indicator in TC2000 and create alerts on it.
I use ZScore in AmiBroker today and it would be a big help to have it in TC2000.
Link on ZScore from Stocks and Commodities Mag.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If I'm understanding correctly, it is just a variation on Bollinger Bands %B and a 20-Period Z-SCORE indicator could be created by using the following formula in a Custom PCF Indicator:
(C - AVGC20) / SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20)
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/4/2010 Posts: 11
|
Bruce could you take this further and add to the Z-score a simple 3 period moving average and a simple 5 period moving average to the resulting average as shown in the link to the article. It shows an indicator that uses these averages to determine cross over points. The article can explain it better that I can.
Thanks
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
Once you plot the custom indicator using Bruce's formula above, you can add the simple moving averages like you would with any other indicator.
Click on the name of the custom indicator in the legend and select Plot New Indicator Here...
Select Moving Average and set the Period to 3 and click OK.
Now click on the Moving Average in the legend and do the same thing, this time setting the Period to 5.
You can now click on the 3 period moving average and select Create Scan Condition.
Set the Condition to Crossing up through the 5 period average.
|
Registered User Joined: 11/25/2006 Posts: 51
|
QUOTE (Bruce_L)
If I'm understanding correctly, it is just a variation on Bollinger Bands %B and a 20-Period Z-SCORE indicator could be created by using the following formula in a Custom PCF Indicator:
(C - AVGC20) / SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20)
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
Thank you!
|