Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Heikanashi Smoothing and TEMA Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dhirenshah
Posted : Thursday, March 9, 2017 2:06:17 AM
Registered User
Joined: 3/10/2012
Posts: 465

Hey Bruce

1) if you can please help with creating PCF for Smooth Heikanashi closing price without any delay of price,

the formula that i have from metastock for average heikanashi closing price  is as below

" haopen:= (REF((O + H + L + C )/4 - 1) + PREV) /2,

haC:= ((O + H + L + C) /4 + haOpen+Max(H,haOpen)+Min(L,haopen))/4,haC

 

2) Also if possible could you please do a pcf for 55 period zero lagging Tripple EMA average of closing price  and 55 period heikanashi zero lagging tripple EMA average,

3) And if possible could you please do a pcf for 21 period zero lagging Tripple EMA average of closing price  and 21 period heikanashi zero lagging tripple EMA average,

Thanks a lot

Dhiren

Bruce_L
Posted : Thursday, March 9, 2017 10:13:12 AM


Worden Trainer

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

All of the following formulas are for TC2000 v17+. If we use an "undelayed HA open" (this is the same as the normal HA open but plotted one bar earlier):

XAVG(O + H + L + C, 3) / 4

To calculate an "average HA close", you would get the following.

(XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C) / 16

A 55 period TEMA of the normal closing price can be written as follows.

3 * XAVGC55 - 3 * XAVG(XAVGC55, 55) + XAVG(XAVG(XAVGC55, 55), 55)

A 55 period TEMA of the above "average HA close" can be written as follows.

(3 * XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55) - 3 * XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55), 55) + XAVG(XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55), 55), 55)) / 16

A 21 period TEMA of the normal closing price can be written as follows.

3 * XAVGC21 - 3 * XAVG(XAVGC21, 21) + XAVG(XAVG(XAVGC21, 21), 21)

A 21 period TEMA of the above "average HA close" can be written as follows.

(3 * XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 21) - 3 * XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 21), 21) + XAVG(XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 21), 21), 21)) / 16

Triple Exponential Moving Average (TEMA)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Thursday, March 9, 2017 11:22:04 AM
Registered User
Joined: 3/10/2012
Posts: 465

Bruce thank you for the PCF's , but one question that i have is there a way to display the

To calculate an "average HA close", you would get the following.

(XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C) / 16

"in a heikanashi candles format with red or green candles instead of just a line on chart in V17 ?

 

Also can development team please add ctrl B shortcut for heikanashi also just like they have for line or  OHLC or candle stick toggling....

 

thanks a lot

Dhiren

Bruce_L
Posted : Thursday, March 9, 2017 11:29:55 AM


Worden Trainer

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

No, there is no way to plot the "average HA close" as described instead of the real HA close as part of a candle instead of plotting a line chart (or another plot style listed in the Custom PCF Indicator).

Note that if you change the HA open calculations, then HA high and HA low would also be different.

Thank you for your suggestion.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Thursday, March 9, 2017 11:56:53 AM
Registered User
Joined: 3/10/2012
Posts: 465

Okay Bruce thank you for that,,

 

One last question for this topic is how can i get dot or spike on chart when i overlay 55 period TEMA of the normal closing price on top of 55 period TEMA of the above "average HA close, idea is to only have spike or dot for first time crossover to the upside and

same for downside crossing first time 55 period TEMA of the normal closing price crossing down 55 period TEMA of the above "average HA close

regards

Dhiren

Bruce_L
Posted : Thursday, March 9, 2017 12:15:30 PM


Worden Trainer

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

Use one of these formulas as the Boolean Formula in a Custom PCF % True Indicator in TC2000 v17.

For the for price TEMA crossing up.

XUP(3 * XAVGC55 - 3 * XAVG(XAVGC55, 55) + XAVG(XAVG(XAVGC55, 55), 55), (3 * XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55) - 3 * XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55), 55) + XAVG(XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55), 55), 55)) / 16)

For the for price TEMA crossing down.

XDOWN(3 * XAVGC55 - 3 * XAVG(XAVGC55, 55) + XAVG(XAVG(XAVGC55, 55), 55), (3 * XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55) - 3 * XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55), 55) + XAVG(XAVG(XAVG((XAVG(O + H + L + C, 3) + GREATEST(4 * H, XAVG(O + H + L + C, 3)) + LEAST(4 * L, XAVG(O + H + L + C, 3)) + O + H + L + C), 55), 55), 55)) / 16)



-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.