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 |

SMI Ergodic Oscillator Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Bruce_L
Posted : Friday, March 31, 2017 11:51:11 AM


Worden Trainer

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

SMI Ergodic Oscillator

Template (v17+)

XAVG(XAVG(C - C1, p), q) / XAVG(XAVG(ABS(C - C1), p), q) - XAVG(XAVG(XAVG(C - C1, p), q) / XAVG(XAVG(ABS(C - C1), p), q), r)

Where p is the Short Period.
Where q is the Long Period.
Where r is the Signal Period.

Related Topics



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
stockscience
Posted : Monday, November 13, 2017 11:17:24 AM
Registered User
Joined: 6/26/2011
Posts: 128

Hi  Bruce: Is it possible to code this oscillator as a pcf?   (I don't care about the histogram, colors etc.):

https://www.tradingview.com/script/vWzBujcZ-Adaptive-Ergodic-Candlestick-Oscillator-LazyBear/

StockGuy
Posted : Monday, November 13, 2017 11:31:23 AM

Administration

Joined: 9/30/2004
Posts: 9,187

Yes, that is the formula above.  You just need to sub the short, long and signal periods to your liking.

stockscience
Posted : Monday, November 13, 2017 11:36:53 AM
Registered User
Joined: 6/26/2011
Posts: 128

QUOTE (StockGuy)

Yes, that is the formula above.  You just need to sub the short, long and signal periods to your liking.

I don't think so. It is an adaptive form which uses stochastic 14.

Bruce_L
Posted : Monday, November 13, 2017 12:18:52 PM


Worden Trainer

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

I am not quite sure I understand the code and I don't think this is right (I don't think I am understanding the use of the EP variable).

100 * XAVG(ABS(STOC14 - 50) / 50 * XAVG(ABS(STOC14 - 50) / 50 *(C - O), 2), 2) / XAVG(ABS(STOC14 - 50) / 50 * XAVG(ABS(STOC14 - 50) / 50 * (H - L), 2), 2)

And the SE values used to calculate some of the colors is the following.

100 * XAVG(XAVG(ABS(STOC14 - 50) / 50 * XAVG(ABS(STOC14 - 50) / 50 * (C - O), 2), 2) / XAVG(ABS(STOC14 - 50) / 50 * XAVG(ABS(STOC14 - 50) / 50 * (H - L), 2), 2), 9)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Chris55
Posted : Thursday, March 15, 2018 2:29:00 PM
Registered User
Joined: 6/14/2016
Posts: 285

Hi Bruce,

This is a little more complex. I'm trying to write a PCF Indicator (not condition) for the

1. Klinger Volume Oscillator (9, 13) as the source derived from the price;

2. Next up in the hierarchy,  I looking for the SMI Ergodic Indicator (3, 7) sourced by the KVO (9,13);

And lastly the 7 period ROC of the SMI Ergodic Indicator (3, 7).

It would be easy to make a Condition PCF, but I would like to have an indicator which shows zero line (of the Ergodic Osc) crossings from trhe ROC. Ideally a +1 bar when the ROC crosses the zero line up and a -1 bar when the ROC crosses the zero line down.

Is this doable?

Many thanks,

Chris 

Bruce_L
Posted : Friday, March 16, 2018 10:17:38 AM


Worden Trainer

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

I don't think I am going to be able to do this. So far, I haven't been able to reproduce the Klinger Volume Oscillator. Assuming I can do so eventually, I suspect the formula is gonig to be too long and slow to be practical or post in the forums.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Chris55
Posted : Friday, March 16, 2018 1:36:23 PM
Registered User
Joined: 6/14/2016
Posts: 285

Hi Bruce,

I understand. Do you think you could program it without the KVO.

Just by means of the ROC(7) of the SMI Ergodic Indicator (3, 7)?

That would help alot, i.e. also having a +1 Histogram bar with the ROC-7 crossing the zero line up, and a -1 histogram bar for the ROC-7 crossing the zero line down.

Perhaps it is easy to change the ROC-7 parameter subsequently into a ROC-5 or so.

Many thanks Bruce.

Chris

Chris55
Posted : Friday, March 16, 2018 1:43:31 PM
Registered User
Joined: 6/14/2016
Posts: 285

Hi Bruce,

I just found a better way, but don't know if it's possible:

To the the MoneyStream (instead of the KVO), then to source the TSI3-5 from the MS. And lastly to have the ROC(5) being sourced from the TSI3-5.

That would elimiate the KVO but using MS, it would be superior to just using the ROC(7) of the TSI3-7.

Do you think with may be doable?

Thanks, Bruce

Chris

Chris55
Posted : Friday, March 16, 2018 1:52:56 PM
Registered User
Joined: 6/14/2016
Posts: 285

Sorry, I got all all confused looking at a differen chart.

What I mean is:

1. Use MS instead of KVO.

2. Then source SMI Ergodic Indicator (3, 5) from the MS.

3. Then source ROC-5 from the SMI Ergodic (3,5)

Somehow the TSI slipped in there instead of the SMI Ergodic indicator, very sorry.

Chris

 

This is definately correct.

 

Chris55
Posted : Friday, March 16, 2018 2:02:06 PM
Registered User
Joined: 6/14/2016
Posts: 285

Many thanks indeed:

Do I make 2 separate PCF Indicators here? One for the top and one for the bottom one...

Bruce_L
Posted : Friday, March 16, 2018 2:10:24 PM


Worden Trainer

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

I keep trying to respond to your question and then you post a clarification before I respond which makes my response incorrect (or in the last case it just made me think it was wrong as TSI and SMI Ergodic are two different names for the same thing).

So I think the base formula for your most recent proposal would be the following.

XAVG(XAVG(MS - MS1.1, 3), 5) / XAVG(XAVG(ABS(MS - MS1.1), 3), 5) - XAVG(XAVG(MS1.5 - MS1.6, 3), 5) / XAVG(XAVG(ABS(MS1.5 - MS1.6), 3), 5)

And a histogram for the crossovers would be the following.

(SGN(XAVG(XAVG(MS - MS1.1, 3), 5) / XAVG(XAVG(ABS(MS - MS1.1), 3), 5) - XAVG(XAVG(MS1.5 - MS1.6, 3), 5) / XAVG(XAVG(ABS(MS1.5 - MS1.6), 3), 5)) - SGN(XAVG(XAVG(MS1.1 - MS1.2, 3), 5) / XAVG(XAVG(ABS(MS1.1 - MS1.2), 3), 5) - XAVG(XAVG(MS1.6 - MS1.7, 3), 5) / XAVG(XAVG(ABS(MS1.6 - MS1.7), 3), 5))) / 2

These are two different formulas and/or Custom PCF Indicators.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Chris55
Posted : Friday, March 16, 2018 3:13:30 PM
Registered User
Joined: 6/14/2016
Posts: 285

Thanks Bruce, sorry about all the confusion.

Chris55
Posted : Friday, March 16, 2018 5:05:50 PM
Registered User
Joined: 6/14/2016
Posts: 285

Hi Bruce,

I really don't want to be a bother. But looking at the two new indicators I can see a 2-3 bar delay in the zero line crossing of the basic indicator as compared to the histogram signals. I have (tried to) attach a respective screen print. Any thought on this?

 

Priyaa
Posted : Thursday, March 21, 2019 2:04:37 PM
Registered User
Joined: 1/11/2019
Posts: 28

Can I also get a copy in TC Mail please?

Regards

Bruce_L
Posted : Thursday, March 21, 2019 2:41:08 PM


Worden Trainer

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

I have sent you a copy of a chart containing my interpretation of ROC of SMI of MS via TCMail. It will only work for TC2000 v17 or newer. You should be able to edit the Custom PCF Indicators to view the formulas.

How to Receive Messages with TC Mail



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