NexusFi: Find Your Edge


Home Menu

 





NinjaTrader 7 Indicators


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one YoderIII with 2 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Remo with 1 posts (0 thanks)
    4. looks_4 ThatManFromTexas with 1 posts (2 thanks)
    1. trending_up 5,768 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
YoderIII
Charlotte
 
Posts: 2 since Feb 2011
Thanks Given: 0
Thanks Received: 0

Hello All:

I have been a member for awhile. I have been a trader much, much, much longer. Each of these indicators are based on ^ADD.

I find NinjaTrader 7 lacking and does not have what I think are basic indicators.

Listed below are some of what I want:

These are for market analysis.

(1). Cumulative Advance/Decline Line
The advance/decline line is the most popular of all internal indicators by far. It is a very simple measure of how many stocks are taking part in a rally or sell-off. This is the very meaning of market breadth, which answers the question, "how broad is the rally?" The formula for the advance/decline line looks like this:


A/D Line = (# of Advancing Stocks - # of Declining Stocks) + Yesterday's A/D Line Value

The most popular data used for the A/D line is from the NYSE or Nasdaq markets. It is cumulative and normally plots a line similar to the price chart of the given index. The A/D line can be used alone or together with the price chart to look for divergences. A divergence suggests that a move in the price chart is unsupported by the broad market, and it should, therefore, be taken as a warning of an impending turning point in the index or market.

A traditional technical indicator, such as a moving average or a stochastic oscillator, can be applied to the chart or used to smooth the signals it gives.

(2). Advance/Decline Spread
A variation on the A/D line is the A/D spread. Just as its name implies, the A/D spread charts the difference between the number of advancing stocks and declining stocks in a given market on a given day. Unlike the A/D line, the spread is not a cumulative chart, so each day is calculated separately. The formula for the A/D spread looks like this:

A/D Spread = # of Advancing Stocks - # of Declining Stocks

The chart of the A/D spread is an oscillator that revolves around a zero line. The A/D spread is interpreted much like any oscillator with overbought and oversold levels near the extremes of the chart. When the A/D spread crosses above its zero line, this means more stocks are advancing than declining, and vice versa.

This oscillator is extremely fast, so a moving average is usually applied to slow the chart's movements and signals. The technician can fine tune the number of days set for the moving average to the market data.

(3). Advance/Decline Ratio
Another variation on the A/D line is the advance/decline ratio, which divides the advancers by the decliners. Here is the formula:

A/D Ratio = # of Advancing Stocks / # of Declining Stocks

This formula creates values that cannot be less than zero because it is a fraction (or ratio). A value of 3 means that three times as many stocks advanced as declined. Any value less than 1 means more stocks declined than advanced. Because of the nature of fractions, the chart is more legible using a logarithmic scale. Like the A/D spread, this chart moves quickly, so it's usually smoothed with a moving average.


(4). Absolute Breadth Index
The absolute breadth index is a measure of internal volatility. It calculates the absolute value of the difference between the number of advancing and declining stocks, making it a slight variation on the A/D spread. The formula for ABI looks like this:

ABI = | (# of Advancing Stocks - # of Declining Stocks) |

Because the ABI is an absolute, its value will always be positive. The chart is a representation of the volatility in the spread between advancers and decliners. The ABI can be smoothed using a moving average to facilitate drawing longer-term trend lines. A fast-paced, choppy chart of the ABI can indicate a choppy, range-bound market.

(5). Breadth Thrust
Breadth thrust is an internal indicator that is somewhat more complicated and harder to find. It is a ratio of moving averages that creates an excellent judge of market momentum. The formula looks like this:

Thrust = x-Day Moving Average of Advancing Stocks / x-Day Moving Average of (Advancing Stocks + Declining Stocks)

Since this formula creates a ratio whose denominator is a sum of both advancers and decliners, the value cannot be greater than 1 or less than zero. The breadth thrust indicator, therefore, creates a percentage value that moves just like a traditional oscillator from 1 to 100 (or .01 to 1.00).

Breadth thrust can be read just like a stochastic or RSI, where overbought and oversold levels are at the extremes. Divergence with the underlying price chart points to weakening momentum. The number of days to set for the moving averages should be determined by the time-period being evaluated.

(6). Arms Index (TRIN)
Developed by Richard Arms, TRIN is a double-ratio that divides the A/D ratio by the A/D volume ratio. The formula is somewhat long but, fortunately, the TRIN charts for the NYSE and Nasdaq are some of the easier internal indicators to find on the internet. For those who are curious, here's the formula:

TRIN = (# of Advancing Stocks / # of Declining Stocks) / (Volume of Advancing Stocks / Volume of Declining Stocks)

For reasons that should now be obvious, the value of TRIN cannot be less than zero. The Arms Index is read somewhat counter intuitively. A value of less than 1 means advancing stocks are getting more than their share of volume, which is bullish for the market. When the value of TRIN is more than 1, declining shares are taking an outsized amount of volume, which is bearish for the market.

TRIN is usually smoothed using a moving average, which should be tuned to the time-period being evaluated. Trend lines drawn from the moving average reveal the direction of market momentum. (Remember that the value for TRIN moves down as advancing volume goes up).

(7). McClellan Oscillator
Searching for an even more refined internal indicator, Sherman McClellan designed his own oscillator. Though the calculations for McClellan's Oscillator are far too complicated to compute by hand, they help demonstrate how the indicator works, so here they are:

McClellan Oscillator = [ 19-Day Exp. Moving Average of (# of Advancing Stocks - # of Declining Stocks) ] / [ 39-Day Exp. Moving Average of (# of Advancing Stocks - # of Declining Stocks)]

This formula creates a ratio comparing the 19-day and 39-day EMA of the A/D spread. The chart is an oscillator that ranges from +100 to 100 with overbought and oversold levels usually found at +70 and 70 respectively. The McClellan Oscillator can be read just like any other oscillator and is usually not smoothed, but it can be charted with a moving average as an indicator line.

I am not a programmer. I am a trader. Where can I find these? Or would some of you want to take on this project?

Thanks,
YoderIII

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Brendt Skorupinsky
Trading Reviews and Vendors
Forcing plots to disappear/reappear?
NinjaTrader
How to plot a custom icon for crossover
NinjaTrader
MC Advanced Simulated Trading.
MultiCharts
tick data interval discrepancy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
74 thanks
HumbleTraders next chapter
51 thanks
Winning attitudes create winning traders
39 thanks
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Topstep experience and review
33 thanks
  #3 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,356


@YoderIII

McClellan Osc

Links and Downloads Manager - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Advance/Decline

Release of AD-Race for [AUTOLINK]NinjaTrader[/AUTOLINK] 7.0 | RedlionTrader

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
Thanked by:
  #4 (permalink)
YoderIII
Charlotte
 
Posts: 2 since Feb 2011
Thanks Given: 0
Thanks Received: 0

Thanks That Man From Texas!

Reply With Quote
  #5 (permalink)
 Remo 
Siveria
 
Experience: Intermediate
Platform: Ninja Trader
Broker: Mirus
Trading: FUTURES
Posts: 25 since Dec 2011
Thanks Given: 2
Thanks Received: 2

Good afternoon, and thank you for materials YoderIII someone help to get A / D Cumulative Please get A / D but does not build.



If I add Yesterday's A / D Line Value I get a result today + yesterday result example, A / D today = 2000 + A / D like yesterday = 500 Total = 2500 so does not accumulate

Add.Set (Inputs [1] [0] - Inputs [2] [0]);

As I can get is cumulative, and traze a line similar to the evolution of the price index Given?.

Deputy Code of the line A / D without accumulated.

Attached Files
Elite Membership required to download: AdvanceDecline.cs
Reply With Quote




Last Updated on July 24, 2013


© 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