Parallel Close Slopes - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

Parallel Close Slopes
Started:March 24th, 2013 (02:16 PM) by stockgoblin Views / Replies:418 / 0
Last Reply:March 24th, 2013 (02:16 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Parallel Close Slopes

Old March 24th, 2013, 02:16 PM   #1 (permalink)
Trading Apprentice
Futures Experience: Intermediate
Platform: ninja
Broker/Data: TD Waterhouse / kinetick
Favorite Futures: spx.xo
Posts: 23 since Aug 2011
Thanks: 3 given, 3 received

Parallel Close Slopes


I'm just learning to put together some Ninjatrader Indicators and I'm experimenting with the following:

I'm trying to have an indicator identify the difference between Close[0] & Close[1] (Slope), find all equal instances of that Slope and Draw Lines where there are parallell slopes.

I guess I have to use a FOR loop and a DataSeries:

My first attempt looks like this:

protected override void OnBarUpdate()

myDataSeries.Set(Math.Abs(Close[0] - Close[1]));

int i;

for (i = 0; i < 256; ++i)

if ((Close[0] - Close[1]) == myDataSeries[i])
DrawExtendedLine("Slope" + Time, false, 1, Close[1], 0, Close[0], Color.Green, DashStyle.Dash, 2);	


Shouldn't that do something or am I missing a concept as nothing appears and I'm using SVLC Weekly Data which contains 2 sets of parallell slopes.

Close[0] - Close [1] = .11
Close[1] - Close [2] = .11

Close[7] - Close [8] = .08
Close[12] - Close [13] = .08

Thanks for any help.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Parallel Close Slopes

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open to Open & Close to Close for direction change aquarian1 Index Futures Trading 10 December 15th, 2012 06:59 PM
Does anyone know of Clayburg's Breakout System with Parallel Function? testitest TradeStation 5 December 2nd, 2012 11:53 PM
Ninja Close Position / Close Button / ChartTrader vantojo NinjaTrader Programming 1 October 15th, 2012 05:51 PM
Parallel optimization jjmmg NinjaTrader Programming 8 February 9th, 2011 12:01 PM
Close[0] not waiting until bar close dsraider NinjaTrader Programming 4 February 11th, 2010 05:49 PM

All times are GMT -4. The time now is 12:43 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-21 in 0.06 seconds with 19 queries on phoenix via your IP