NexusFi: Find Your Edge


Home Menu

 



Categories Help    

 
The Ninjatrader EMA System Indicator 5 *
"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 
 
Suggest other entries I might like
Details: The Ninjatrader EMA System Indicator
Category: The Elite Circle 


January 1st, 2013
Size: 7.14 KB
Comments/ratings
4 * Mauro_60 January 3rd, 2013 11:30 AM
No Comment
5 * john2000 January 9th, 2013 06:19 AM
No Comment
5 * dilbert618 June 5th, 2016 09:58 AM
Thank you Thank you

 
Sort by

 




© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top