This indicator is an adaptation of the Three Bars Inside Bar concept discussed in a related article in March 2011 issue of Technical Analysis of Stocks and Commodities. I have very little experience with NinjaScript and just experimented with programing this indicator. I am sure someone can check it out for potential improvements.
The indicator draws buy and sell arrows on any price chart (time and tick bars) with high, low, and close data. The three Bars Inside Bar is an old concept and trading method used by many well known old timer traders.
This Bollinger Band indicator is the same as the one that comes with NT. However, it has several capabilities added.
Choose from the following Moving Averages
1. EMA
2. SMA
3. LinReg
4. TMEA
5. LLMA
6. ZeroLagEMA
7. ZeroLagTEMA
8. Regression Channel
Can use an adaptive period by setting the period parameter to "1".
Choose your own colors.
Color the lines based on
1. moving average rising and falling
2. moving average is above or below price,
3. combination of both of number 1 and 2
4. outer bands compressing/decompressing
Inspired by my time in Felton Trading live trading room, this ind. is a multi selectable MA(currently BMCollectiveMAv2, EMA, EMADouble, TEMA, EMAZeroLag, HATEMAZeroLag, TEMAZeroLag, HMA, HoltEMA, JMA, LinReg, SMA, TMA, TSF, VWMA, WMA) with offset bands based on ATR, Range, or Tick. Besides being pretty, this ind. when properly "matched" to the instrument it gives a good indication of direction change. Obviously, no guarantee for how long.
Exported from NT.0.1000.2
V2: Added more MAs as listed above. Can now access MA value. Added some extra options. Upper & Lower plots change color to match shading, when not set to Transparent.
I pulled this together at the request of Jeff Castille. It is the Trade Strength Index with a histogram and color changes for all sorts of stuff including changing the background color and a MA slope bar on line Zero which lets you select a double or single MA to calculate the slope on. I think Jeff and crew found most of the bugs and I corrected them. As usual YMMV. Exported in NTv7.
Here is a Line Break chart with sticks and wicks. The chart shows the normal Line Break Type on the left and the Better Line Break type on the right.
You can join us on this thread for discussion about the line type usage.
This is version 7.1. [I inadvertantly deleted the original posting when I tried to update the line types...sad face]
To add this Data Series to your machine, download the file and Import it through NT's File Utilities. Then RESTART NinjaTrader. (Yes you have to restart because this is a Data Series, not an indicator). Once you've started back up, BetterLineBreak will show up in your Data Series Type options.
This is NT7 only. It took me longer than I wanted to figure out NT7, someone else will have to get an NT6.5 version running.
This is an incomplete implementation of the strategy @mattz used as an example in his webinar. Take it and do what you want with it. See more about it's Todo's and remaining issues here.
I found a couple of glitches in the code (SEE... I TOLD you I wasn't a professional programmer...). I uploaded the corrected version 19 January 2011. The "None" choice wasn't working correctly.
This is an updated version that includes the JMA moving average, None (No ma type, so you can plot a regular MA) and the option to draw an Arrow on the price panel when the trend changes.
Several people have asked me about the buttons on my NinjaTrader charts, So I extracted the buttons code from my trading tools indicator and upload the code here. It allows you to put user defined push buttons on the chart to perform customized actions.
Note: This is for NinjaScript programmers who want to add customized buttons to their chart to perform customized actions. This is just the user click-able interface. You will have to provide your own code to customize the actions performed by the buttons.
There was something wrong with the export I did 6 January 2011. If you downloaded before 8 January 2011 the version you downloaded probably will not import. Sorry for any inconvenience.
The original version colors the background depending on the user set threshold but does not change the lines on the Histograph. This version sets the lines according to the threshold as well as changes the background color.
May 21st, 2016 08:36 PM Randy Dotson I know nothing about programming NT7. But I would really like a buy stop limit and a sell stop limit button that would p
ut the order at the price that would complete the bar. In other words, a bar is building. I have the quantity and strate
gy set up on the chart trader. As the current bar is building, I push the buy or sell button and it places the order at
one tick above or below what will be the top or bottom of the range bar. That is the price that will have to be hit for
the bar to complete. Can anyone help with this. It would be dependent on the range in use on the chart it was being used
on.
January 25th, 2014 02:47 PM alexJetski Thanks so much for sharing. Excellent template to build upon.
July 14th, 2011 11:41 AM tony2604 This looks great. But I have problems with understanding how to use. Eg what or where do I have to code for having the c
lose button working? Thank you!
March 23rd, 2011 11:19 AM vvhg Great!
February 13th, 2011 10:57 AM Schiller Good job ! Thank you !
August 25th, 2012 03:05 PM David D Really like this, kis and clean.
May 19th, 2012 08:10 PM marker
October 3rd, 2011 12:53 AM BarOne Great indicator, especially using the zerolagEMA! I am trying to learn how to build strategies in NinjaTrader. Would l
ike to use this and the CCI to build a NT strategy, can anyone help, please?
April 2nd, 2011 10:43 PM 445NDO Made some additions to make it compatible with both the NT 7 & NT 6.5
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
February 3rd, 2011 06:33 PM Southsea Thanks for the indicator! Any chance of providing it in a zip format? Have you done any more work on it? Thanks so mu