Learning about secondary bar series and using MTF in Ninjatrader - NinjaTrader | futures.io
futures.io futures trading

Go Back   futures.io

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

Learning about secondary bar series and using MTF in Ninjatrader
Started:May 6th, 2013 (05:39 PM) by podski Views / Replies:669 / 2
Last Reply:May 12th, 2013 (11:04 PM) Attachments:0

Welcome to futures.io.

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

Learning about secondary bar series and using MTF in Ninjatrader

Old May 6th, 2013, 05:39 PM   #1 (permalink)
The Narrow Road
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader Brokerage, CQG
Favorite Futures: FDAX, FDXM ...maybe
podski's Avatar
Posts: 378 since Sep 2012
Thanks: 443 given, 454 received

Learning about secondary bar series and using MTF in Ninjatrader

Hi Everyone,

I'm going back to my roots and back to writing code as a means to structure my trading. I've got a technique called "Trade Guides" where I look for all conditions that I want to see and then code them in an indicator that points out what is happening. Like for example (simple .. if only it was this easy):

- Trade Long above the VWAP
- Enter on Moving average cross above
- Exit when the price reaches 3 ATR from the entry

They are nice little guides and I code them as indicators.

When dealing with historical data however they are a bit crude because they effectively function with COBC=True and only take account of the closing price of the bar. My "exit" would only show as an exit if the price closes 3ATR above the entry and not if the price ever reached that level during the bar.

Anyway - I now need to move to the next level. I would like to use a more detailed bar series so that the historical information can be more accurate.

I have a few MTF indicators but can anyone recommend for me a way to get "into" this type of MTF programming.

1. What are the most simple/best commented MTF indies for this usage (i.e. no protected assemblies)
2. Are any of the brooks bars type indicators detailed/MTF in this way ?

best regards


Reply With Quote

Old May 6th, 2013, 05:39 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old May 12th, 2013, 11:04 PM   #3 (permalink)
Elite Member
Salt Lake City, UT
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
Posts: 223 since Mar 2010
Thanks: 42 given, 310 received

This post has been selected as an answer to the original posters question Answer

the examples in NT are a good place to start - they show you how to add a data series

for example the base chart can be the 1 minute chart
you could then add the 5 minute data series and the 15 minute data series

to obtain the high of the current bar you use Highs[0][0] for the 1 minute, Highs[1][0] for the 5 minute and Highs[2][0] - notice the s on the end....

in the onbarclose method you can also have a barsinprogress sections

if (BarsInProgress == 0) // chart base bar
else if (BarsInProgress == 1) //1st added data series
else if (BarsInProgress == 2) // 2nd added data series

I have an indi in the elite download called volprofile. It adds a 1tick data series

NOTE: there are some data series that you can add together, but they muck up the chart/graph. For example mixing time based data series and volume based data series can be done, but the bar charts do not draw correctly. I believe mixing those types in NT 7 requires you to keep track of the bar draws/prints and they get much more complex.

hope that helps....

Reply With Quote
The following user says Thank You to tulanch for this post:


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Learning about secondary bar series and using MTF in Ninjatrader

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
Coding Multi Time Frame (MTF) Indicators with NinjaTrader Fat Tails NinjaTrader 411 June 28th, 2016 07:34 AM
CTA - Series 3, Series 7, Series 9, Series 10, Series 56 NASD exams certifications Big Mike Traders Hideout 41 January 15th, 2015 09:27 AM
Is it possible - bar type based on a secondary dataseries trendisyourfriend NinjaTrader Programming 13 August 12th, 2014 07:14 PM
ELA Assistance on Bar Valuation and Data Series bullsandthebears Elite EasyLanguage Automated Trading 1 July 31st, 2012 06:15 PM
Need some help referencing a value of a secondary Time Series.... forrestang NinjaTrader Programming 6 October 20th, 2011 01:03 PM

All times are GMT -4. The time now is 01:17 PM.

Copyright © 2016 by futures.io. 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-26 in 0.08 seconds with 23 queries on phoenix via your IP