"The Exponential Moving Average (EMA) is an indicator that indicates the exponential moving average value of a security's price over a period of days. When calculating an Exponential Moving Average (EMA), The Exponential Moving Average (EMA) applies more weight to recent prices than the SMA. What IS the SMA, anyway?..."
Here's one that is often used by itself, as well as being called on by many other indicators. There are two variables that depend only on the period, therefore only need to be calculated once, when the indicator first starts up. For some reason they were being calculated on every incoming tick, which is trivial to fix. Also, the term that is dependent on the previous value of the EMA only needs to be calculated on FirstTickOfBar.
The reduction in CPU demand is small for each instance, but you might have a lot of instances. This will run very well on COBC false. The addition of code to screen out redundant intrabar ticks (no price change, as in NT8) would reduce CPU demand on COBC false by around 70%.
Once again I am providing a cs file which is intended to replace the system indicator file, @EMA.cs.
Everyone knows what this looks like so I skipped the screen shot.
Revision B is the latest version. If you downloaded this before about 11:20PM Pacific Time on January 1 you do not have the correct file and should download it again.
The changes that I made must be very difficult to understand since nobody ever thought of making them before. The only reason they occurred to me is that I have two Advanced Degrees. A PhD in Neckwear Design and a Masters in Gibberish.
Category The Elite Circle
|
|
|