NexusFi: Find Your Edge


Home Menu

 





Collection of "ana"-Indicators for NinjaTrader


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 53 posts (428 thanks)
    2. looks_two Big Mike with 8 posts (25 thanks)
    3. looks_3 podski with 5 posts (4 thanks)
    4. looks_4 Aragorn with 4 posts (1 thanks)
      Best Posters
    1. looks_one Fat Tails with 8.1 thanks per post
    2. looks_two Silvester17 with 6 thanks per post
    3. looks_3 Big Mike with 3.1 thanks per post
    4. looks_4 podski with 0.8 thanks per post
    1. trending_up 77,629 views
    2. thumb_up 476 thanks given
    3. group 106 followers
    1. forum 109 posts
    2. attach_file 37 attachments




 
Search this Thread

Collection of "ana"-Indicators for NinjaTrader

  #1 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

I am creating this thread just for publishing and maintaining NinjaTrader indicators. As I have already published over 150 indicators - some of them in the downloads and some of them elsewhere -, I need to simplify the maintenance of those indicators.

The purpose of this thread is

-> to test new indicators
-> to collect feedback
-> to inform about new versions
-> to make it easier to find ana-indicators

Final indicators will be moved to the download section. Experimental indicators - labeled X - will be published as attachements.

Please do not use this thread for discussing session indicators or multi-timeframe indicators, as there are other threads which I have created for this purpose.

I will gradually review existing indicators and list them here, so the thread will take some time before it can be used as intended.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


The original Stochastics indicator, which is attributed to George Lane, is based on the relative values of the current close compared to a lookback period of 14 days.

Fast Stochastics: The raw value is used as the K-line, the D-line is obtained by smoothing the K-line with a 3-period SMA.

Full Stochastics: The raw value is smoothed with a 3-period SMA to generate the K-line. The D-line is obtained as a 7-period SMA of the K-line.

The objective of the Stochastic Universal is to generalize the Stochastics formula by adding different options for

- calculating the raw value
- smoothing the raw value to calculate the K-line
- smoothing the K-line to calculate the D-line

The raw value can be calculated either as (close - lowest low)/ (highest high - lowest low) - this is the standard calcualtion - or it can be calculated as (close - lowest close)/(highest close - lowest close). For the smoothing about 30 different moving averages can be used. This results in approximately 1.800 different Stochastics indicators that can be created my selecting the parameters accordingly.

The indicator comes with different filters, which can be used to generate paint bars. At this stage I am still experimenting with the Universal Stochastics. Suggestions and feedback welcome.

The chart below show a Stochastics calculated from a raw stochastics which takes into consideration the close values onl. A distant-coefficient Ehlers filter is used for K-line and D-line smoothing. The trend filter is based on crosses and the overbougt and oversold conditions as defined by the two horizontal lines.



Attached Files
Elite Membership required to download: StochasticsUniversalX1.zip
Started this thread Reply With Quote
  #4 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401


Fat Tails View Post
...

The indicator comes with different filters, which can be used to generate paint bars. At this stage I am still experimenting with the Universal Stochastics. Suggestions and feedback welcome.

...

Remember, you asked: If I may suggest, based on a lot of requests I've seen and done, is the development of the kitchensink of options for each indicator. I know this may sound or seem overkill and it probably is, yet none the less for every indicator created there are always the same add-on requests. These are (not in any order):

Optional (as in turn on or off):
1) Paint bars.
2) paint outline of bars.
3) paint background.
4) Paint entire chart back ground.
5) Signal outputs for market analyzer/ strategy/external use.
6) Sound (from externally supplied user file).
7) Alerts for alert panel.
8) Arrows/dots/triangles for crossovers.
9) region between lines/averages painting (as appropriate)
10) Streamwriter output of debug info.
11) Streamwriter output of indicator value and/or key indicator info.

I'm sure there are others but these are the ones that come to mind.

Thanks for asking!

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
  #5 (permalink)
 
aventeren's Avatar
 aventeren 
Bellingham, WA USA
 
Experience: Beginner
Platform: NT
Broker: Mirus (Broker), Continuum (Data), Dorman (Clearing)
Trading: Futures
Posts: 202 since Mar 2013
Thanks Given: 428
Thanks Received: 202

