NexusFi: Find Your Edge


Home Menu

 





Learning about secondary bar series and using MTF in Ninjatrader


Discussion in NinjaTrader

Updated
    1. trending_up 2,364 views
    2. thumb_up 1 thanks given
    3. group 0 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Learning about secondary bar series and using MTF in Ninjatrader

  #1 (permalink)
 
podski's Avatar
 podski 
Belgium
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader Brokerage, CQG
Trading: FDAX, FDXM ...maybe
Posts: 388 since Sep 2012
Thanks Given: 499
Thanks Received: 470

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

p

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Futures True Range Report
The Elite Circle
Build trailing stop for micro index(s)
Psychology and Money Management
Exit Strategy
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
  #3 (permalink)
 tulanch 
Salt Lake City, UT
 
Experience: Intermediate
Platform: SC, NT, MT
Broker: AMP
Trading: NQ ES YM Bonds
Posts: 265 since Mar 2010
Thanks Given: 50
Thanks Received: 386


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
Thanked by:




Last Updated on May 12, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts