The Z-score or standard score is a numerical measurement of a value’s relationship to the arithemic mean of the data set. The Z-score is the signed number of standard deviations by which the current value of a data point is above the mean value or below the mean value as calculated for the selected lookback period.
For a normally distributed sample 95.8% of the z-scores of all data points fall within the range [-2, +2]. A Z-score of 0 indicates that the data point is identical with the arithmetic mean of the data set.
The Z-score is a normalized oscillator that can be used to identify extreme readings of the input series. The Z-score is calculated by dividing the absolute difference between a data point and the arithmetic mean by the standard deviation.
One of the main applications of the Z-score is that it can be used to normalize any oscillator. For example, the MACD is a non-normalized oscillator which does not pass the c-test introduced by William Eckhardt. However, when the Z-score is used to normalize the MACD, the resulting oscillator uses a normalized scale and will pass the c-test. The normalized MACD is obtained, when the MACD is used as the input series for the Z-score.
History:
v1 20100807 - @Aslan created to go with BetterRenko
v2 20100812- @Aslan changed to paint OHLC bar for live bar
v2 20150719 - @Dalebru converted to NT8. Exported with NinjaTrader 8.0.0.5
v2 20170102 = @shanmugs added missing "Open" line
v2 20180306 - @DaleBru changed ChartStyleType enum value that conflicted with recent NT8 update
v2 20180409 - @DaleBru exported with NinjaTrader 8.0.12.0
BVA Version 2 (Bar Volume Accumulation), is for spotting Divergences in Volume and Price Action.
Example:
Higher High with less BVA, upward trend is loosing momentum.
Lower Low with less BVA, downward trend is loosing momentum.
Version 2 has current and historical values included for use in back testing and strategies. The rest of the code is the same as Version 1 that's posted in the Elite Download Section.
Note:
The plot values for testing have been set to transparent. If you want to see them on your chart, you must select a color for each plot.
Takes a screenshot of the chart and sends to email in PNG format. From NinjaScript Editor set up the private email parameters then right click and compile.
February 1st, 2018
Size: 2.03 KB
Downloaded: 236 times
1957
bcomas
Exported with 8.0.12.0 64-bit
Minor Update -- Remove Print statement as noted by bobc635, thanks 2/2/2018
This is the NT8 version of NT7 MultiREMA which is described in full in the NT7 section here. There are no additional features or enhancements.
The indicator will be installed in a folder "Cheech". The REMA indicator will be installed in the Indicator folder.
Note: The default alpha setting for the Trend Plot is set to 0.1 to match the REMA setting as supplied by Ninjatrader. The default setting for the NT7 version for the same plot is 0.05 as was indicated in the article. Adjust accordingly.
Change Log
Date --------- Description
1/31/2018 --- Initial Release
January 26th, 2018
Size: 1.57 KB
Downloaded: 847 times
1953
bcomas
Exported using NT 8.0.9.0
Description
This is a port of the NinjaTrader 7 AdvancedRiskReward.v3 indicator by bassam. The original indicator can be found here.
Quote:
This indicator helps you define your entry, stop and target (1 or 3) visually on the chart with the help of horizontal lines, calculates your potential P/L ,unrealized P/L,Risk/Reward ratio and contracts sizing per account size.
Once started click on the chart 3 times there where you think your values will be appropriate , then shift the lines as needed and save the changes.
- Defines your Risk/Reward ratio using 1 or 3 targets
- Save & reload your values,be it minute,daily or weekly chart (One set of values per instrument)
- Interactive Mode: per-tick P/L based on the chosen contracts size
- Interactive Mode-Attached: per tick potential P/L
- Non-Interactive : Contract sizing is based on the defined risk per account size
- Hide/show the indicator as required & show/hide on start-up
- Extended or short lines
To Import
1. Download the attached file to your desktop
2. From the Control Center window select the menu Tools > Import > NinjaScript Add On.
January 22nd, 2018
Size: 15.63 KB
Downloaded: 1030 times
1952
teamtc247
"Indicator by : Aligator
/// Revision 0 - April 4, 2017
/// Revised April 16, 2017 by Woody Fox too include all Drawing Tools and Chart Markers
/*
The mahToolBar indicator installs drawing object icons in the NinjaTrader Main Toolbar
for a one-click drawing.
This is a compilation of ideas and scripts from several people on this froum Including ChelseaB, Jessie, shuglu,
and AlanP - Thank you all.
The toolbar is a selection of draw objects placed in the chart main tool bar to save chart space. Other available
toolbar shortcut indicators around all plot inside the main chart area, and that seems to be a waste of the chart area.
I have included my favorites and the most frequently used draw objects by chart analysts. One can
certainly add, with minimal effort, as many objects from the draw object dictionary as one wishes.
Individual draw objects can be selected and the user can choose any or all objects to include in
the toolbar. Two icons (or objects) are very handy for changing the width of the bars by simply
clicking on the icons.
The script can use some cleaning for more efficiency. Until someone comes up with a prettier and more efficient
toolbar this one works great for me all day drawing lines, channels, fibs, etc.
January 13th, 2018
Size: 6.92 KB
Downloaded: 568 times
1951
teamtc247
Version 2.2 March 8, 2020
The Multiple MA Cross indicator plots a fast and a slow moving average and colors the area between the two moving averages. Both the fast and the slow moving average may be selected from a collection of over 30 different moving averages.
The indicator is primarily designed as a trend filter to show whether the market is in an uptrend or in a downtrend. The indicator comes with two different trend definitions - cross and thrust. The trend is exposed as a double series and can be accessed via the NinjaTrader strategy builder or the market analyzer. Directly accessing the trend via the market analyzer requires a separately coded market analyzer column, which is not yet included with the install file.
Trend definition "MA Cross": The current trend changes to "uptrend" when the fast moving average crosses the slow moving average from below. The current trend changes to "downtrend" when the fast moving average crosses the slow moving average from above.
Trend definition "Thrust": The current trend changes from “downtrend” to “uptrend” with the first bullish thrust bar that plots above the upper moving average. A bullish thrust bar is a bar that closes above the prior bar’s high and has a larger range than the prior bar. The current trend changes from “uptrend” to “downtrend” with the first bearish thrust bar that plots below the lower moving average. A bearish thrust bar is a bar that closes below the prior bar’s low and has a larger range than the prior bar.
Moving averages available as fast and slow moving average:
- Adaptive Laguerre Filter
- ADXVMA
- Butterworth Filter
- DEMA
- Distant Coefficient Filter
- Double Weighted Moving Average (DWMA)
- Exponential Hull Moving Average (EHMA)
- EMA
- Gaussian Filter
- HMA
- Holt EMA
- Laguerre Filter
- LinReg
- Moving Mean TPO
- Moving Mean VWTPO
- Moving Median
- Moving Median TPO
- Moving Median VWTPO
- Range Weighted Moving Average (RWMA)
- Sine Weighted Moving Average (SWMA)
- SMA
- SuperSmoother
- TEMA
- Tillson T3
- TMA
- Triple Weighted Moving Average (TWMA)
- VWMA
- Wilder's Average
- WMA
- ZerolagHATEMA
- ZerolagTEMA
- ZLEMA
Applying the Multi MA Cross to indicators: The Multi MA Cross is designed to be applied to other indicators which may be selected as input series. However, some of the moving averages listed above will not support this feature. In case that a selected moving average does not support the feature the indicator will display an error message asking you to select a different moving average for the fast or the slow moving average. These are the moving averages that may not be selected when an indicator is chosen as input series: Mean TPO, Mean VWTPO, Median TPO, Median VWTPO, RWMA, VWMA, ZerolagHATEMA. These moving averages may only be applied to price.
Paint Bars: The MultipleMA Cross indicator comes with paint bars. The paint bars are colored according to the trend, where the trend maybe determined via the "MA Cross" or the "Thrust" option. The paint bars may be displayed without the indicator plots.
Plots a vertical line at a specified time. BzvVerticalLineAtTime Indicator converted from NT7 to NT8.
Note (bug): For some reason when the time is changed into the indicator set up still allways the default time.
Code should be reviewed. Now the time only can be changed into the code. Help if anybody knows how fix it.
Fixed issue. New Version from Ninjatrader indicators Forum
January 2nd, 2018
Size: 3.19 KB
Downloaded: 380 times
1948
bcomas
Chart will draw up to 3 MAs with selection of 7 diff MA to choose from. Note that you can modify the code to add more MAs if you have them. I have to comment out some of them as they are not converted to NT8 yet.
Export with 8.0.2.0
This is a custom bar type which is based on the Bid Ask Delta (Ask Volume - Bid Volume).
A new bar is created when the Delta is greater than a given Threshold-Value defined in the Data Series Properties.
The archive also contains a custom Delta indicator specially coded to work with this bar type.
The ROC Smoothed indicator is a modification of the ROC, as described in Alexander Elder's book Trading for a Living. It plots two lines: ROC, which is the difference between the current price and the price x-time periods ago, and SROC which is the difference between an MA of price and the MA of price x-time periods ago.
This oscillator avoids the major flaw of ROC. Smoothed Rate of Change compares the values of an exponential moving average instead of prices at two points in time. It gives fewer trading signals, and the quality of these signals is better.
Excerpt from the book "Trading for a Living"
To create S-ROC you must first calculate an exponential moving average of closing prices. The next step is to apply Rate of Change to the EMA. S-ROC is not very sensitive to the length of its EMA or ROC parts. You can calculate a 13-day EMA of closing prices and then apply a 21-day Rate of Change to it. Some traders calculate the Rate of Change of prices first and then smooth it with a moving average. Their method produces a much jumpier indicator, which is less useful than S-ROC.
Crowd Behavior:
An exponential moving average reflects the average consensus of value of all market participants during the period of its window. It is like a composite photograph that reflects major features of the market crowd rather than its fleeting moods. S-ROC compares each reading of an EMA to a past reading from your selected period of time.
It compares the average mass consensus today to the average consensus in the past. S-ROC tracks major shifts in the bullishness and bearishness of the market crowd.
Trading Rules:
Changes in the direction of S-ROC often identify important market turns.
Upturns of S-ROC mark significant bottoms, and its downturns mark important tops.
Divergences between S-ROC and prices give especially strong buy and sell signals.
1. Buy when S-ROC turns up from below its centerline.
2. Sell when S-ROC stops rising and turns down. Sell short when S-ROC turns down from above its centerline.
3. If prices reach a new high but S-ROC traces a lower peak, it shows that the market crowd is less enthusiastic even though prices are higher. A bearish divergence between S-ROC and price gives a strong signal to sell short.
4. If prices fall to a new low but S-ROC traces a higher bottom, it shows that the market crowd is less fearful, even though prices are lower. It shows that the downside pressure has lessened, even though the market has fallen deeper than before. A bullish divergence gives a strong signal to cover shorts and buy.
December 21st, 2017
Size: 15.00 KB
Downloaded: 596 times
1944
affoltes
The VixRSI which was presented in the January 2014 issue of the TASC magazine.
Several years ago, Larry Williams developed something he calls the VIX fix. What he developed was a simple calculation that closely emulates the performance of the original VIX using only price data, and which can therefore be applied to any tradable. In a nutshell, we take the highest close over the last 22 trading days, subtract today’s low price, and then divide the result by the highest close over the last 22 trading days. https://www.marketcalls.in/wp-content/uploads/2014/12/VIXFix.pdf
Combining the VixFix with the RSI makes it even more powerful to detect Instrument bottoms and oversold areas. Detecting overbought VIX “greed areas” can also be useful if you try to catch a fast and profitable long trade on the VIX itself.
The calculation is simple:
VixRSI = ema3 of VixFix / ema3 of 14-day RSI
December 9th, 2017
Size: 7.74 KB
Downloaded: 1173 times
1942
affoltes
As i am often trading from a laptop, i always wished to have some kind of a small chart in my actual trading chart to keep track of other instruments or a smaller tick or range chart of the same instrument.
This is pretty much what this rather simple indicator does.
I am fully aware that there are at least one thousand things that could be added to this indicator but as usual, it is what it is. You are free to use and edit the code but i am not gonna implement anything else as this is exactly what i need for my personal trading.
The indicator draws a rectangle to display the mini chart, which can be dragged and resized as every other rectangle in NT8.
the archive also includes a custom range bar type without gaps.
Cheers,
Mike
Updates:
- Value Area Zones added
- ChartTrader Orders are now visible
- Different ChartStyles are now available
- Added a few more indicators
- Code optimizations
- Display orders optimized
- MiniChart is now visible when markets are closed.
- Heiken Ashi added for Tick, Volume, Minute and Second Charts
The indicator is listed under an own folder: /Infinity/MiniChart
The Multiple Keltner Channels are a generalized version of the Keltner Channels.
Standard Keltner channels are built from a simple moving average (SMA) and two channels lines above and below. The two lines above and below are drawn at a distance from the center line, a distance which is a multiple of the simple moving average of the ranges of the past N bars.
The generalized concept has the SMA replaced with any of 30 moving averages. The volatility measure used to calculate the distance of upper and lower line from the center line can be derived from an average range (AR) or average true range (ATR). You may select different lookback periods for the moving average that serves as the center line and the moving average which is applied to the range or true range.
The Multiple Keltner Channels come with an additional smoothing option for center line and channel lines. The additional smoothing is obtained by further smoothing all plots with a 3-period simple moving average (SMA).
Moving averages available for calculating the center line:
- Adaptive Laguerre Filter
- ADXVMA
- Butterworth Filter
- DEMA
- Distant Coefficient Filter
- Double Weighted Moving Average (DWMA)
- Exponential Hull Moving Average (EHMA)
- EMA
- Gaussian Filter
- HMA
- Holt EMA
- Laguerre Filter
- LinReg
- Moving Mean TPO
- Moving Median
- Moving Median TPO
- Range Weighted Moving Average (RWMA)
- Sine Weighted Moving Average (SWMA)
- SMA
- SuperSmoother
- TEMA
- Tillson T3
- TMA
- Triple Weighted Moving Average (TWMA)
- Wilder's Average
- WMA
- ZerolagHATEMA
- ZerolagTEMA
- ZLEMA
Moving averages colored according to slope: You may also use this indicator to display any of the above listed moving averages and color them according to slope. The slope is not based on a geometrical concept, as this would not be compatible with the scalability of modern charting applications. The indicator adjusts slope to bar volatility such that the indicator may be used across all instruments and bar types with the same settings. The slope is shown as upsloping, downsloping or flat. The degree of flatness which is still considered as being flat may be adjusted via the neutral threshold parameter. When you set that parameter to zero, the slope will not show any flat sections, but the moving average will always be identified as upsloping or downsloping. Channel lines may be unselected, if you just wish to display the selected moving average.
Volatility measures: The standard Keltner channel uses the range. This indicator also for substituting the range with the average true range. The average true range is used as default option to facilitate the application of the Multiple Keltner Channels to other indicators.
Applying the Multiple Keltner Channels to indicators: When an indicator is used as input series, the range will always return the value 0. However, the average true range will return the absolute amount of the difference of two neighbouring data points of the selected input series. Therefore the indicator may only be applied to other indicators, as long as the offset formula is set to "True_Range".
Paint Bars: The Multiple Keltner Channel indicator comes with paint bars. The paint bars are colored according to the slope of the center line. The paint bars may be displayed without the indicator plots. The colors of the paint bar will then show the slope of the moving average selected as center line.
Sound Alerts: In case that the sound alerts are active, the indicator will alert you when the trend derived from the slope of the center line changes. Currently, there are no sound files included with the zip file, but it is easy to create them and copy them to the NinjaTrader sounds directory.
Colin Twiggs' Money Flow indicator is similar to the Chaikin Money Flow (CMF). Where Chaikin Money Flow uses CLV (Close Location Value) to evaluate volume (money flow) as bullish or as bearish, Twigs Money Flow, uses the TR (True Range). Twiggs Money Flow also relies on moving averages in its calculation while Chaikin uses cumulative volume.
November 25th, 2017
Size: 3.44 KB
Downloaded: 644 times
1937
affoltes
Version 1.2 November 25, 2017
The Slow Relative Strength Index (SRSI) is an oscillator which was presented by Vitali Apirine in the April 2015 issue of Stocks & Commodities.
The SRSI is a momentum oscillator derived from the RSI developed by Welles Wilder in 1978. Where the RSI takes into account price moves relative to the prior bar's close, the SRSI compares the current price to an exponential moving average. The SRSI uses the same scale as the RSI. A value above 80 is considered as overbought, whereas a value below 20 indicates an oversold condition.
Compared to the RSI, the SRSI is supposed to generate stronger long term signals, but weaker short term signals. I have added a signal line to the indicator.
Nota: I saw that another version of the SRSI has already been posted. That version is not adapted to work with bar types that support RemoveLastBar() such as Renko bars or Linebreak bars.
Nota: There is another version of the SRSI posted, which will not work correctly with bar types that support RemoveLastBar().
The Quotient Transform which was presented in the August 2014 issue of the TASC magazine.
Ehlers Quotient Transform, which nonlinearly manipulates indicators to not only produce an early trend detection but also provides the ability to know how long to stick with the trend. A typical characteristic of the early-onset trend detector is that it remains above zero, indicating an uptrend, far too long after the uptrend is over. This characteristic can be mitigated by adding an additional indicator and rule set to exit a long trend trade. The early-onset trend indicator can be tuned at the trader’s preference by inputting a value for the low-pass period (LPPeriod) and the quotient parameter K.
The early-onset trend detector works in current market conditions because there is a decided upside bias to the market data. In fact, it is this upside bias that helps the nonlinear transfer response of the quotient transform work. In conditions where the market has a downside bias, negative values of K should be used in the quotient transform to take advantage of the bias in this direction.
November 25th, 2017
Size: 2.53 KB
Downloaded: 1617 times
1936
affoltes
The Slow Relative Strength Index (SRSI) is a price-following oscillator which was presented by Vitali Apirine in the April 2015 issue of the TASC magazine. It measures change in price movements relative to an exponential moving average (EMA). Like the relative strength index, it oscillates between zero and 100. SRSI is considered overbought when above 80 and oversold when below 20. SRSI can also generate signals by looking for divergences and centerline crossovers.
The SRSI is calculated using the following formula:
SRSI = 100 – [100/(1+SRS)]
SRS = Average positive difference/Average negative differencen
The SRSI measures the strength of a security relative to a sixday EMA. The closing price is used for this EMA. The difference is positive when the close is above the six-day EMA. Positive difference = [Close – Moving average]. Difference is negative when the close is below the six-day EMA. Negative difference = [Moving average – Close]. Negative difference values are expressed as positive values, not negative values. If the closing price equals the six-day EMA, then difference = 0 (no change). Smooth positive and negative difference values are based on Wilder’s smoothing technique.
November 24th, 2017
Size: 3.62 KB
Downloaded: 404 times
1935
affoltes
It's common for people to look at how large the upper or lower 'wicks' or 'shadows' are in comparison to the range of a bar. In writing strategies that do so, I got tired of re-re-coding calculations to look for especially large ones.
So, I created an indicator that shows the upper and lower wick size as a percentage of the bar's range. So, now, if I want to specify a wick that's greater than 50% of the bar's range, I can just look for instances where the indicator values are UpperWick > 50 or LowerWick < -50.
If you find looking for negative numbers cumbersome, edit the indicator and reverse the LowerWick calculations, from either (Low[0] - Open[0]) or (Low[0] - Close[0]) to (Open[0] - Low[0]) or (Close[0] - Low[0]), respectively. Then, all the histogram bars will point upwards and you can make your code always look for positive values.
I hope some of you find this indicator handy.
Thanks go to jmont1, who graciously converted this indicator to NT8.
November 15th, 2017
Size: 3.54 KB
Downloaded: 304 times
1933
DavidBodhi
This is a first test of a TickBarChart style that will reassemble ticks at the same time and price into a single tick. This is really the same order but split up so it doesn't look like a big print.
I have only tested this chart on a ticksize of 1 (seems to make the most sense to me anyway) and putting it here for others to review.
You can see in the image the shaded area that combined all the ticks from the regular TickChart into a single tick. This is because all the ticks in the tape were at 18:37:43.093 with an open of 55.08. This was merged to a single tick of volume 20.
October 26th, 2018 12:05 AM calhawk01 THAnk you making this
I’m trying to leverage this bar type for a custom indicator. I’m basically trying to obtain the volume values that are p
roduced using this bar type to “reconstruct” the tape. Jigsaw and other “reconstructed tapes” almost have identical valu
es as the values that are being produced using this bar type. There is not “magical” reconstruction of the tape. All tha
t these guys are doing is summing the trades with the same time stamp.
How can I call this bar type in an indicator? It doesn’t seem to be the option as a bar type for some reason in ninja sc
June 1st, 2018 11:17 PM marianfed thankyou ..
November 15th, 2017 10:28 AM NJAMC Thanks, I am not sure and I don't think we are retail traders get enough information in the stream to know what orders a
re split and simply have different time stamps. Statistically, if you get a few orders at the same exact time stamp, it
is likely the same market player. This will at-least help find "BIG PRINTS" which are being hidden by splitting up the
orders.
If you know of other ways to tie orders together let me know and I will see what I can do.
November 14th, 2017 09:50 PM tradingon thankyou .... wonder how many other values need reassembling
May 17th, 2023 01:29 PM Paypachaysa This is so cool but unfortunately it looks like the newer versions of NT broke the code. No longer displays.
February 18th, 2023 07:32 AM Teebone21 Is there an updated version of this indicator ?
November 30th, 2022 04:19 AM JirkaF I was able to reposition the rectangle in the object manager menu but it is not possible to choose any instrument so unf
ortunatelly this think doesnt work in current ninja trader version
March 14th, 2024 06:10 AM Leafcutter Although I downloaded this bar type years ago I never used it and didn´t realize the benefit that it provides
in terms of anticipation of the directional change...till a few months ago. In combination with the delta indicator tha
t shows the delta next to the developing bar this bartype changed a lot for me! IThe bar type would even be better if th
ere was a possibility to automatically and dynamically change the amount of delta that is necessary to form a new bar i.
e. in addiction to the change in total volume so that increasing volume means relational increasing the amount of delta
to form a new bar. I even would pay you for programming that.
July 18th, 2023 03:17 AM XDiavel Thank you very much!
December 31st, 2022 12:49 AM viviancpy
October 31st, 2022 02:35 PM sigmatrader Is there a "Delta Bar" thread that has discussion of the use of this bar and its associated Delta indicator?
February 8th, 2019 11:06 PM laenxin I have the latest version of NT8 as of 2/8/19. This indicator is the culprit in consistently freezing up my charts, as w
ell as another trader's charts, with whom I work. After deleting it from every chart, i am running smoothly. I like the
idea and intent very much, but it does not work for me.
September 21st, 2018 04:30 PM kareem40 Been looking for it, nice work, thanks
January 21st, 2018 03:12 PM BucketTrader bcomas thank you for submitting this. I am having trouble changing the time this line appears. I changed the times in
the indicator settings with no luck. I also changed the time from 0930 written in the script with no luck. Will you le
April 22nd, 2022 09:44 PM skidmark Thank you for your hard work. Just what I was hoping for.
September 4th, 2021 03:25 AM KeithL Always amazed me that this is not a base NinjaTrader indicator. Maybe add a few options like showing only one day per we
ek. Less congestion if zoomed out. Many Thanks
January 2nd, 2021 10:14 PM romus Good.
Is it possible to have option for displaying the short version, e.g. Mo, Tu...?
And position of the text, say at bottom of the chart, similar to DayofWeek version1.1
October 10th, 2018 08:11 AM cazimi Thank you, day of the week is very important on my trading.
June 27th, 2018 01:03 PM 1973Hog Would really find this indicator useful when going back in time on the charts. However, I get the following Error Messag
e when attempting to import it. Yes, I have renamed the file as suggested, but still no luck. Any help would be most gra
February 2nd, 2018 03:14 PM bobc635 Thanks.... interesting indie.. Thanks for sharing... It appears that you left one of your debug print statements on line
September 22nd, 2023 09:10 PM jayhawk thanks for this! Saved me a bunch of time since I have no experience with ninjascript, and helped me learn a little more
along the way.
June 9th, 2022 02:34 AM mwf2220 great - thanks
September 15th, 2021 08:47 AM kashmiami
May 25th, 2020 07:13 PM bcomas Thanks, good indicator