@Fat Tails; this thread is an excellent idea.

One suggestion to improve the thread would be to begin to build the Quick Summary Post like a Table of Contents that contains direction links to the relevant posts. For instance, you might have 3 posts on your anaSuperTrendU11 indicator in the future, and you could have something like this in the Quick Summary:

anaSuperTrendU11
-Link to file in Downloads: "insert URL here"
-Update narrative 1: "insert post URL here"
-Update narrative 2: "insert post URL here"

However it works out, this thread will still be a great addition to the Site.

Thanks for all of your hard work.

All best,

Aventeren

Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

I have published a few indicators in August, which have a considerable value adn that have so far been underestimated. I therefore use this thread to discuss the issue.

There are a few statistical crimes that are repeatedly committed when indicators are used for trading purposes.


Crime No. 1: All data points are being considered equal.

When you calculate a SMA or an EMA, then an equal weight is given to all data points. This does not make sense, as some of the data points represent little trading activity (night session, noon), while other data points represent a huge volume (opening and closing balance). Chart types as tick, volume and range charts adjust the weight of the data points to the market activity. The same is done with a volume-weighted moving average, the introduction of TPOs or VWTPOs, which can also be used to determine the weight of a data point.

However the largest crime is the use of the unstable period of an indicator, when setting and indicator to CalculateOnBarClose = false. Let us assume that you want to display the ATR(3) and display it on a 60 minute chart. You have set that indicator to COBC = false. Now you watch your chart at 11:01 AM and notice a considerable drop in the average true range. What happened? With COBC = false, the average true range is calculated over 3 bars. The first two values used for the calculation were the true range of the 10:00 AM bar and the 11:00 AM bar, but the third value is the true range of the incomplete 12:00 PM bar, which is just 1 minute old. The true range of this bar is close to zero, and therefore the ATR(3) which is now displayed is about 67% of the value that was shown for the prior bar.

There are many indicators that should never be used in COBC = false, because the unstable period should not be considered. Unlike the traditional SuperTrend indicator, SuperTrendM11 and SuperTrendU11 use the average true range and the moving average / median one bar ago. This explains the label "11". This is a preliminary requirement, if you want to use them in COBC = false. Otherwise the average true range would always be skewed to the downside prior to bar completion.


Crime No. 2: Only the bar close is used as a data point.

Every bar comes with 5 values, the open, the high, the low, the close and the volume. Many indicators just use the close and neglect that there are other data points available for calculating indicator values.

As an example let us take the standard deviation. Why would you calculate a Bollinger Band just from 12 closes, when 48 data points can be used? Wilder Welles, who did his indicator calculations manually, would tell me that it is much easier to do. Unfortunately, this argument is void, as we all have fast computers that can easily use all the data points. When I started to use all data points for the purpose of calculating VWAP bands - which are similar in a way to Bollinger Bands, as both rely on calculating the standard deviation - the accuracy of the bands has considerably increased. The increased accuracy allows to calculate the bands from 1-minute data as opposed to 1-tick data, which always produces a 100% accuracy.

In a contrbution to the July 2010 issue of Active Trader, Thomas Stridsman pointed out that it would be highly beneficial to automated trading strategies to use all data available, and not only the closes. He compared different indicators that he used as baselines, including mean, median and mode, which were all calculated from the entire sample. The only thing he got terribly wrong was the Pearson approximation used for the mode, as this approximation is only valid for unimodal distributions - and as we know, price volume distributions are rarely unimodal. Fortunately enough, it is easy to calculate a mode with high resolution sample data without using that approximation.

https://www.activetradermag.com/index.php/c/Trading_Strategies/d/A_baseline_trend_strategy


Crime No. 3: Indicator values are not corrected for the sample size.

This problem does not affect all indicators, but it does affect a few statistical indicators as the standard deviation and all its derivatives, such as the Bollinger Bands. This problem is also reduced, when all data points are used, as larger samples do not require a large correction.


Collection of Statistical Indicators

Moving Mean (TPO):

