There is no way of including daily bars. Due to a NinjaTrader limitation the loading of daily bars will not work properly depending on the selecting session template. So the daily bars maybe inserted both too early or too late.
The only reliable way of inserting daily bars, would be
(1) in case that you need the settlement price for futures : loading them asynchronously as for the SessionPivot and FibonacciZones indicators
(2) in case that you do not need the settlement price for futures: building them from intraday data
If you need daily bars you should use a different indicator. I understand what you need, but there is no way of including this option with NinjaTrader 7. Maybe with NinjaTrader 8, if the bug is fixed, but then you will have to wait for a few years.
The following 3 users say Thank You to Fat Tails for this post:
Below is the updated install file for the NewVisualEMA and NewVisualSMA. I consider this still to be version for testing, the indicators are not yet final.
Please uninstall the first test version prior to installing this file.
I had to make quite a number of changes relating to
-> NinjaTrader processing bars of primary and secondary bar series with identical time stamps
-> eight different options for transition from historical to real-time data
-> modifications of the code to adapt to session breaks
I do not have 8 range no gap bars installed, so I can only run it on a range chart. I am now running it in real time against the old indicator and will post the result in a few minutes. I have also modified the test indicators to show whether they have detected historical data (blue dots) or real-time data (red dots). This makes it easier to find out what happens.
The modified indicator with the dots added and one additional minor change relating to the first real-time tick, when a minute bar series is loaded, is attached below:
The following 8 users say Thank You to Fat Tails for this post:
But in a first step I want to test the indicators on default bars. I have had problems with some Renko bar types which were not correctly coded in a way that some indicator did not run.
In a second step I may test the indicators on exotic bar types to find out whether they are compatible or not. They have now been tested on second, minute, volume, tick, range and Renko bars. This took already hours, because Ninjatrader processes bars in a different way on charts built from ticks and those built from seconds or minutes.
Last edited by Fat Tails; October 27th, 2011 at 11:25 AM.
The following 5 users say Thank You to Fat Tails for this post:
Favorite Futures: Gameplay Klownbine® Trading of Globex
Posts: 1,276 since Jul 2009
Thanks: 1,227 given,
When all else fails... "Extended" time frame
An approach that I have been using is to not tie the secondary series to a defined time, range, etc but instead to define it based on multiples of the primary data series. I believe this has been referred to as composite bars.
So, on any type of chart, the 2x "extended" time frame would simply look back twice as far as the base indicator, etc. This is not necessarily as simple as it seems. Sometimes when looking back twice as far you need to skip every other data point. Or when looking back three times as far, only look at one of every three of the previous data points. Otherwise all you are doing is doubling or tripling the lookback period in the base time frame. Except for indicators like the stochastic that are looking for highest highs and lowest lows.