Showing posts with label NR7. Show all posts
Showing posts with label NR7. Show all posts

Sunday, May 18, 2008

ThinkScript : NR7 (Narrow Range of 7) & IB (Inside Bar) code

In one of the comments the other day, I was asked about how I have NR7 and IB indicators on my ThinkOrSwim charts. I actually just took the time to code them a few months back. It's not the most efficient code, and I haven't figured out a better way to display them, but here they are:

NR7

def range = AbsValue(high - low);

def diff = (range < range[1] and range < range[2] and range < range[3] and range < range[4] and range < range[5] and range < range[6]);

plot disp = high + (1/5);

disp.setDefaultColor(Color.White);

disp.assignValueColor(if diff > 0 then Color.White else Color.BLACK);

IB

def insidebar = (high < high[1] and high[1] < high[2] and low > low[1] and low[1] > low[2]);

plot disp = high + (3/8);

disp.setDefaultColor(Color.BLACK);

disp.assignValueColor(if insidebar > 0 then Color.MAGENTA else Color.BLACK);

In order to add these to your list of studies, you must get to edit studies and create a new study. Then copy & paste the code of your choice in.

I have set these up to display white (NR7) and magenta (IB) dots over the bars that meet the criteria of the indicators. When adding the study to a chart, I would change the settings to display a dotted type of style as opposed to a line type of style.

Two other sources for ThinkScript code:

Monday, April 21, 2008

AGU - Agrium - Descending triangle break down & RIMM - Research In Motion NR7 Channel Break

I was watching AGU early on as POT & the Ag group gapped up. I mentioned in last night's watch list that POT could continue its momentum early in the day as it closed it's highest tick on Friday. When the Ag plays started to roll over a bit, I found a nice short entry on AGU for a quick 2R.



RIMM started strong to continue its late day run from Friday before pushing lower. I noticed it was forming a channel type trading range. You could possibly even call it a bullish flag. It broke out of the channel and consolidated a bit with a nice NR7 (Narrow Range 7) bar. I entered on the break of the NR7 bar with a stop just below it.

As I highlighted in the picture below, I normally wouldn't have had such confidence in my trading to have such a tight stop. The stop was ~40 cents from my entry point and was the key to squeezing 3R out of the trade.

Older Posts Home