This indicator can be considered as a range weighted moving average that uses the bar center (high + low)/2 as input series. Usually wide range bars have a higher volume than narrow range bars. This makes sense giving them a higher weight. When a breakout occurs, the MovingMean (TPO) will adapt faster than a traditional SMA. Compared to a SMA the lag is reduced when volatility increases, but it is lagging more when volatility decreases.

Moving Mean (VWTPO):

This indicator is identical to the VWMA, when the bar center (high + low)/2 is used as input series. It is pretty similar to the TPO mean, but uses real volume instead of approximating it via the range. The properties of this indicator are similar to the TPO mean, but it should be slightly more accurate.

Moving Median (TPO):

A statistical median calculated from all data points of all bars contained within the lookback period. Compared to a standard median calculated from the closes (also see here: ), it should give a better approximation of the statistical median of the entire price volume distribution. The median is the most stable of the three statistical measures and probably the most representative as well.

Moving Median (VWTPO):

This indicator is similar to the TPO median, but should give an even better approximation of the the statistical median of the price volume distribution.

Moving Mode (TPO):

The indicator shows the price with the highest occurence over the lookback period of the indicator. As the price volume distribution of the single price bars over the lookback period is unknown, there can be a significant error in any estimation. Unlike the median, the mode is not self-correcting in a way that errors cancel out. It should therefore be used with prudence. However, this indicator will still yield far better results than the Pearson formula, which should only be applied to unimodal distributions.

Moving Mode (VWTPO):

The indicator shows a better accuracy than the TPO mode, but still suffers from its inherent instability.


Here is the download link:




Started this thread Reply With Quote
  #7 (permalink)
 
podski's Avatar
 podski 
Belgium
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader Brokerage, CQG
Trading: FDAX, FDXM ...maybe
Posts: 388 since Sep 2012
Thanks Given: 499
Thanks Received: 470

Hi Fat Tails,

I'm not sure what sort of feedback you are looking for. I will give it a shot.

A super useful feature of many ana... indicators is the ability to use any of the many moving averages that are out there.

You have recently coded some new ones I am thinking in particular of the gapless ones (but there have been others like the TTI/RWMA)

It is a big job and other than packaging them all up as a suite as you have done for the session indicators I guess there is no easy way.

In any case. You could consider adding it as a (low priority) "general ana..." task to update those indicators that have moving averages to include the latest and greatest.

As always, many thanks.


p

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

@Tasker_182: If I had thought about adding all the options you requested, I would probably never have finished more than 3 indicators.

To be frank. I am not interested in adding all sorts of gimmicks, background colors, paint options, alerts, arrows, dots or similar. I believe that in the end those features make an indicator unusable and ugly.

However, all indicators come as open source.

You can add whatever you like or feel that you need for your trading.

Please rename the indicator to something else afterwards, as I would not be happy if people come and ask me for support all those added features.

Started this thread Reply With Quote
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


aventeren View Post
@Fat Tails; this thread is an excellent idea.

One suggestion to improve the thread would be to begin to build the Quick Summary Post like a Table of Contents that contains direction links to the relevant posts. For instance, you might have 3 posts on your anaSuperTrendU11 indicator in the future, and you could have something like this in the Quick Summary:

anaSuperTrendU11
-Link to file in Downloads: "insert URL here"
-Update narrative 1: "insert post URL here"
-Update narrative 2: "insert post URL here"

However it works out, this thread will still be a great addition to the Site.

Thanks for all of your hard work.

All best,

Aventeren

I will only show the download links. Otherwise the summary will quickly be oversized.

Started this thread Reply With Quote
  #10 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401



Fat Tails View Post
@Tasker_182: If I had thought about adding all the options you requested, I would probably never have finished more than 3 indicators.

To be frank. I am not interested in adding all sorts of gimmicks, background colors, paint options, alerts, arrows, dots or similar. I believe that in the end those features make an indicator unusable and ugly.

However, all indicators come as open source. You can add whatever you like or feel that you need for your trading. Please rename the indicator to something else afterwards, as I would not be happy if people come and ask me for support all those added features.

This I knew to be your answer based on your comments before in many other threads. I merely posed it now so that you (hopefully) only have to deal with the question once, assuming i covered the kitchen sink. No need to thank me...

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote




Last Updated on March 28, 2020


© 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
no new posts