donv98 
Gold User, Member, TeleChart

Registered User 




Gender: 

Thursday, July 29, 2010 
Thursday, March 23, 2017 12:39:27 PM 
349 [0.12% of all post / 0.14 posts per day] 

Bruce,
Thank you very much.
This is very helpful.
I never thought about it in terms like you presented with rounding errors and that there would not be exact identicality.
I think close enough to identical for me is probably within 0.5,so that's what I will try for the difference.
I am spending time on this because I think the above pcf is worthy of the efforts.
Thank you for your efforts,
Don

Bruce,
Many thanks for trying.
The pcf looks for identical tsi values over the past 2 bars which can be quite useful.
This clearly demonstrates the limitations of the old syntax.
If I were using V. 17 could I use this pcf as written:
XAVG(XAVG(C  C1,3), 8) / XAVG(XAVG(ABS(C  C1), 3), 8) =
XAVG(XAVG(C1  C2,3), 8) / XAVG(XAVG(ABS(C1  C2), 3), 8) ?
Don

Bruce,
Would the below pcf from V 17 be possible using the old formulas?
XAVG(XAVG(C  C1,3), 8) / XAVG(XAVG(ABS(C  C1), 3), 8) =
XAVG(XAVG(C1  C2,3), 8) / XAVG(XAVG(ABS(C1  C2), 3), 8)
Thank you for any help,
Don

Bruce,
Thank you.
Don

Bruce,
Please help me understand the above template.
First the price change is calculated ie. CC1
The way the above is written it looks like the short period smoothing is done before the long period smoothing. Stockcharts.com has the long period first, then the short period.
Double Smoothed PC
PC = Current Price less Prior Price
First Smoothing = 25period EMA of PC
Second Smoothing = 13period EMA of 25period EMA of PC
Double Smoothed Absolute PC
Absolute Price Change PC = Absolute Value of Current Price less Prior Price
First Smoothing = 25period EMA of PC
Second Smoothing = 13period EMA of 25period EMA of PC
What am I getting wrong here?
Thank you,
Don

Bruce,
Fantastic job compiling all of these templates so they are readily accessible,
Thank you very much!
Don

QUOTE (Bruce_L)
There is no way to reference the start of the day in an intraday time frame, so a formula which would automatically check for consolidation since the start of the trading day in a 5 minute time frame is not possible.
Identifying consolidation can be done a variety of ways.

You could check for price to remain within a specific dollar range over a specific span of time.

You could check for price to remain within a specific percent range over a specific span of time.

You could check for the total price range over a span of time to be much narrower than the total price range over a longer or previous span of time.

You could check for the width of the Bollinger Bands to be less than an arbitrary percentage of the value of the centerline of the Bollinger Bands.

Youcould check for the width of the Bollinger Band to be narrower than the width of the Keltner Channels.

You could check for ADX to be low.

You could check for the values of a short and a long moving average to be near each other (MACD or PPO to be near zero).
Identifying the breakout can be done a variety of ways.

You could check for whatever requirement you set for consolidation to be no longer true.

You could check for price to above the max high for an arbitrary period.

You could check for the requirement not be true and price to be above the high of the consolidation period (this might result in a much longer formula).

You could check for MACD crossing up through zero.

You could check for DI+ crossing above DI.
Really, the point is that you need to define both the consolidation and the breakout to create a formula, not that any particular technique is better than any ohter technique.
TC2000 v17 didn't add a way to identify the start of the trading day, but it still might be able to help us with the addition of the CountTrue(), SinceTrue() and TrueInRow() functions.
Version 17 PCF Capabilities
Bruce,
I wish there was an easy way to preserve some of these excellent comprehensive posts like the above.
I really appreciate the above post.
Don

Bruce,
Many thanks for helping me understand this valuable trick.
Don

Bruce,
I am wondering how universally the trick above can be applied.'
Can this trick be used to convert any Boolean into a dot plotted on the chart?

Bruce,
Thank you for helping me understand.
I really like the trick of plotting a dot 1.005 times the high.
Very useful.
Don

